diff options
Diffstat (limited to 'assets/css/components/_nav.scss')
-rw-r--r-- | assets/css/components/_nav.scss | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/assets/css/components/_nav.scss b/assets/css/components/_nav.scss index 8fc4564..03118a9 100644 --- a/assets/css/components/_nav.scss +++ b/assets/css/components/_nav.scss | |||
@@ -2,16 +2,17 @@ | |||
2 | @include store(( | 2 | @include store(( |
3 | --dims: ( | 3 | --dims: ( |
4 | --font-size: 15px, | 4 | --font-size: 15px, |
5 | --pad-y: 1em, | 5 | --pad-y: .5rem, |
6 | --item: ( | 6 | --item: ( |
7 | --pad-x: 1em, | 7 | --pad-x: 1rem, |
8 | --pad-y: 1em, | 8 | --pad-y: 1rem, |
9 | ), | 9 | ), |
10 | ), | 10 | ), |
11 | --colors: ( | 11 | --colors: ( |
12 | --bg: prop(--colors --bg-hi, $global: true), | ||
12 | --logo: ( | 13 | --logo: ( |
13 | --idle: ( | 14 | --idle: ( |
14 | --fg: prop(--colors --fg-hi, $global: true), | 15 | --fg: prop(--colors --accent --color, $global: true), |
15 | ), | 16 | ), |
16 | --hover: ( | 17 | --hover: ( |
17 | --fg: prop(--colors --fg-lo, $global: true), | 18 | --fg: prop(--colors --fg-lo, $global: true), |
@@ -33,7 +34,6 @@ | |||
33 | 34 | ||
34 | @include store(( | 35 | @include store(( |
35 | --dims: ( | 36 | --dims: ( |
36 | --pad-y: .5em, | ||
37 | --item: ( | 37 | --item: ( |
38 | --pad-x: .75em, | 38 | --pad-x: .75em, |
39 | --pad-y: .75em, | 39 | --pad-y: .75em, |
@@ -42,10 +42,15 @@ | |||
42 | ), 'sm'); | 42 | ), 'sm'); |
43 | 43 | ||
44 | @include component(namespace()) { | 44 | @include component(namespace()) { |
45 | display: flex; | 45 | display: flex; |
46 | align-items: center; | 46 | position: fixed; |
47 | padding: prop(--dims --pad-y) 0; | 47 | z-index: 10000; |
48 | font-size: prop(--dims --font-size); | 48 | top: 0; |
49 | left: 0; | ||
50 | align-items: center; | ||
51 | padding: prop(--dims --pad-y) 0; | ||
52 | background-color: prop(--colors --bg); | ||
53 | font-size: prop(--dims --font-size); | ||
49 | 54 | ||
50 | @include element('logo') { | 55 | @include element('logo') { |
51 | display: inline-block; | 56 | display: inline-block; |
@@ -90,5 +95,9 @@ | |||
90 | font-weight: bold; | 95 | font-weight: bold; |
91 | } | 96 | } |
92 | } | 97 | } |
98 | |||
99 | @include media('<=md') { | ||
100 | position: static; | ||
101 | } | ||
93 | } | 102 | } |
94 | } | 103 | } |