Skip to content

Commit

Permalink
feat(list): add suffixed ordered list variation
Browse files Browse the repository at this point in the history
  • Loading branch information
TATSUNO Yasuhiro authored and Sean committed Jan 3, 2019
1 parent 08e6406 commit 6a7352b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
8 changes: 8 additions & 0 deletions src/definitions/elements/list.less
Expand Up @@ -688,6 +688,14 @@ ol.ui.horizontal.list li:before,
margin: 0 @horizontalOrderedCountDistance 0 0;
}

/* Suffixed Ordered */
ol.ui.suffixed.list li:before,
.ui.suffixed.ordered.list .list > .item:before,
.ui.suffixed.ordered.list > .item:before {
content: @orderedCountContentSuffixed;
}


/*-------------------
Divided
--------------------*/
Expand Down
5 changes: 4 additions & 1 deletion src/themes/default/elements/list.variables
Expand Up @@ -174,7 +174,10 @@

/* Ordered List */
@orderedCountName: ordered;
@orderedCountContent: counters(ordered, ".") " ";
@orderedCountSeparator: ".";
@orderedCountSuffix: ".";
@orderedCountContent: counters(@orderedCountName, @orderedCountSeparator) " ";
@orderedCountContentSuffixed: counters(@orderedCountName, @orderedCountSeparator) @orderedCountSuffix;
@orderedCountColor: @textColor;
@orderedCountDistance: 1.25rem;
@orderedCountOpacity: 0.8;
Expand Down

0 comments on commit 6a7352b

Please sign in to comment.