diff options
author | Volpeon <git@volpeon.ink> | 2021-06-20 17:30:37 +0200 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2021-06-20 17:30:37 +0200 |
commit | 6662a2dfb60cd24a60225c40a91f3ba9019b718d (patch) | |
tree | dfb59112e22a6cf64d57d5bedc9323b7242c583d /assets/css | |
parent | Better card indicator (diff) | |
download | volpeon.ink-6662a2dfb60cd24a60225c40a91f3ba9019b718d.tar.gz volpeon.ink-6662a2dfb60cd24a60225c40a91f3ba9019b718d.tar.bz2 volpeon.ink-6662a2dfb60cd24a60225c40a91f3ba9019b718d.zip |
CSS/Markup improvements
Diffstat (limited to 'assets/css')
-rw-r--r-- | assets/css/components/_card.scss | 16 | ||||
-rw-r--r-- | assets/css/components/_outer-button.scss | 10 | ||||
-rw-r--r-- | assets/css/layouts/_landing.scss | 2 | ||||
-rw-r--r-- | assets/css/layouts/_section.scss | 43 |
4 files changed, 50 insertions, 21 deletions
diff --git a/assets/css/components/_card.scss b/assets/css/components/_card.scss index 066a00d..0a64f1f 100644 --- a/assets/css/components/_card.scss +++ b/assets/css/components/_card.scss | |||
@@ -13,6 +13,7 @@ | |||
13 | --bg: prop(--colors --bg-lo, $global: true), | 13 | --bg: prop(--colors --bg-lo, $global: true), |
14 | --fg: prop(--colors --fg, $global: true), | 14 | --fg: prop(--colors --fg, $global: true), |
15 | --unread: prop(--colors --bg, $global: true), | 15 | --unread: prop(--colors --bg, $global: true), |
16 | --border: prop(--colors --obj-hi, $global: true), | ||
16 | --hover: ( | 17 | --hover: ( |
17 | --bg: prop(--colors --fg-lo, $global: true), | 18 | --bg: prop(--colors --fg-lo, $global: true), |
18 | --fg: prop(--colors --bg-hi, $global: true), | 19 | --fg: prop(--colors --bg-hi, $global: true), |
@@ -24,6 +25,7 @@ | |||
24 | --colors: ( | 25 | --colors: ( |
25 | --bg: prop(--colors --bg-hi, $global: true), | 26 | --bg: prop(--colors --bg-hi, $global: true), |
26 | --unread: prop(--colors --bg-lo, $global: true), | 27 | --unread: prop(--colors --bg-lo, $global: true), |
28 | --border: prop(--colors --bg-lo, $global: true), | ||
27 | ) | 29 | ) |
28 | ), 'light'); | 30 | ), 'light'); |
29 | 31 | ||
@@ -98,6 +100,20 @@ | |||
98 | width: 100%; | 100 | width: 100%; |
99 | } | 101 | } |
100 | 102 | ||
103 | /*@include modifier('separator') { | ||
104 | align-self: stretch; | ||
105 | padding-top: 0; | ||
106 | padding-bottom: 0; | ||
107 | |||
108 | &::before { | ||
109 | content: ''; | ||
110 | display: block; | ||
111 | width: 1px; | ||
112 | height: 100%; | ||
113 | background-color: prop(--colors --border); | ||
114 | } | ||
115 | }*/ | ||
116 | |||
101 | @include modifier('indicator') { | 117 | @include modifier('indicator') { |
102 | transition: color .2s; | 118 | transition: color .2s; |
103 | color: prop(--colors --unread); | 119 | color: prop(--colors --unread); |
diff --git a/assets/css/components/_outer-button.scss b/assets/css/components/_outer-button.scss index f3d3276..fb3a51e 100644 --- a/assets/css/components/_outer-button.scss +++ b/assets/css/components/_outer-button.scss | |||
@@ -3,7 +3,7 @@ | |||
3 | --colors: ( | 3 | --colors: ( |
4 | --fg: prop(--colors --bg-hi, $global: true), | 4 | --fg: prop(--colors --bg-hi, $global: true), |
5 | --bg: prop(--colors --fg-lo, $global: true), | 5 | --bg: prop(--colors --fg-lo, $global: true), |
6 | --border: rgba(#000, .1), | 6 | --border: prop(--colors --fg, $global: true), |
7 | --hover: ( | 7 | --hover: ( |
8 | --bg: prop(--colors --accent --color, $global: true), | 8 | --bg: prop(--colors --accent --color, $global: true), |
9 | --fg: prop(--colors --bg-hi, $global: true), | 9 | --fg: prop(--colors --bg-hi, $global: true), |
@@ -18,12 +18,6 @@ | |||
18 | ) | 18 | ) |
19 | )); | 19 | )); |
20 | 20 | ||
21 | @include store(( | ||
22 | --colors: ( | ||
23 | --border: rgba(#fff, .1), | ||
24 | ) | ||
25 | ), 'light'); | ||
26 | |||
27 | @include component(namespace()) { | 21 | @include component(namespace()) { |
28 | display: flex; | 22 | display: flex; |
29 | height: prop(--dims --outer, $global: true); | 23 | height: prop(--dims --outer, $global: true); |
@@ -72,7 +66,7 @@ | |||
72 | height: 100%; | 66 | height: 100%; |
73 | padding-right: prop(--dims --pad-x); | 67 | padding-right: prop(--dims --pad-x); |
74 | padding-left: prop(--dims --pad-x); | 68 | padding-left: prop(--dims --pad-x); |
75 | transition: border-color .2s; | 69 | transition: border-left-color .2s; |
76 | font-size: 1 / 16 * 14em; | 70 | font-size: 1 / 16 * 14em; |
77 | line-height: prop(--dims --outer, $global: true); | 71 | line-height: prop(--dims --outer, $global: true); |
78 | white-space: nowrap; | 72 | white-space: nowrap; |
diff --git a/assets/css/layouts/_landing.scss b/assets/css/layouts/_landing.scss index 500849e..a81b105 100644 --- a/assets/css/layouts/_landing.scss +++ b/assets/css/layouts/_landing.scss | |||
@@ -12,6 +12,8 @@ | |||
12 | display: flex; | 12 | display: flex; |
13 | flex-direction: row; | 13 | flex-direction: row; |
14 | align-items: center; | 14 | align-items: center; |
15 | margin-top: auto; | ||
16 | margin-bottom: auto; | ||
15 | 17 | ||
16 | @include element('banner') { | 18 | @include element('banner') { |
17 | width: 70%; | 19 | width: 70%; |
diff --git a/assets/css/layouts/_section.scss b/assets/css/layouts/_section.scss index e8b1617..80b8ca9 100644 --- a/assets/css/layouts/_section.scss +++ b/assets/css/layouts/_section.scss | |||
@@ -15,6 +15,13 @@ | |||
15 | @include layout(namespace()) { | 15 | @include layout(namespace()) { |
16 | position: relative; | 16 | position: relative; |
17 | 17 | ||
18 | @include modifier('flex') { | ||
19 | display: flex; | ||
20 | flex-direction: column; | ||
21 | align-items: stretch; | ||
22 | justify-content: flex-start; | ||
23 | } | ||
24 | |||
18 | @include modifier('fullscreen') { | 25 | @include modifier('fullscreen') { |
19 | box-sizing: border-box; | 26 | box-sizing: border-box; |
20 | min-height: 100vh; | 27 | min-height: 100vh; |
@@ -26,26 +33,17 @@ | |||
26 | background-color: prop(--colors --body-bg); | 33 | background-color: prop(--colors --body-bg); |
27 | } | 34 | } |
28 | 35 | ||
29 | @include modifier('no-head') { | 36 | @include modifier('no-header') { |
30 | padding-top: prop(--dims --outer, $global: true); | 37 | padding-top: prop(--dims --outer, $global: true); |
31 | } | 38 | } |
32 | 39 | ||
33 | @include element('head') { | 40 | @include element('header') { |
34 | display: flex; | 41 | display: flex; |
35 | flex-direction: row; | 42 | flex-direction: row; |
36 | justify-self: flex-start; | 43 | align-items: center; |
44 | height: prop(--dims --outer, $global: true); | ||
37 | font-size: 1 / 16 * 15em; | 45 | font-size: 1 / 16 * 15em; |
38 | 46 | ||
39 | &::after { | ||
40 | content: ''; | ||
41 | width: 100%; | ||
42 | height: 100%; | ||
43 | margin-top: -1px; | ||
44 | margin-right: prop(--container --dims --pad-x, $global: true); | ||
45 | margin-left: prop(--container --dims --pad-x, $global: true); | ||
46 | border-top: 1px solid prop(--colors --border); | ||
47 | } | ||
48 | |||
49 | @include modifier('sticky') { | 47 | @include modifier('sticky') { |
50 | position: sticky; | 48 | position: sticky; |
51 | z-index: 9000; | 49 | z-index: 9000; |
@@ -53,5 +51,24 @@ | |||
53 | left: 0; | 51 | left: 0; |
54 | } | 52 | } |
55 | } | 53 | } |
54 | |||
55 | /*@include element('footer') { | ||
56 | position: absolute; | ||
57 | z-index: 10000; | ||
58 | right: 0; | ||
59 | bottom: 0; | ||
60 | height: prop(--dims --outer, $global: true); | ||
61 | font-size: 1 / 16 * 15em; | ||
62 | }*/ | ||
63 | |||
64 | @include element('header-separator') { | ||
65 | flex: 1 1 auto; | ||
66 | width: 100%; | ||
67 | height: 100%; | ||
68 | margin-top: -1px; | ||
69 | margin-right: prop(--container --dims --pad-x, $global: true); | ||
70 | margin-left: prop(--container --dims --pad-x, $global: true); | ||
71 | border-top: 1px solid prop(--colors --border); | ||
72 | } | ||
56 | } | 73 | } |
57 | } | 74 | } |