X-Git-Url: https://git.njae.me.uk/?a=blobdiff_plain;f=assets%2Fmain%2Fsass%2Fcomponents%2F_list.scss;h=9c5677b694464d3705a77ebc63135dcfe60468f0;hb=HEAD;hp=9ef7786ef897716cd46f3adb0bba0da21b292380;hpb=8af2079e4b096e77ba2f922d6a18224ce01cb7bd;p=editorial.git diff --git a/assets/main/sass/components/_list.scss b/assets/main/sass/components/_list.scss index 9ef7786..9c5677b 100644 --- a/assets/main/sass/components/_list.scss +++ b/assets/main/sass/components/_list.scss @@ -1,5 +1,5 @@ /// -/// Massively by HTML5 UP +/// Editorial by HTML5 UP /// html5up.net | @ajlkn /// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) /// @@ -9,29 +9,29 @@ ol { list-style: decimal; margin: 0 0 _size(element-margin) 0; - padding-left: 1.25rem; + padding-left: 1.25em; li { - padding-left: 0.25rem; + padding-left: 0.25em; } } ul { list-style: disc; margin: 0 0 _size(element-margin) 0; - padding-left: 1rem; + padding-left: 1em; li { - padding-left: 0.5rem; + padding-left: 0.5em; } - &.divided { + &.alt { list-style: none; padding-left: 0; li { - border-top: solid 1px; - padding: 0.5rem 0; + border-top: solid 1px _palette(border); + padding: 0.5em 0; &:first-child { border-top: 0; @@ -53,46 +53,4 @@ dd { margin-left: _size(element-margin); } - } - - @mixin color-list($p: null) { - ul { - &.divided { - li { - border-top-color: _palette($p, border); - } - } - - &.icons { - li { - a.icon { - &:hover { - &:before { - color: _palette($p, accent); - } - } - } - } - - &.alt { - li { - .icon { - &:before { - box-shadow: inset 0 0 0 2px _palette($p, border); - } - } - - a.icon { - &:hover { - &:before { - box-shadow: inset 0 0 0 2px _palette($p, accent); - } - } - } - } - } - } - } - } - - @include color-list; \ No newline at end of file + } \ No newline at end of file