added dark theme option. It ìs selected automagically based on system choiche of...
[theme-danix.xyz.git] / assets / sass / components / _box.scss
CommitLineData
748286b5 1///\r
2/// Forty by HTML5 UP\r
3/// html5up.net | @ajlkn\r
4/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)\r
5///\r
6\r
7/* Box */\r
8\r
9 .box {\r
cb4379e1 10 border: solid 1px _palette_light(border);\r
11 @media screen and (prefers-color-scheme: dark) {\r
12 border-bottom: solid 1px _palette_dark(border);\r
13 }\r
748286b5 14 margin-bottom: _size(element-margin);\r
15 padding: 1.5em;\r
16\r
17 > :last-child,\r
18 > :last-child > :last-child,\r
19 > :last-child > :last-child > :last-child {\r
20 margin-bottom: 0;\r
21 }\r
22\r
23 &.alt {\r
24 border: 0;\r
25 border-radius: 0;\r
26 padding: 0;\r
27 }\r
28 }