|
1 | | -@use '../../sass/variables' as *; |
| 1 | +/* @use '../../sass/variables' as *; |
2 | 2 | @use '../../sass/global' as *; |
3 | 3 |
|
4 | 4 | :root { |
5 | 5 | --navbar-height: 64px; |
6 | | - --navbar-height-mobile: 56px; |
| 6 | + --navbar-height-mobile: 56px; // todo: do not change |
| 7 | + --appbar-title-font-size: 24px; |
| 8 | +} |
| 9 | +
|
| 10 | +.nav-wrapper { |
| 11 | + height: 100%; |
| 12 | + background-color: var(--md-sys-color-surface); |
| 13 | + padding-left: 4px; |
| 14 | + padding-right: 4px; |
| 15 | + display: flex; |
| 16 | + align-items: center; |
7 | 17 | } |
8 | 18 |
|
9 | 19 | .navbar { |
10 | | - color: var(--md-sys-color-on-primary); |
| 20 | + color: var(--md-sys-color-on-surface); |
11 | 21 | @extend .z-depth-1; |
12 | | - background-color: var(--md-sys-color-secondary-container); |
13 | | - width: 100%; |
14 | 22 | height: var(--navbar-height-mobile); |
15 | | - line-height: var(--navbar-height-mobile); |
16 | 23 |
|
17 | 24 | &.nav-extended { |
18 | 25 | height: auto; |
19 | | - |
20 | 26 | .nav-wrapper { |
21 | 27 | min-height: var(--navbar-height-mobile); |
22 | 28 | height: auto; |
23 | 29 | } |
24 | | - |
25 | 30 | .nav-content { |
26 | 31 | position: relative; |
27 | 32 | line-height: normal; |
28 | 33 | } |
29 | 34 | } |
30 | 35 |
|
| 36 | + // Navbar Links |
| 37 | + ul:not(.dropdown-content) { |
| 38 | + list-style-type: none; |
| 39 | + margin: 0; |
| 40 | + display: flex; |
| 41 | + align-items: center; |
| 42 | + gap: 1em; |
| 43 | +
|
| 44 | + & > li { |
| 45 | + transition: background-color 0.3s; |
| 46 | + padding: 0; |
| 47 | +
|
| 48 | + & > a { |
| 49 | + transition: background-color 0.3s; |
| 50 | + color: var(--md-sys-color-on-surface); |
| 51 | + display: block; |
| 52 | + cursor: pointer; |
| 53 | +
|
| 54 | +
|
| 55 | + &.active { |
| 56 | + //background-color: var(--md-sys-color-primary-container-dark); |
| 57 | + } |
| 58 | + &:hover:not(.active) { |
| 59 | + // background-color: var(--md-sys-color-on-primary-dark); |
| 60 | + } |
| 61 | +
|
| 62 | + &.btn, |
| 63 | + &.btn-large, |
| 64 | + &.btn-flat, |
| 65 | + &.btn-floating { |
| 66 | + margin-top: -2px; |
| 67 | + margin-left: 15px; |
| 68 | + margin-right: 15px; |
| 69 | + display: inline-block; |
| 70 | +
|
| 71 | + & > .material-icons, |
| 72 | + & > .material-symbols-outlined, |
| 73 | + & > .material-symbols-rounded, |
| 74 | + & > .material-symbols-sharp { |
| 75 | + height: inherit; |
| 76 | + line-height: inherit; |
| 77 | + } |
| 78 | + } |
| 79 | + } |
| 80 | + } |
| 81 | +
|
| 82 | + &.left { |
| 83 | + float: left; |
| 84 | + } |
| 85 | + } |
| 86 | +
|
31 | 87 | a { |
32 | | - color: var(--md-sys-color-on-primary); |
| 88 | + color: var(--md-sys-color-on-primary); |
33 | 89 | } |
34 | 90 |
|
35 | 91 | i, |
36 | | - [class^="mdi-"], [class*="mdi-"], |
37 | | - i.material-icons, i.material-symbols-outlined, |
38 | | - i.material-symbols-rounded, i.material-symbols-sharp { |
| 92 | + [class^='mdi-'], |
| 93 | + [class*='mdi-'], |
| 94 | + i.material-icons, |
| 95 | + i.material-symbols-outlined, |
| 96 | + i.material-symbols-rounded, |
| 97 | + i.material-symbols-sharp { |
39 | 98 | display: block; |
40 | 99 | font-size: 24px; |
41 | 100 | height: var(--navbar-height-mobile); |
42 | 101 | line-height: var(--navbar-height-mobile); |
43 | 102 | } |
44 | 103 |
|
45 | | - .nav-wrapper { |
46 | | - position: relative; |
47 | | - height: 100%; |
48 | | - } |
49 | | - |
50 | | - @media #{$large-and-up} { |
51 | | - a.sidenav-trigger { |
52 | | - display: none; |
53 | | - } |
54 | | - } |
55 | 104 |
|
56 | 105 | // Collapse button |
57 | 106 | .sidenav-trigger { |
|
69 | 118 |
|
70 | 119 | // Logo |
71 | 120 | .brand-logo { |
72 | | - position: absolute; |
73 | | - color: var(--md-sys-color-on-primary); |
| 121 | + color: var(--md-sys-color-on-surface); |
| 122 | + font-size: var(--appbar-title-font-size); |
74 | 123 | display: inline-block; |
75 | | - font-size: 2.1rem; |
76 | 124 | padding: 0; |
77 | 125 |
|
78 | | - &.center { |
79 | | - left: 50%; |
80 | | - transform: translateX(-50%); |
81 | | - } |
82 | | - |
83 | | - @media #{$medium-and-down} { |
| 126 | + &.center { |
84 | 127 | left: 50%; |
85 | 128 | transform: translateX(-50%); |
86 | | - |
87 | | - &.left, &.right { |
88 | | - padding: 0; |
89 | | - transform: none; |
90 | | - } |
91 | | - |
92 | | - &.left { |
93 | | - left: 0.5rem; |
94 | | - } |
95 | | - &.right { |
96 | | - right: 0.5rem; |
97 | | - left: auto; |
98 | | - } |
99 | 129 | } |
100 | 130 |
|
101 | 131 | &.right { |
|
104 | 134 | } |
105 | 135 |
|
106 | 136 | i, |
107 | | - [class^="mdi-"], [class*="mdi-"], |
108 | | - i.material-icons, i.material-symbols-outlined, |
109 | | - i.material-symbols-rounded, i.material-symbols-sharp { |
| 137 | + [class^='mdi-'], |
| 138 | + [class*='mdi-'], |
| 139 | + i.material-icons, |
| 140 | + i.material-symbols-outlined, |
| 141 | + i.material-symbols-rounded, |
| 142 | + i.material-symbols-sharp { |
110 | 143 | float: left; |
111 | 144 | margin-right: 15px; |
112 | 145 | } |
113 | 146 | } |
114 | 147 |
|
115 | | - |
116 | 148 | // Title |
117 | 149 | .nav-title { |
118 | 150 | display: inline-block; |
119 | 151 | font-size: 32px; |
120 | 152 | padding: 28px 0; |
121 | 153 | } |
122 | 154 |
|
123 | | - |
124 | | - // Navbar Links |
125 | | - ul:not(.dropdown-content) { |
126 | | - list-style-type: none; |
127 | | - margin: 0; |
128 | | - |
129 | | - & > li { |
130 | | - transition: background-color .3s; |
131 | | - float: left; |
132 | | - padding: 0; |
133 | | - |
134 | | - & > a { |
135 | | - transition: background-color .3s; |
136 | | - font-size: 1rem; |
137 | | - color: var(--md-sys-color-on-primary); |
138 | | - display: block; |
139 | | - padding: 0 15px; |
140 | | - cursor: pointer; |
141 | | - |
142 | | - &.active { |
143 | | - background-color: var(--md-sys-color-primary-container-dark); |
144 | | - } |
145 | | - |
146 | | - &:hover:not(.active) { |
147 | | - background-color: var(--md-sys-color-on-primary-dark); |
148 | | - } |
149 | | - |
150 | | - &.btn, &.btn-large, &.btn-flat, &.btn-floating { |
151 | | - margin-top: -2px; |
152 | | - margin-left: 15px; |
153 | | - margin-right: 15px; |
154 | | - display: inline-block; |
155 | | - |
156 | | - & > .material-icons, & > .material-symbols-outlined, |
157 | | - & > .material-symbols-rounded, & > .material-symbols-sharp { |
158 | | - height: inherit; |
159 | | - line-height: inherit; |
160 | | - } |
161 | | - } |
162 | | - } |
163 | | - } |
164 | | - |
165 | | - &.left { |
166 | | - float: left; |
167 | | - } |
168 | | - } |
169 | | - |
170 | 155 | // Navbar Search Form |
171 | 156 | form { |
172 | 157 | height: 100%; |
173 | 158 | } |
174 | | - |
175 | 159 | .input-field { |
176 | 160 | margin: 0; |
177 | 161 | height: 100%; |
178 | 162 |
|
179 | | - input[type=search] { |
| 163 | + input[type='search'] { |
180 | 164 | height: 100%; |
181 | 165 | font-size: 1.2rem; |
182 | 166 | border: none; |
183 | 167 | padding-left: 2rem; |
184 | | - color: var(--md-sys-color-on-primary); |
185 | | - |
186 | | - &:focus, &[type=text]:valid, &[type=password]:valid, |
187 | | - &[type=email]:valid, &[type=url]:valid, &[type=date]:valid { |
| 168 | + color: var(--md-sys-color-on-primary); |
| 169 | +
|
| 170 | + &:focus, |
| 171 | + &[type='text']:valid, |
| 172 | + &[type='password']:valid, |
| 173 | + &[type='email']:valid, |
| 174 | + &[type='url']:valid, |
| 175 | + &[type='date']:valid { |
188 | 176 | border: none; |
189 | 177 | box-shadow: none; |
190 | 178 | } |
|
196 | 184 |
|
197 | 185 | i { |
198 | 186 | color: var(--font-on-primary-color-medium); |
199 | | - transition: color .3s; |
| 187 | + transition: color 0.3s; |
200 | 188 | } |
201 | 189 |
|
202 | 190 | &.active i { |
203 | | - color: var(--md-sys-color-on-primary) |
| 191 | + color: var(--md-sys-color-on-primary); |
204 | 192 | } |
205 | 193 | } |
206 | 194 | } |
|
222 | 210 | .nav.nav-extended .nav-wrapper { |
223 | 211 | min-height: var(--navbar-height-mobile); |
224 | 212 | } |
225 | | - .nav, .navbar .nav-wrapper i, nav a.sidenav-trigger, .navbar a.sidenav-trigger i { |
| 213 | + .nav, |
| 214 | + .navbar .nav-wrapper i, |
| 215 | + nav a.sidenav-trigger, |
| 216 | + .navbar a.sidenav-trigger i { |
226 | 217 | height: var(--navbar-height); |
227 | | - line-height: var(--navbar-height) |
| 218 | + line-height: var(--navbar-height); |
228 | 219 | } |
229 | 220 | .navbar-fixed { |
230 | 221 | height: var(--navbar-height); |
231 | 222 | } |
232 | | -} |
| 223 | +} */ |
0 commit comments