summaryrefslogtreecommitdiffstats
path: root/assets/css/components/_outer-button.scss
diff options
context:
space:
mode:
Diffstat (limited to 'assets/css/components/_outer-button.scss')
-rw-r--r--assets/css/components/_outer-button.scss67
1 files changed, 67 insertions, 0 deletions
diff --git a/assets/css/components/_outer-button.scss b/assets/css/components/_outer-button.scss
new file mode 100644
index 0000000..13614bb
--- /dev/null
+++ b/assets/css/components/_outer-button.scss
@@ -0,0 +1,67 @@
1@include namespace('outer-button') {
2 @include store((
3 --colors: (
4 --fg: prop(--colors --bg-hi, $global: true),
5 --bg: prop(--colors --fg-lo, $global: true),
6 --hover: (
7 --bg: prop(--colors --accent --color, $global: true),
8 --fg: prop(--colors --bg-hi, $global: true),
9 ),
10 --logo: (
11 --fg: prop(--colors --fg-lo, $global: true),
12 --bg: prop(--colors --bg-hi, $global: true),
13 --hover: (
14 --fg: prop(--colors --bg-hi, $global: true),
15 --bg: prop(--colors --accent --color, $global: true),
16 )
17 )
18 )
19 ));
20
21 @include component(namespace()) {
22 display: flex;
23 height: prop(--dims --outer, $global: true);
24 transition: background-color .2s, color .2s;
25 background-color: prop(--colors --bg);
26 color: prop(--colors --fg);
27 font-weight: 500;
28 text-decoration: none;
29
30 &:hover {
31 background-color: prop(--colors --hover --bg);
32 color: prop(--colors --hover --fg);
33 }
34
35 @include modifier('logo') {
36 background-color: prop(--colors --logo --bg);
37 color: prop(--colors --logo --fg);
38
39 &:hover {
40 background-color: prop(--colors --logo --hover --bg);
41 color: prop(--colors --logo --hover --fg);
42 }
43 }
44
45 @include element('icon') {
46 display: flex;
47 position: relative;
48 align-items: center;
49 justify-content: center;
50 width: prop(--dims --outer, $global: true);
51 height: 100%;
52 }
53
54 @include element('icon-symbol') {
55 display: block;
56 width: 1.5em;
57 height: 1.5em;
58 }
59
60 @include element('content') {
61 height: 100%;
62 padding-right: prop(--dims --outer-spacing, $global: true);
63 padding-left: prop(--dims --outer-spacing, $global: true);
64 line-height: prop(--dims --outer, $global: true);
65 }
66 }
67}