Utility for marking the first item on a list as 'new'.

The span element of the first child will include a 'new' label on it.

Usage: add the class 'list-first-new' to a list.
This commit is contained in:
2019-04-12 17:21:47 +02:00
parent c3261ed83a
commit 87bc2b5378
2 changed files with 6 additions and 0 deletions

4
src/styles/_utils.sass Normal file
View File

@@ -0,0 +1,4 @@
.list-first-new
li:first-child
span
@extend .new

View File

@@ -99,6 +99,8 @@ $pillar-font-path: "../../../../static/pillar/assets/font"
/* CSS for pillar-font comes from fontello.com using static/assets/font/config.json */
@import variables
@import utils
@import welcome
@import services
@import about