|
35 | 35 | display: none;
|
36 | 36 | }
|
37 | 37 | }
|
38 |
| - @media screen and (width > $db-break-the-header-max-width) { |
39 |
| - @include cmp-mainnavigation-checkbox; |
40 |
| - } |
41 |
| - @container not style(--db-narrower-screen: true) { |
42 |
| - @include cmp-mainnavigation-checkbox; |
| 38 | + @if variable-exists(enterprise) { |
| 39 | + // Based on the browser strategy, we could ignore Firefox for the moment |
| 40 | + @container not style(--db-narrower-screen: true) { |
| 41 | + @include cmp-mainnavigation-checkbox; |
| 42 | + } |
| 43 | + } @else { |
| 44 | + @media screen and (width > $db-break-the-header-max-width) { |
| 45 | + @include cmp-mainnavigation-checkbox; |
| 46 | + } |
43 | 47 | }
|
44 | 48 | }
|
45 | 49 |
|
|
88 | 92 | }
|
89 | 93 | }
|
90 | 94 | }
|
91 |
| - @media screen and (max-width: $db-break-the-header-max-width) { |
92 |
| - @include db-cmp-mainnavigation; |
93 |
| - } |
94 |
| - @container style(--db-narrower-screen: true) { |
95 |
| - @include db-cmp-mainnavigation; |
| 95 | + |
| 96 | + @if variable-exists(enterprise) { |
| 97 | + // Based on the browser strategy, we could ignore Firefox for the moment |
| 98 | + @container style(--db-narrower-screen: true) { |
| 99 | + @include db-cmp-mainnavigation; |
| 100 | + } |
| 101 | + } @else { |
| 102 | + @media screen and (max-width: $db-break-the-header-max-width) { |
| 103 | + @include db-cmp-mainnavigation; |
| 104 | + } |
96 | 105 | }
|
97 | 106 |
|
98 | 107 | ul {
|
|
108 | 117 |
|
109 | 118 | z-index: $z-index-rea-header-cmp-mainnavigation-submenu;
|
110 | 119 | }
|
111 |
| - @media screen and (width > $db-break-the-header-max-width) { |
112 |
| - @include db-cmp-mainnavigation-ul-ul-above; |
113 |
| - } |
114 |
| - @container not style(--db-narrower-screen: true) { |
115 |
| - @include db-cmp-mainnavigation-ul-ul-above; |
| 120 | + @if variable-exists(enterprise) { |
| 121 | + // Based on the browser strategy, we could ignore Firefox for the moment |
| 122 | + @container not style(--db-narrower-screen: true) { |
| 123 | + @include db-cmp-mainnavigation-ul-ul-above; |
| 124 | + } |
| 125 | + } @else { |
| 126 | + @media screen and (width > $db-break-the-header-max-width) { |
| 127 | + @include db-cmp-mainnavigation-ul-ul-above; |
| 128 | + } |
116 | 129 | }
|
117 | 130 |
|
118 | 131 | @mixin db-cmp-mainnavigation-ul-ul {
|
119 | 132 | display: none;
|
120 | 133 | }
|
121 |
| - @media screen and (max-width: $db-break-the-header-max-width) { |
122 |
| - @include db-cmp-mainnavigation-ul-ul; |
123 |
| - } |
124 |
| - @container style(--db-narrower-screen: true) { |
125 |
| - @include db-cmp-mainnavigation-ul-ul; |
| 134 | + @if variable-exists(enterprise) { |
| 135 | + // Based on the browser strategy, we could ignore Firefox for the moment |
| 136 | + @container style(--db-narrower-screen: true) { |
| 137 | + @include db-cmp-mainnavigation-ul-ul; |
| 138 | + } |
| 139 | + } @else { |
| 140 | + @media screen and (max-width: $db-break-the-header-max-width) { |
| 141 | + @include db-cmp-mainnavigation-ul-ul; |
| 142 | + } |
126 | 143 | }
|
127 | 144 | }
|
128 | 145 |
|
|
131 | 148 | @mixin db-cmp-mainnavigation-ul-above {
|
132 | 149 | display: flex;
|
133 | 150 | }
|
134 |
| - @media screen and (width > $db-break-the-header-max-width) { |
135 |
| - @include db-cmp-mainnavigation-ul-above; |
136 |
| - } |
137 |
| - @container not style(--db-narrower-screen: true) { |
138 |
| - @include db-cmp-mainnavigation-ul-above; |
| 151 | + @if variable-exists(enterprise) { |
| 152 | + // Based on the browser strategy, we could ignore Firefox for the moment |
| 153 | + @container not style(--db-narrower-screen: true) { |
| 154 | + @include db-cmp-mainnavigation-ul-above; |
| 155 | + } |
| 156 | + } @else { |
| 157 | + @media screen and (width > $db-break-the-header-max-width) { |
| 158 | + @include db-cmp-mainnavigation-ul-above; |
| 159 | + } |
139 | 160 | }
|
140 | 161 |
|
141 | 162 | & > li,
|
|
158 | 179 | border-#{$mainnavigation-link--borderPosition}-color: $db-color-red-500;
|
159 | 180 | }
|
160 | 181 | }
|
161 |
| - @media screen and (width > $db-break-the-header-max-width) { |
162 |
| - @include db-cmp-mainnavigation-ul-li-elm-link-above; |
163 |
| - } |
164 |
| - @container not style(--db-narrower-screen: true) { |
165 |
| - @include db-cmp-mainnavigation-ul-li-elm-link-above; |
| 182 | + @if variable-exists(enterprise) { |
| 183 | + // Based on the browser strategy, we could ignore Firefox for the moment |
| 184 | + @container not style(--db-narrower-screen: true) { |
| 185 | + @include db-cmp-mainnavigation-ul-li-elm-link-above; |
| 186 | + } |
| 187 | + } @else { |
| 188 | + @media screen and (width > $db-break-the-header-max-width) { |
| 189 | + @include db-cmp-mainnavigation-ul-li-elm-link-above; |
| 190 | + } |
166 | 191 | }
|
167 | 192 | }
|
168 | 193 |
|
|
189 | 214 | padding-right: to-rem($pxValue: 18);
|
190 | 215 | }
|
191 | 216 | }
|
192 |
| - @media screen and (width > $db-break-the-header-max-width) { |
193 |
| - @include db-cmp-mainnavigation-ul-li-ul-above; |
194 |
| - } |
195 |
| - @container not style(--db-narrower-screen: true) { |
196 |
| - @include db-cmp-mainnavigation-ul-li-ul-above; |
| 217 | + @if variable-exists(enterprise) { |
| 218 | + // Based on the browser strategy, we could ignore Firefox for the moment |
| 219 | + @container not style(--db-narrower-screen: true) { |
| 220 | + @include db-cmp-mainnavigation-ul-li-ul-above; |
| 221 | + } |
| 222 | + } @else { |
| 223 | + @media screen and (width > $db-break-the-header-max-width) { |
| 224 | + @include db-cmp-mainnavigation-ul-li-ul-above; |
| 225 | + } |
197 | 226 | }
|
198 | 227 |
|
199 | 228 | & > li,
|
|
203 | 232 | @mixin db-cmp-mainnavigation-ul-ul-li {
|
204 | 233 | padding-left: to-rem($pxValue: 34);
|
205 | 234 | }
|
206 |
| - @media screen and (max-width: $db-break-the-header-max-width) { |
207 |
| - @include db-cmp-mainnavigation-ul-ul-li; |
208 |
| - } |
209 |
| - @container style(--db-narrower-screen: true) { |
210 |
| - @include db-cmp-mainnavigation-ul-ul-li; |
| 235 | + @if variable-exists(enterprise) { |
| 236 | + // Based on the browser strategy, we could ignore Firefox for the moment |
| 237 | + @container style(--db-narrower-screen: true) { |
| 238 | + @include db-cmp-mainnavigation-ul-ul-li; |
| 239 | + } |
| 240 | + } @else { |
| 241 | + @media screen and (max-width: $db-break-the-header-max-width) { |
| 242 | + @include db-cmp-mainnavigation-ul-ul-li; |
| 243 | + } |
211 | 244 | }
|
212 | 245 | }
|
213 | 246 |
|
|
220 | 253 | @mixin db-cmp-mainnavigation-ul-ul-ul-li {
|
221 | 254 | padding-left: to-rem($pxValue: 60);
|
222 | 255 | }
|
223 |
| - @media screen and (max-width: $db-break-the-header-max-width) { |
224 |
| - @include db-cmp-mainnavigation-ul-ul-ul-li; |
225 |
| - } |
226 |
| - @container style(--db-narrower-screen: true) { |
227 |
| - @include db-cmp-mainnavigation-ul-ul-ul-li; |
| 256 | + @if variable-exists(enterprise) { |
| 257 | + // Based on the browser strategy, we could ignore Firefox for the moment |
| 258 | + @container style(--db-narrower-screen: true) { |
| 259 | + @include db-cmp-mainnavigation-ul-ul-ul-li; |
| 260 | + } |
| 261 | + } @else { |
| 262 | + @media screen and (max-width: $db-break-the-header-max-width) { |
| 263 | + @include db-cmp-mainnavigation-ul-ul-ul-li; |
| 264 | + } |
228 | 265 | }
|
229 | 266 | }
|
230 | 267 | }
|
|
265 | 302 | @mixin db-cmp-mainnavigation-li-hover {
|
266 | 303 | display: initial;
|
267 | 304 | }
|
268 |
| - @media screen and (max-width: $db-break-the-header-max-width) { |
269 |
| - @include db-cmp-mainnavigation-li-hover; |
270 |
| - } |
271 |
| - @container style(--db-narrower-screen: true) { |
272 |
| - @include db-cmp-mainnavigation-li-hover; |
| 305 | + @if variable-exists(enterprise) { |
| 306 | + // Based on the browser strategy, we could ignore Firefox for the moment |
| 307 | + @container style(--db-narrower-screen: true) { |
| 308 | + @include db-cmp-mainnavigation-li-hover; |
| 309 | + } |
| 310 | + } @else { |
| 311 | + @media screen and (max-width: $db-break-the-header-max-width) { |
| 312 | + @include db-cmp-mainnavigation-li-hover; |
| 313 | + } |
273 | 314 | }
|
274 | 315 | }
|
275 | 316 | }
|
|
299 | 340 | position: relative;
|
300 | 341 | }
|
301 | 342 | }
|
302 |
| - @media screen and (max-width: $db-break-the-header-max-width) { |
303 |
| - @include db-cmp-mainnavigation-li; |
304 |
| - } |
305 |
| - @container style(--db-narrower-screen: true) { |
306 |
| - @include db-cmp-mainnavigation-li; |
| 343 | + @if variable-exists(enterprise) { |
| 344 | + // Based on the browser strategy, we could ignore Firefox for the moment |
| 345 | + @container style(--db-narrower-screen: true) { |
| 346 | + @include db-cmp-mainnavigation-li; |
| 347 | + } |
| 348 | + } @else { |
| 349 | + @media screen and (max-width: $db-break-the-header-max-width) { |
| 350 | + @include db-cmp-mainnavigation-li; |
| 351 | + } |
307 | 352 | }
|
308 | 353 |
|
309 | 354 | @mixin db-cmp-mainnavigation-li-above {
|
|
326 | 371 | }
|
327 | 372 | }
|
328 | 373 | }
|
329 |
| - @media screen and (width > $db-break-the-header-max-width) { |
330 |
| - @include db-cmp-mainnavigation-li-above; |
331 |
| - } |
332 |
| - @container not style(--db-narrower-screen: true) { |
333 |
| - @include db-cmp-mainnavigation-li-above; |
| 374 | + @if variable-exists(enterprise) { |
| 375 | + // Based on the browser strategy, we could ignore Firefox for the moment |
| 376 | + @container not style(--db-narrower-screen: true) { |
| 377 | + @include db-cmp-mainnavigation-li-above; |
| 378 | + } |
| 379 | + } @else { |
| 380 | + @media screen and (width > $db-break-the-header-max-width) { |
| 381 | + @include db-cmp-mainnavigation-li-above; |
| 382 | + } |
334 | 383 | }
|
335 | 384 | }
|
336 | 385 | }
|
0 commit comments