|
9 | 9 | */ |
10 | 10 | .pl-c-nav { |
11 | 11 | background-color: inherit; |
12 | | - |
13 | 12 | position: absolute; |
14 | 13 | top: 100%; |
15 | 14 | width: 100%; |
|
20 | 19 | transition: max-height $pl-animate-quick ease-out; |
21 | 20 |
|
22 | 21 | /** |
23 | | - * Active navigaiton |
24 | | - * 1) Slide |
25 | | - * 2) Set the height to the vierport height minus the height |
26 | | - * of the header |
27 | | - */ |
| 22 | + * Active navigaiton |
| 23 | + * 1) Slide |
| 24 | + * 2) Set the height to the vierport height minus the height |
| 25 | + * of the header |
| 26 | + */ |
28 | 27 | &.pl-is-active { |
29 | | - @include hideScrollBar; |
30 | | - max-height: calc(100vh - #{$offset-top - 1rem}); /* 2 */ |
| 28 | + max-height: calc(100vh - #{$offset-top} - 1rem); /* 2 */ |
31 | 29 | overflow: auto; |
32 | | - |
33 | 30 | box-shadow: 0 1px 1px $pl-color-black; |
34 | 31 |
|
| 32 | + // if nav was opened on smaller screen and screen is resized, it'll be cut off otherwise |
| 33 | + @media all and (min-width: $pl-bp-med) { |
| 34 | + overflow: visible; |
| 35 | + } |
| 36 | + |
35 | 37 | .pl-c-body--theme-light & { |
36 | 38 | box-shadow: 0 1px 1px darken($pl-color-gray-20, 15%); |
37 | 39 | } |
|
111 | 113 | */ |
112 | 114 | .pl-c-nav__link--sublink { |
113 | 115 | text-transform: none; |
114 | | - padding-left: 1rem; |
| 116 | + padding-left: $pl-space / 2; |
115 | 117 | } |
116 | 118 |
|
117 | 119 | /** |
|
189 | 191 | * Dropdown sublist |
190 | 192 | * 1) Set the height to the viewport height minus the height of the header |
191 | 193 | */ |
192 | | -.pl-c-nav__sublist--dropdown.pl-is-active { |
| 194 | +.pl-c-nav__sublist--dropdown.pl-is-active, |
| 195 | +.pl-c-nav__subsublist--dropdown.pl-is-active { |
| 196 | + margin-left: $pl-space / 2; |
| 197 | + |
193 | 198 | @media all and (min-width: $pl-bp-med) { |
194 | 199 | height: auto; |
195 | 200 | max-height: calc(100vh - #{$offset-top} - 1rem); /* 1 */ |
196 | 201 | } |
| 202 | +} |
197 | 203 |
|
198 | | - border: 1px solid $pl-color-black; |
| 204 | +.pl-c-nav__sublist--dropdown.pl-is-active { |
| 205 | + @media all and (min-width: $pl-bp-med) { |
| 206 | + margin-left: 0; |
| 207 | + border-width: 1px; |
| 208 | + border-style: solid; |
| 209 | + border-color: $pl-color-black; |
199 | 210 |
|
200 | | - .pl-c-body--theme-light & { |
201 | | - border: 1px solid $pl-color-gray-20; |
| 211 | + .pl-c-body--theme-light & { |
| 212 | + border-color: $pl-color-gray-20; |
| 213 | + } |
202 | 214 | } |
203 | 215 | } |
204 | 216 |
|
|
0 commit comments