diff --git a/content/css/_counters.sass b/content/css/_counters.sass new file mode 100644 index 0000000..13a6642 --- /dev/null +++ b/content/css/_counters.sass @@ -0,0 +1,13 @@ +[data-counter]:after + content: attr(data-counter) + position: relative + display: inline-block + left: 10px + font-size: 16px + +#total + position: absolute + right: 1rem + +[data-counter]:after, #total + font-family: monospace diff --git a/content/css/_lists.sass b/content/css/_lists.sass index 259aaae..2ff2d10 100644 --- a/content/css/_lists.sass +++ b/content/css/_lists.sass @@ -15,8 +15,3 @@ ul ul li text-align: center - &[data-counter]:after - content: attr(data-counter) - position: relative - display: inline-block - left: 10px diff --git a/content/css/stylesheet.sass b/content/css/stylesheet.sass index 3d000b8..7efda1b 100644 --- a/content/css/stylesheet.sass +++ b/content/css/stylesheet.sass @@ -3,3 +3,4 @@ @import _layout @import _lists @import _links +@import _counters diff --git a/content/index.html b/content/index.html index f8acdce..f909103 100644 --- a/content/index.html +++ b/content/index.html @@ -1,7 +1,7 @@