From 8625e0708a0455a15b8ae91bf23b9d0b1bfe0bae Mon Sep 17 00:00:00 2001 From: Michael Rose Date: Wed, 13 Mar 2019 08:30:30 -0400 Subject: [PATCH] Add styling for GFM task lists Close #2092 --- CHANGELOG.md | 1 + _sass/minimal-mistakes/_utilities.scss | 17 +++++++++++++++++ docs/_docs/18-history.md | 3 ++- ...09-05-15-edge-case-nested-and-mixed-lists.md | 8 +++++++- 4 files changed, 27 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ca69743a1012..e82335ca5aca 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ### Enhancements +- Add styling for [GFM task lists](https://help.github.com/en/articles/about-task-lists#creating-task-lists). [#2092](https://github.com/mmistakes/minimal-mistakes/issues/2092) - Update Google Universal Analytics to load async. [#2079](https://github.com/mmistakes/minimal-mistakes/pull/2079) - Remove Google+ social sharing button, comment provider, and author link configs from theme. - Add missing Chinese text strings. [#2072](https://github.com/mmistakes/minimal-mistakes/pull/2072) diff --git a/_sass/minimal-mistakes/_utilities.scss b/_sass/minimal-mistakes/_utilities.scss index e569b6012c51..a2f4b1ce0210 100644 --- a/_sass/minimal-mistakes/_utilities.scss +++ b/_sass/minimal-mistakes/_utilities.scss @@ -103,6 +103,23 @@ body:hover .visually-hidden button { white-space: nowrap; } +/* + Task lists + ========================================================================== */ + +.task-list { + padding:0; + + li { + list-style-type: none; + } + + .task-list-item-checkbox { + margin-right: 0.5em; + opacity: 1; + } +} + /* Alignment ========================================================================== */ diff --git a/docs/_docs/18-history.md b/docs/_docs/18-history.md index a7d3954fc72a..fdb8979aa2bb 100644 --- a/docs/_docs/18-history.md +++ b/docs/_docs/18-history.md @@ -5,7 +5,7 @@ permalink: /docs/history/ excerpt: "Change log of enhancements and bug fixes made to the theme." sidebar: nav: docs -last_modified_at: 2019-03-05T18:56:32-05:00 +last_modified_at: 2019-03-13T08:30:09-04:00 toc: false --- @@ -13,6 +13,7 @@ toc: false ### Enhancements +- Add styling for [GFM task lists](https://help.github.com/en/articles/about-task-lists#creating-task-lists). [#2092](https://github.com/mmistakes/minimal-mistakes/issues/2092) - Update Google Universal Analytics to load async. [#2079](https://github.com/mmistakes/minimal-mistakes/pull/2079) - Remove Google+ social sharing button, comment provider, and author link configs from theme. - Add missing Chinese text strings. [#2072](https://github.com/mmistakes/minimal-mistakes/pull/2072) diff --git a/test/_posts/2009-05-15-edge-case-nested-and-mixed-lists.md b/test/_posts/2009-05-15-edge-case-nested-and-mixed-lists.md index cc4fd5e52ff7..727ab6a8215b 100644 --- a/test/_posts/2009-05-15-edge-case-nested-and-mixed-lists.md +++ b/test/_posts/2009-05-15-edge-case-nested-and-mixed-lists.md @@ -57,4 +57,10 @@ Nested and mixed lists are an interesting beast. It's a corner case to make sure 1. **ordered item** 2. **ordered item** * unordered item -* unordered item \ No newline at end of file +* unordered item + +### Task Lists + +- [x] Finish my changes +- [ ] Push my commits to GitHub +- [ ] Open a pull request \ No newline at end of file