summaryrefslogtreecommitdiffstats
path: root/assets/css/components
diff options
context:
space:
mode:
Diffstat (limited to 'assets/css/components')
-rw-r--r--assets/css/components/_card.scss11
-rw-r--r--assets/css/components/_landing-banner.scss2
-rw-r--r--assets/css/components/_outer-button.scss42
3 files changed, 34 insertions, 21 deletions
diff --git a/assets/css/components/_card.scss b/assets/css/components/_card.scss
index bb8b4d2..09b03b0 100644
--- a/assets/css/components/_card.scss
+++ b/assets/css/components/_card.scss
@@ -14,7 +14,7 @@
14 14
15 @include store(( 15 @include store((
16 --dims: ( 16 --dims: (
17 --pad-x: .9em, 17 --pad-x: 1em,
18 --pad-y: .6em 18 --pad-y: .6em
19 ) 19 )
20 ), 'md'); 20 ), 'md');
@@ -69,5 +69,14 @@
69 flex: 0 0 auto; 69 flex: 0 0 auto;
70 padding: prop(--dims --pad-y) 0 prop(--dims --pad-y) prop(--dims --pad-x); 70 padding: prop(--dims --pad-y) 0 prop(--dims --pad-y) prop(--dims --pad-x);
71 } 71 }
72
73 @include element('image') {
74 display: block;
75 flex: 0 0 auto;
76 width: 4em;
77 height: 100%;
78 object-fit: cover;
79 object-position: center center;
80 }
72 } 81 }
73} 82}
diff --git a/assets/css/components/_landing-banner.scss b/assets/css/components/_landing-banner.scss
index 8f07c37..f6016c4 100644
--- a/assets/css/components/_landing-banner.scss
+++ b/assets/css/components/_landing-banner.scss
@@ -17,7 +17,7 @@
17 } 17 }
18 18
19 @include element('text') { 19 @include element('text') {
20 font-size: 1 / 16 * 17em; 20 font-size: 1 / 16 * 18em;
21 } 21 }
22 22
23 @include element('title-inner') { 23 @include element('title-inner') {
diff --git a/assets/css/components/_outer-button.scss b/assets/css/components/_outer-button.scss
index 13614bb..b92dd9e 100644
--- a/assets/css/components/_outer-button.scss
+++ b/assets/css/components/_outer-button.scss
@@ -7,7 +7,7 @@
7 --bg: prop(--colors --accent --color, $global: true), 7 --bg: prop(--colors --accent --color, $global: true),
8 --fg: prop(--colors --bg-hi, $global: true), 8 --fg: prop(--colors --bg-hi, $global: true),
9 ), 9 ),
10 --logo: ( 10 --icon: (
11 --fg: prop(--colors --fg-lo, $global: true), 11 --fg: prop(--colors --fg-lo, $global: true),
12 --bg: prop(--colors --bg-hi, $global: true), 12 --bg: prop(--colors --bg-hi, $global: true),
13 --hover: ( 13 --hover: (
@@ -24,31 +24,34 @@
24 transition: background-color .2s, color .2s; 24 transition: background-color .2s, color .2s;
25 background-color: prop(--colors --bg); 25 background-color: prop(--colors --bg);
26 color: prop(--colors --fg); 26 color: prop(--colors --fg);
27 font-weight: 500; 27 font-weight: 450;
28 text-decoration: none; 28 text-decoration: none;
29 29
30 &:hover { 30 @include element('icon') {
31 background-color: prop(--colors --hover --bg); 31 display: flex;
32 color: prop(--colors --hover --fg); 32 position: relative;
33 flex: 0 0 auto;
34 align-items: center;
35 justify-content: center;
36 width: prop(--dims --outer, $global: true);
37 height: 100%;
38 transition: background-color .2s, color .2s;
39 background-color: prop(--colors --icon --bg);
40 color: prop(--colors --icon --fg);
33 } 41 }
34 42
35 @include modifier('logo') { 43 @include modifier('icon-only') {
36 background-color: prop(--colors --logo --bg); 44 @include element('icon') {
37 color: prop(--colors --logo --fg); 45 background-color: prop(--colors --bg);
38 46 color: prop(--colors --fg);
39 &:hover {
40 background-color: prop(--colors --logo --hover --bg);
41 color: prop(--colors --logo --hover --fg);
42 } 47 }
43 } 48 }
44 49
45 @include element('icon') { 50 &:hover {
46 display: flex; 51 @include multi('&', 'element' 'icon') {
47 position: relative; 52 background-color: prop(--colors --hover --bg);
48 align-items: center; 53 color: prop(--colors --hover --fg);
49 justify-content: center; 54 }
50 width: prop(--dims --outer, $global: true);
51 height: 100%;
52 } 55 }
53 56
54 @include element('icon-symbol') { 57 @include element('icon-symbol') {
@@ -62,6 +65,7 @@
62 padding-right: prop(--dims --outer-spacing, $global: true); 65 padding-right: prop(--dims --outer-spacing, $global: true);
63 padding-left: prop(--dims --outer-spacing, $global: true); 66 padding-left: prop(--dims --outer-spacing, $global: true);
64 line-height: prop(--dims --outer, $global: true); 67 line-height: prop(--dims --outer, $global: true);
68 white-space: nowrap;
65 } 69 }
66 } 70 }
67} 71}