From 87bc2b53781930599b7ebf4470e49a2cdf2fa934 Mon Sep 17 00:00:00 2001 From: Pablo Vazquez Date: Fri, 12 Apr 2019 17:21:47 +0200 Subject: [PATCH] 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. --- src/styles/_utils.sass | 4 ++++ src/styles/main.sass | 2 ++ 2 files changed, 6 insertions(+) create mode 100644 src/styles/_utils.sass diff --git a/src/styles/_utils.sass b/src/styles/_utils.sass new file mode 100644 index 0000000..13d4089 --- /dev/null +++ b/src/styles/_utils.sass @@ -0,0 +1,4 @@ +.list-first-new + li:first-child + span + @extend .new diff --git a/src/styles/main.sass b/src/styles/main.sass index 2842bd1..83219dc 100644 --- a/src/styles/main.sass +++ b/src/styles/main.sass @@ -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