From 6addaf716033c6a6e97b7716b698464159f68681 Mon Sep 17 00:00:00 2001 From: Paul Johnston Date: Mon, 4 May 2015 20:00:11 -0600 Subject: [PATCH 1/2] Ordered list does not invert number color. See http://jsfiddle.net/ka98j2pv/2/ This commit introduces @orderedInvertedCountColor for this purpose. --- src/definitions/elements/list.less | 9 +++++++-- src/themes/default/elements/list.variables | 2 ++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/definitions/elements/list.less b/src/definitions/elements/list.less index 1ffe68588..8562fa825 100755 --- a/src/definitions/elements/list.less +++ b/src/definitions/elements/list.less @@ -559,7 +559,6 @@ ul.ui.horizontal.bulleted.list li:first-child::before, display: none; } - /*------------------- Ordered --------------------*/ @@ -595,6 +594,11 @@ ol.ui.list li:before, opacity: @orderedCountOpacity; } +ol.ui.list li:before, +.ui.ordered.list .list > .item:before, +.ui.ordered.list > .item:before { + color: @orderedInvertedCountColor; +} /* Child Lists */ ol.ui.list ol, @@ -884,4 +888,5 @@ ol.ui.horizontal.list li:before, font-size: @massive; } -.loadUIOverrides(); \ No newline at end of file +.loadUIOverrides(); + diff --git a/src/themes/default/elements/list.variables b/src/themes/default/elements/list.variables index 74a368010..23854a80b 100644 --- a/src/themes/default/elements/list.variables +++ b/src/themes/default/elements/list.variables @@ -166,6 +166,8 @@ @orderedChildCountDistance: 1em; @orderedChildCountOffset: -2em; +@orderedInvertedCountColor: @invertedLightTextColor; + /* Horizontal Ordereded */ @horizontalOrderedCountDistance: 0.5em; From 67452432cde80670719e842ef2ceea37160bd8cc Mon Sep 17 00:00:00 2001 From: Paul Johnston Date: Mon, 4 May 2015 20:09:16 -0600 Subject: [PATCH 2/2] actually make classes be inverted --- src/definitions/elements/list.less | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/definitions/elements/list.less b/src/definitions/elements/list.less index 8562fa825..08a89f26b 100755 --- a/src/definitions/elements/list.less +++ b/src/definitions/elements/list.less @@ -594,9 +594,9 @@ ol.ui.list li:before, opacity: @orderedCountOpacity; } -ol.ui.list li:before, -.ui.ordered.list .list > .item:before, -.ui.ordered.list > .item:before { +ol.ui.inverted.list li:before, +.ui.ordered.inverted.list .list > .item:before, +.ui.ordered.inverted.list > .item:before { color: @orderedInvertedCountColor; }