diff options
author | Volpeon <git@volpeon.ink> | 2021-11-10 21:20:58 +0100 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2021-11-10 21:20:58 +0100 |
commit | 8177471f70a517e78b4470cd01c375ed30121102 (patch) | |
tree | 9a3373040e70d71463ea87796578489d6aabc8d8 /assets/css/components/_header.scss | |
parent | Update vlpn (diff) | |
download | volpeon.ink-8177471f70a517e78b4470cd01c375ed30121102.tar.gz volpeon.ink-8177471f70a517e78b4470cd01c375ed30121102.tar.bz2 volpeon.ink-8177471f70a517e78b4470cd01c375ed30121102.zip |
Simplified home page
Diffstat (limited to 'assets/css/components/_header.scss')
-rw-r--r-- | assets/css/components/_header.scss | 48 |
1 files changed, 39 insertions, 9 deletions
diff --git a/assets/css/components/_header.scss b/assets/css/components/_header.scss index e74780b..81e4d4f 100644 --- a/assets/css/components/_header.scss +++ b/assets/css/components/_header.scss | |||
@@ -1,23 +1,53 @@ | |||
1 | @include namespace('header') { | 1 | @include namespace('header') { |
2 | @include store(( | 2 | @include store(( |
3 | --colors: ( | 3 | --colors: ( |
4 | --fg: prop(--colors --fg-lo, $global: true), | 4 | --fg: prop(--colors --fg-hi, $global: true), |
5 | --bg: prop(--colors --bg-hi, $global: true), | ||
6 | --hover: ( | 5 | --hover: ( |
7 | --fg: prop(--colors --bg-hi, $global: true), | 6 | --fg: prop(--colors --fg-lo, $global: true), |
8 | --bg: prop(--colors --accent --color, $global: true), | 7 | ), |
8 | --active: ( | ||
9 | --fg: prop(--colors --fg-lo, $global: true), | ||
9 | ) | 10 | ) |
11 | ), | ||
12 | --dims: ( | ||
13 | --height: 4rem, | ||
14 | --pad-x: .6rem, | ||
10 | ) | 15 | ) |
11 | )); | 16 | )); |
12 | 17 | ||
13 | @include component(namespace()) { | 18 | @include component(namespace()) { |
14 | display: flex; | 19 | display: flex; |
15 | position: fixed; | ||
16 | z-index: 10000; | ||
17 | top: 0; | ||
18 | left: 0; | ||
19 | flex-direction: row; | 20 | flex-direction: row; |
20 | justify-content: flex-start; | 21 | justify-content: flex-start; |
21 | box-shadow: prop(--dims --obj-shadow, $global: true) prop(--colors --obj-shadow, $global: true); | 22 | height: prop(--dims --height); |
23 | |||
24 | @include element('item') { | ||
25 | padding: 0 prop(--dims --pad-x); | ||
26 | line-height: prop(--dims --height); | ||
27 | color: prop(--colors --fg); | ||
28 | text-decoration: none; | ||
29 | |||
30 | &:hover { | ||
31 | color: prop(--colors --hover --fg); | ||
32 | } | ||
33 | |||
34 | @include modifier('icon') { | ||
35 | display: flex; | ||
36 | align-items: center; | ||
37 | justify-content: center; | ||
38 | padding: 0; | ||
39 | width: prop(--dims --height); | ||
40 | } | ||
41 | |||
42 | @include modifier('active') { | ||
43 | font-weight: bold; | ||
44 | color: prop(--colors --active --fg); | ||
45 | } | ||
46 | } | ||
47 | |||
48 | @include element('icon') { | ||
49 | width: 1.5em; | ||
50 | height: 1.5em; | ||
51 | } | ||
22 | } | 52 | } |
23 | } | 53 | } |