|
9 | 9 | } |
10 | 10 | .header { |
11 | 11 | display: flex; |
12 | | - box-shadow: 0 0 5px 0 rgba(0,0,0,0.25); |
13 | | - z-index: 1; |
| 12 | + align-items: center; |
14 | 13 | flex-shrink: 0; |
| 14 | + padding: 0 @gutter*2; |
| 15 | + @media screen and (max-width: 499px){ |
| 16 | + padding: 0 @gutter; |
| 17 | + } |
15 | 18 | background-color: #FFFFFF; |
| 19 | + z-index: 1; |
| 20 | + box-shadow: 0 0 5px 0 rgba(0,0,0,0.25); |
16 | 21 | } |
17 | 22 | .brand { |
18 | 23 | display: flex; |
19 | | - height: @brand-height; |
20 | | - padding-top: @gutter; |
| 24 | + white-space: nowrap; |
21 | 25 | .dropdown { |
22 | 26 | display:none; |
23 | 27 | } |
24 | 28 | .logo { |
25 | 29 | display: inline-block; |
26 | 30 | width: 60px; |
27 | 31 | height: 100%; |
28 | | - margin: 0 @gutter 0 @gutter; |
29 | 32 | cursor: pointer; |
30 | 33 | &:hover > a { |
31 | 34 | opacity: .7; |
|
58 | 61 | } |
59 | 62 |
|
60 | 63 | .logo { |
61 | | - margin: 0 @gutter 0 @gutter*2; |
| 64 | + margin: 0 @gutter 0 0; |
62 | 65 |
|
63 | 66 | &:hover .dropdown { |
64 | 67 | display: block; |
|
129 | 132 | @media screen and (min-width: @breakpoint){ |
130 | 133 | .flex; |
131 | 134 | list-style: none; |
132 | | - margin: auto auto auto @gutter*4; |
133 | | - padding: 0; |
134 | | - align-self: flex-start; |
| 135 | + margin: auto auto auto @gutter*2; |
135 | 136 | > li { |
136 | 137 | .flex; |
137 | | - align-items: center; |
138 | | - font-family: Lato, sans-serif; |
139 | | - font-size: 12px; |
140 | | - color: #3E4548; |
141 | | - text-transform: uppercase; |
142 | | - margin-right: @gutter*2; |
143 | 138 | > a { |
144 | | - color: #1E1E1E; |
145 | | - padding: 20px 5px; |
| 139 | + color: @gray; |
| 140 | + position: relative; |
| 141 | + text-decoration: none; |
| 142 | + padding: 20px 10px @gutter; |
| 143 | + margin: 0 10px; |
| 144 | + &:before { |
| 145 | + content: ''; |
| 146 | + position: absolute; |
| 147 | + bottom: 20px; |
| 148 | + left: 0px; |
| 149 | + width: 100%; |
| 150 | + height: 4px; |
| 151 | + background-color: #CCCCCC; |
| 152 | + opacity: 0; |
| 153 | + z-index: -1; |
| 154 | + transition: all 0.4s ease-in-out; |
| 155 | + } |
| 156 | + &:hover:before { |
| 157 | + bottom: 8px; |
| 158 | + opacity: 1; |
| 159 | + } |
146 | 160 | } |
147 | 161 | &.current { |
148 | 162 | > a { |
149 | | - border-bottom: 4px solid @link-color; |
150 | | - padding-bottom: 6px; |
151 | | - margin-bottom: 10px; |
152 | | - text-decoration: none; |
| 163 | + color: @link-color; |
| 164 | + } |
| 165 | + > a:before { |
| 166 | + bottom: 8px; |
| 167 | + opacity: 1; |
| 168 | + background-color: @link-color; |
153 | 169 | cursor: default; |
154 | 170 | } |
155 | 171 | } |
|
162 | 178 | @media screen and (max-width: 399px){ |
163 | 179 | display: none; |
164 | 180 | } |
165 | | - padding: 0; |
166 | | - margin: 0 0 0 10px; |
| 181 | + padding: 8px 5px 10px; |
| 182 | + margin: 0 0 0 @gutter; |
167 | 183 | list-style: none; |
168 | 184 | justify-content: center; |
169 | 185 | align-items: center; |
170 | 186 | z-index: 999999; |
171 | 187 | .dropdown { |
172 | 188 | display: flex; |
173 | 189 | position: relative; |
174 | | - width: 100px; |
175 | | - height: 100%; |
176 | | - padding: 10px; |
| 190 | + width: 85px; |
| 191 | + height: 35px; |
177 | 192 | .dropdown-menu { |
178 | 193 | display: none; |
179 | 194 | } |
| 195 | + .bitovi.by-bitovi { |
| 196 | + width: 100%; |
| 197 | + height: 100%; |
| 198 | + background: url(img/by-bitovi-logo.svg) no-repeat; |
| 199 | + background-position: center; |
| 200 | + background-size: contain; |
| 201 | + color: rgba(0, 0, 0, 0); |
| 202 | + } |
180 | 203 | } |
181 | 204 | &:hover { |
182 | 205 | background: @border-color; |
|
187 | 210 | background: white; |
188 | 211 | .border; |
189 | 212 | border-top: none; |
190 | | - right: 0; |
191 | | - top: @brand-height; |
| 213 | + right: -5px; |
| 214 | + top: @gutter*3; |
192 | 215 | list-style: none; |
193 | 216 | padding: 0; |
194 | 217 | width: 240px; |
|
212 | 235 | } |
213 | 236 | } |
214 | 237 | } |
215 | | - .bitovi.by-bitovi { |
216 | | - width: 100%; |
217 | | - background: url(img/by-bitovi-logo.svg) no-repeat; |
218 | | - background-position: center; |
219 | | - background-size: contain; |
220 | | - height: auto; |
221 | | - color: rgba(0, 0, 0, 0); |
222 | | - } |
223 | 238 | } |
0 commit comments