diff options
Diffstat (limited to 'assets/css/objects')
-rw-r--r-- | assets/css/objects/_button.scss | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/assets/css/objects/_button.scss b/assets/css/objects/_button.scss new file mode 100644 index 0000000..d97ca2d --- /dev/null +++ b/assets/css/objects/_button.scss | |||
@@ -0,0 +1,23 @@ | |||
1 | @include namespace('button') { | ||
2 | @include store(( | ||
3 | --dims: ( | ||
4 | --pad-x: 1.4em, | ||
5 | --pad-y: .5em | ||
6 | ), | ||
7 | --colors: ( | ||
8 | --bg: prop(--colors --fg-lo, $global: true), | ||
9 | --fg: prop(--colors --bg, $global: true), | ||
10 | ) | ||
11 | )); | ||
12 | |||
13 | @include object(namespace()) { | ||
14 | display: inline-block; | ||
15 | padding: prop(--dims --pad-y) prop(--dims --pad-x); | ||
16 | border-radius: 10em; | ||
17 | background-color: prop(--colors --bg); | ||
18 | color: prop(--colors --fg); | ||
19 | font-size: 1 / 16 * 14em; | ||
20 | font-weight: 500; | ||
21 | text-decoration: none; | ||
22 | } | ||
23 | } | ||