vanilla-framework 4.7.0 → 4.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +8 -8
- package/scss/_base.scss +2 -0
- package/scss/_base_background.scss +2 -6
- package/scss/_base_button.scss +8 -8
- package/scss/_base_code.scss +5 -5
- package/scss/_base_forms.scss +22 -103
- package/scss/_base_grid-definitions.scss +4 -4
- package/scss/_base_hr.scss +5 -39
- package/scss/_base_icon-definitions.scss +361 -54
- package/scss/_base_links.scss +2 -10
- package/scss/_base_placeholders.scss +1 -1
- package/scss/_base_syntax-highlighting.scss +2 -2
- package/scss/_base_tables.scss +2 -2
- package/scss/_base_themes.scss +52 -0
- package/scss/_base_typography-definitions.scss +1 -1
- package/scss/_global_functions.scss +10 -0
- package/scss/_layouts_application-panels.scss +1 -1
- package/scss/_patterns_buttons.scss +35 -167
- package/scss/_patterns_chip.scss +156 -189
- package/scss/_patterns_code-snippet.scss +7 -8
- package/scss/_patterns_contextual-menu.scss +16 -75
- package/scss/_patterns_divider.scss +5 -35
- package/scss/_patterns_form-help-text.scss +1 -29
- package/scss/_patterns_form-password-toggle.scss +1 -1
- package/scss/_patterns_form-tick-elements.scss +9 -128
- package/scss/_patterns_form-validation.scss +31 -229
- package/scss/_patterns_icons.scss +623 -442
- package/scss/_patterns_links.scss +12 -9
- package/scss/_patterns_lists.scss +23 -40
- package/scss/_patterns_media-container.scss +5 -0
- package/scss/_patterns_notifications.scss +21 -12
- package/scss/_patterns_search-box.scss +20 -99
- package/scss/_patterns_section.scss +12 -1
- package/scss/_patterns_side-navigation-expandable.scss +18 -55
- package/scss/_patterns_side-navigation.scss +132 -317
- package/scss/_patterns_strip.scss +41 -13
- package/scss/_patterns_suru.scss +126 -10
- package/scss/_patterns_table-mobile-card.scss +1 -1
- package/scss/_patterns_table-sortable.scss +2 -2
- package/scss/_patterns_tabs.scss +23 -74
- package/scss/_settings_colors.scss +195 -2
- package/scss/_settings_themes.scss +6 -6
- package/scss/_utilities_baseline-grid.scss +8 -0
- package/scss/_utilities_layout.scss +0 -6
- package/scss/_utilities_theme-toggle.scss +39 -0
- package/scss/_vanilla.scss +4 -0
|
@@ -106,7 +106,9 @@
|
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
.p-side-navigation__drawer {
|
|
109
|
+
background: $colors--theme--background-default;
|
|
109
110
|
bottom: 0;
|
|
111
|
+
color: $colors--theme--text-default;
|
|
110
112
|
left: 0;
|
|
111
113
|
overflow: auto;
|
|
112
114
|
position: fixed;
|
|
@@ -155,6 +157,7 @@
|
|
|
155
157
|
.p-side-navigation__overlay {
|
|
156
158
|
@include vf-transition(opacity);
|
|
157
159
|
|
|
160
|
+
background: $colors--theme--background-overlay;
|
|
158
161
|
bottom: 0;
|
|
159
162
|
left: 0;
|
|
160
163
|
opacity: 0;
|
|
@@ -176,8 +179,10 @@
|
|
|
176
179
|
}
|
|
177
180
|
|
|
178
181
|
.p-side-navigation__drawer-header {
|
|
182
|
+
background: $colors--theme--background-default;
|
|
179
183
|
border-bottom-style: solid;
|
|
180
184
|
border-bottom-width: 1px;
|
|
185
|
+
border-color: $colors--theme--border-low-contrast;
|
|
181
186
|
margin-bottom: $spv--small;
|
|
182
187
|
padding-bottom: calc($spv--small - 1px); // compensate for border thickness
|
|
183
188
|
padding-left: 0.25rem; // nudge to visually align icon with text
|
|
@@ -190,7 +195,6 @@
|
|
|
190
195
|
.p-side-navigation__toggle,
|
|
191
196
|
.p-side-navigation__toggle--in-drawer {
|
|
192
197
|
@extend %vf-button-base;
|
|
193
|
-
|
|
194
198
|
&::before {
|
|
195
199
|
@extend %icon;
|
|
196
200
|
|
|
@@ -201,17 +205,39 @@
|
|
|
201
205
|
}
|
|
202
206
|
|
|
203
207
|
.p-side-navigation__toggle {
|
|
208
|
+
@include vf-button-pattern;
|
|
209
|
+
|
|
204
210
|
&::before {
|
|
211
|
+
@include vf-icon-chevron-themed;
|
|
205
212
|
transform: rotate(-90deg);
|
|
206
213
|
}
|
|
207
214
|
}
|
|
208
215
|
|
|
209
216
|
.p-side-navigation__toggle--in-drawer {
|
|
217
|
+
@include vf-button-pattern(
|
|
218
|
+
$button-background-color: $color-transparent,
|
|
219
|
+
$button-border-color: $colors--theme--border-high-contrast,
|
|
220
|
+
$button-text-color: $colors--theme--text-inactive,
|
|
221
|
+
$button-hover-background-color: $colors--theme--background-hover,
|
|
222
|
+
$button-hover-border-color: $colors--theme--border-high-contrast,
|
|
223
|
+
$button-active-background-color: $colors--theme--background-active,
|
|
224
|
+
$button-active-border-color: $color-transparent
|
|
225
|
+
);
|
|
210
226
|
margin-bottom: $sp-unit * 2 - $spv-nudge * 2;
|
|
211
227
|
|
|
212
228
|
&::before {
|
|
229
|
+
@include vf-icon-chevron-themed;
|
|
213
230
|
transform: rotate(90deg);
|
|
214
231
|
}
|
|
232
|
+
|
|
233
|
+
&[aria-expanded='true'] {
|
|
234
|
+
background-color: $color-transparent;
|
|
235
|
+
|
|
236
|
+
&:hover {
|
|
237
|
+
background: $colors--theme--background-hover;
|
|
238
|
+
color: $colors--theme--text-default;
|
|
239
|
+
}
|
|
240
|
+
}
|
|
215
241
|
}
|
|
216
242
|
|
|
217
243
|
@media (min-width: $threshold-6-12-col) {
|
|
@@ -259,10 +285,12 @@
|
|
|
259
285
|
%side-navigation__list {
|
|
260
286
|
@extend %vf-list;
|
|
261
287
|
@extend %vf-pseudo-border--bottom;
|
|
288
|
+
color: $colors--theme--text-inactive;
|
|
262
289
|
|
|
263
290
|
&::after {
|
|
264
291
|
@include vf-side-navigation-spacing-left($prop: left);
|
|
265
292
|
|
|
293
|
+
background: $colors--theme--border-low-contrast;
|
|
266
294
|
bottom: -0.5 * $spv--x-large; // place border in the middle of the margin
|
|
267
295
|
}
|
|
268
296
|
|
|
@@ -313,6 +341,7 @@
|
|
|
313
341
|
padding-top: $spv--x-small;
|
|
314
342
|
|
|
315
343
|
.p-side-navigation__item--title > & {
|
|
344
|
+
color: $colors--theme--text-default;
|
|
316
345
|
font-weight: $font-weight-bold;
|
|
317
346
|
}
|
|
318
347
|
}
|
|
@@ -327,11 +356,38 @@
|
|
|
327
356
|
display: block;
|
|
328
357
|
font-size: map-get($base-font-sizes, base);
|
|
329
358
|
margin: 0;
|
|
359
|
+
max-width: none;
|
|
330
360
|
}
|
|
331
361
|
|
|
332
362
|
%side-navigation__link {
|
|
333
363
|
@include vf-focus;
|
|
334
364
|
|
|
365
|
+
&,
|
|
366
|
+
&:visited {
|
|
367
|
+
color: $colors--theme--text-inactive;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
&:hover {
|
|
371
|
+
background: $colors--theme--background-hover;
|
|
372
|
+
color: $colors--theme--text-default;
|
|
373
|
+
text-decoration: none;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
&:active,
|
|
377
|
+
&.is-active,
|
|
378
|
+
&[aria-current='page'],
|
|
379
|
+
&[aria-current='true'] {
|
|
380
|
+
background: $colors--theme--background-active;
|
|
381
|
+
color: $colors--theme--text-default;
|
|
382
|
+
cursor: default;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
&.is-active,
|
|
386
|
+
&[aria-current='page'],
|
|
387
|
+
&[aria-current='true'] {
|
|
388
|
+
@include vf-highlight-bar($colors--theme--text-default, left);
|
|
389
|
+
}
|
|
390
|
+
|
|
335
391
|
// vf-highlight-bar is rendered above focus outline
|
|
336
392
|
// so we need to hide it on focus
|
|
337
393
|
&:focus::before {
|
|
@@ -343,20 +399,22 @@
|
|
|
343
399
|
&:focus:not(:focus-visible)::before {
|
|
344
400
|
display: block;
|
|
345
401
|
}
|
|
346
|
-
|
|
347
|
-
&:hover {
|
|
348
|
-
text-decoration: none;
|
|
349
|
-
}
|
|
350
402
|
}
|
|
351
403
|
|
|
352
404
|
.p-side-navigation__link {
|
|
353
405
|
@extend %side-navigation__link;
|
|
406
|
+
|
|
407
|
+
&:visited {
|
|
408
|
+
color: $colors--theme--text-inactive;
|
|
409
|
+
}
|
|
354
410
|
}
|
|
355
411
|
|
|
356
412
|
.p-side-navigation__accordion-button {
|
|
357
413
|
// reset default button styles
|
|
414
|
+
background-color: inherit;
|
|
358
415
|
border: 0;
|
|
359
416
|
border-radius: 0;
|
|
417
|
+
color: inherit;
|
|
360
418
|
font-size: inherit;
|
|
361
419
|
justify-content: flex-start;
|
|
362
420
|
margin-bottom: 0;
|
|
@@ -365,6 +423,7 @@
|
|
|
365
423
|
|
|
366
424
|
&::before {
|
|
367
425
|
@extend %icon;
|
|
426
|
+
@include vf-icon-chevron-themed;
|
|
368
427
|
@include vf-transition($property: transform, $duration: fast);
|
|
369
428
|
|
|
370
429
|
align-self: center;
|
|
@@ -374,13 +433,19 @@
|
|
|
374
433
|
margin-right: $sph--large;
|
|
375
434
|
}
|
|
376
435
|
|
|
436
|
+
&:hover {
|
|
437
|
+
background: $colors--theme--background-hover;
|
|
438
|
+
color: $colors--theme--text-default;
|
|
439
|
+
}
|
|
440
|
+
|
|
377
441
|
// aria-selected controls the open and closed state for the accordion tab
|
|
378
442
|
&[aria-expanded='true'] {
|
|
379
443
|
// override base expanded button styles
|
|
380
444
|
background-color: inherit;
|
|
381
445
|
|
|
382
446
|
&:hover {
|
|
383
|
-
background
|
|
447
|
+
background: $colors--theme--background-hover;
|
|
448
|
+
color: $colors--theme--text-default;
|
|
384
449
|
}
|
|
385
450
|
@include vf-transition(#{background-color, border-color});
|
|
386
451
|
}
|
|
@@ -443,6 +508,22 @@
|
|
|
443
508
|
@include vf-side-navigation-spacing-left($multiplier: 2, $offset: $sp-sidenav--accordion-offset);
|
|
444
509
|
}
|
|
445
510
|
}
|
|
511
|
+
|
|
512
|
+
// nested 4th level of navigation
|
|
513
|
+
.p-side-navigation__item--title .p-side-navigation__item .p-side-navigation__item .p-side-navigation__item &,
|
|
514
|
+
.p-side-navigation__item .p-side-navigation__item .p-side-navigation__item .p-side-navigation__item & {
|
|
515
|
+
@include vf-side-navigation-spacing-left($multiplier: 4);
|
|
516
|
+
|
|
517
|
+
// add spacing for variant with right side icons
|
|
518
|
+
.p-side-navigation--icons & {
|
|
519
|
+
@include vf-side-navigation-spacing-left($multiplier: 5, $offset: $sp-sidenav--icon-width);
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
// add spacing for variant with accordions
|
|
523
|
+
.p-side-navigation--accordion & {
|
|
524
|
+
@include vf-side-navigation-spacing-left($multiplier: 3, $offset: $sp-sidenav--accordion-offset);
|
|
525
|
+
}
|
|
526
|
+
}
|
|
446
527
|
}
|
|
447
528
|
|
|
448
529
|
.p-side-navigation--icons {
|
|
@@ -468,6 +549,13 @@
|
|
|
468
549
|
padding: 0; // padding will come from the link in heading
|
|
469
550
|
}
|
|
470
551
|
|
|
552
|
+
.p-side-navigation__heading,
|
|
553
|
+
.p-side-navigation__heading--linked .p-side-navigation__link,
|
|
554
|
+
.p-side-navigation__item--title,
|
|
555
|
+
.p-side-navigation__item--title .p-side-navigation__link {
|
|
556
|
+
color: $colors--theme--text-default;
|
|
557
|
+
}
|
|
558
|
+
|
|
471
559
|
// Styles for markup in raw HTML docs variant
|
|
472
560
|
.p-side-navigation--raw-html {
|
|
473
561
|
// stylelint-disable selector-max-type -- we support raw HTML markup for discourse-generated side nav
|
|
@@ -477,14 +565,39 @@
|
|
|
477
565
|
h5,
|
|
478
566
|
h6 {
|
|
479
567
|
@extend %side-navigation__heading;
|
|
568
|
+
color: $colors--theme--text-default;
|
|
480
569
|
}
|
|
481
570
|
|
|
482
571
|
ul {
|
|
483
572
|
@extend %side-navigation__list;
|
|
573
|
+
|
|
574
|
+
&::after {
|
|
575
|
+
background: $colors--theme--border-low-contrast;
|
|
576
|
+
}
|
|
484
577
|
}
|
|
485
578
|
|
|
486
579
|
li > a {
|
|
487
580
|
@extend %side-navigation__link;
|
|
581
|
+
|
|
582
|
+
&,
|
|
583
|
+
&:visited {
|
|
584
|
+
color: $colors--theme--text-inactive;
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
&:hover {
|
|
588
|
+
background: $colors--theme--background-hover;
|
|
589
|
+
color: $colors--theme--text-default;
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
&:active,
|
|
593
|
+
&.is-active,
|
|
594
|
+
&[aria-current='page'],
|
|
595
|
+
&[aria-current='true'] {
|
|
596
|
+
@include vf-highlight-bar($colors--theme--text-default, left);
|
|
597
|
+
|
|
598
|
+
background: $colors--theme--background-active;
|
|
599
|
+
color: $colors--theme--text-default;
|
|
600
|
+
}
|
|
488
601
|
}
|
|
489
602
|
|
|
490
603
|
li > span,
|
|
@@ -509,47 +622,26 @@
|
|
|
509
622
|
// stylelint-enable selector-max-type
|
|
510
623
|
}
|
|
511
624
|
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
&.is-light {
|
|
519
|
-
@include vf-side-navigation-theme-light;
|
|
520
|
-
}
|
|
521
|
-
}
|
|
522
|
-
|
|
523
|
-
.p-side-navigation--raw-html {
|
|
524
|
-
@include vf-side-navigation-raw-html-theme-dark;
|
|
525
|
-
|
|
526
|
-
&.is-light {
|
|
527
|
-
@include vf-side-navigation-raw-html-theme-light;
|
|
528
|
-
}
|
|
529
|
-
}
|
|
530
|
-
} @else {
|
|
531
|
-
.p-side-navigation,
|
|
532
|
-
[class*='p-side-navigation--'] {
|
|
533
|
-
@include vf-side-navigation-theme-light;
|
|
625
|
+
@if mixin-exists(vf-application-layout--when-collapsed) {
|
|
626
|
+
.p-side-navigation__item.has-active-child {
|
|
627
|
+
// parent element that has active child should be selected when navigation is collapsed
|
|
628
|
+
@include vf-application-layout--when-collapsed() {
|
|
629
|
+
// @include vf-highlight-bar($color-sidenav-item-border-highlight, left);
|
|
630
|
+
@include vf-highlight-bar($colors--theme--text-default, left);
|
|
534
631
|
|
|
535
|
-
|
|
536
|
-
|
|
632
|
+
background: $colors--theme--background-hover;
|
|
633
|
+
color: $colors--theme--text-default;
|
|
537
634
|
}
|
|
538
|
-
}
|
|
539
635
|
|
|
540
|
-
|
|
541
|
-
@include vf-
|
|
636
|
+
// parent element with active child should not be selected when navigation is expanded
|
|
637
|
+
@include vf-application-layout--when-expanded() {
|
|
638
|
+
@include vf-highlight-bar(transparent, left);
|
|
542
639
|
|
|
543
|
-
|
|
544
|
-
|
|
640
|
+
background: transparent;
|
|
641
|
+
color: $colors--theme--text-inactive;
|
|
545
642
|
}
|
|
546
643
|
}
|
|
547
644
|
}
|
|
548
|
-
|
|
549
|
-
.is-paper .p-side-navigation__drawer,
|
|
550
|
-
.is-paper .p-side-navigation__drawer-header {
|
|
551
|
-
background: $color-paper;
|
|
552
|
-
}
|
|
553
645
|
}
|
|
554
646
|
|
|
555
647
|
// helper
|
|
@@ -570,280 +662,3 @@
|
|
|
570
662
|
#{$prop}: $multiplier * map-get($grid-margin-widths, default) + $offset;
|
|
571
663
|
}
|
|
572
664
|
}
|
|
573
|
-
|
|
574
|
-
// theme
|
|
575
|
-
@mixin vf-side-navigation-theme(
|
|
576
|
-
// default text color in sidebar
|
|
577
|
-
$color-sidenav-text-default,
|
|
578
|
-
// default background color (for the drawer)
|
|
579
|
-
$color-sidenav-background-default,
|
|
580
|
-
// background color the overlay
|
|
581
|
-
$color-sidenav-background-overlay,
|
|
582
|
-
// text color of highlighted items
|
|
583
|
-
$color-sidenav-text-active,
|
|
584
|
-
// background color of active items
|
|
585
|
-
$color-sidenav-item-background-active,
|
|
586
|
-
// background color of hovered items
|
|
587
|
-
$color-sidenav-item-background-hover,
|
|
588
|
-
// border color of active item
|
|
589
|
-
$color-sidenav-item-border-highlight,
|
|
590
|
-
// border color of items list
|
|
591
|
-
$color-sidenav-list-border,
|
|
592
|
-
// color of toggle icon - needed because of lack of rgba support in icon mixin
|
|
593
|
-
$color-sidenav-toggle-icon
|
|
594
|
-
) {
|
|
595
|
-
& {
|
|
596
|
-
color: $color-sidenav-text-default;
|
|
597
|
-
}
|
|
598
|
-
|
|
599
|
-
// toggle to open side navigation is supposed to be in main content (on light background)
|
|
600
|
-
// it's using default 'neutral' button look regardless of the theme used by side navigation
|
|
601
|
-
.p-side-navigation__toggle {
|
|
602
|
-
@include vf-button-pattern;
|
|
603
|
-
|
|
604
|
-
&::before {
|
|
605
|
-
@include vf-icon-chevron;
|
|
606
|
-
}
|
|
607
|
-
}
|
|
608
|
-
|
|
609
|
-
.p-side-navigation__toggle--in-drawer {
|
|
610
|
-
@include vf-button-pattern(
|
|
611
|
-
$button-background-color: $color-transparent,
|
|
612
|
-
$button-border-color: $color-transparent,
|
|
613
|
-
$button-text-color: $color-sidenav-text-default,
|
|
614
|
-
$button-hover-background-color: $color-sidenav-item-background-hover,
|
|
615
|
-
$button-hover-border-color: $color-transparent,
|
|
616
|
-
$button-active-background-color: $color-sidenav-item-background-active,
|
|
617
|
-
$button-active-border-color: $color-transparent
|
|
618
|
-
);
|
|
619
|
-
|
|
620
|
-
&::before {
|
|
621
|
-
@include vf-icon-chevron($color-sidenav-toggle-icon);
|
|
622
|
-
}
|
|
623
|
-
|
|
624
|
-
&[aria-expanded='true'] {
|
|
625
|
-
background-color: $color-transparent;
|
|
626
|
-
|
|
627
|
-
&:hover {
|
|
628
|
-
background: $color-sidenav-item-background-hover;
|
|
629
|
-
color: $color-sidenav-text-active;
|
|
630
|
-
}
|
|
631
|
-
}
|
|
632
|
-
}
|
|
633
|
-
|
|
634
|
-
.p-side-navigation__drawer {
|
|
635
|
-
background: $color-sidenav-background-default;
|
|
636
|
-
}
|
|
637
|
-
|
|
638
|
-
.p-side-navigation__overlay {
|
|
639
|
-
background: $color-sidenav-background-overlay;
|
|
640
|
-
}
|
|
641
|
-
|
|
642
|
-
.p-side-navigation__drawer-header {
|
|
643
|
-
background: $color-sidenav-background-default;
|
|
644
|
-
border-color: $color-sidenav-list-border;
|
|
645
|
-
}
|
|
646
|
-
|
|
647
|
-
.p-side-navigation__list::after {
|
|
648
|
-
background: $color-sidenav-list-border;
|
|
649
|
-
}
|
|
650
|
-
|
|
651
|
-
.p-side-navigation__link {
|
|
652
|
-
&,
|
|
653
|
-
&:visited {
|
|
654
|
-
color: $color-sidenav-text-default;
|
|
655
|
-
}
|
|
656
|
-
|
|
657
|
-
&:hover {
|
|
658
|
-
background: $color-sidenav-item-background-hover;
|
|
659
|
-
color: $color-sidenav-text-active;
|
|
660
|
-
}
|
|
661
|
-
|
|
662
|
-
&:active,
|
|
663
|
-
&.is-active,
|
|
664
|
-
&[aria-current='page'],
|
|
665
|
-
&[aria-current='true'] {
|
|
666
|
-
background: $color-sidenav-item-background-active;
|
|
667
|
-
color: $color-sidenav-text-active;
|
|
668
|
-
cursor: default;
|
|
669
|
-
}
|
|
670
|
-
|
|
671
|
-
&.is-active,
|
|
672
|
-
&[aria-current='page'],
|
|
673
|
-
&[aria-current='true'] {
|
|
674
|
-
@include vf-highlight-bar($color-sidenav-item-border-highlight, left);
|
|
675
|
-
}
|
|
676
|
-
}
|
|
677
|
-
|
|
678
|
-
.p-side-navigation__heading,
|
|
679
|
-
.p-side-navigation__heading--linked .p-side-navigation__link,
|
|
680
|
-
.p-side-navigation__item--title,
|
|
681
|
-
.p-side-navigation__item--title .p-side-navigation__link {
|
|
682
|
-
color: $color-sidenav-text-active;
|
|
683
|
-
}
|
|
684
|
-
|
|
685
|
-
.p-side-navigation__accordion-button {
|
|
686
|
-
background-color: inherit;
|
|
687
|
-
color: inherit;
|
|
688
|
-
&::before {
|
|
689
|
-
@include vf-icon-chevron($color-sidenav-toggle-icon);
|
|
690
|
-
}
|
|
691
|
-
|
|
692
|
-
&:hover {
|
|
693
|
-
background: $color-sidenav-item-background-hover;
|
|
694
|
-
color: $color-sidenav-text-active;
|
|
695
|
-
}
|
|
696
|
-
}
|
|
697
|
-
|
|
698
|
-
// styles applied when side nav is used in application layout
|
|
699
|
-
@if mixin-exists(vf-application-layout--when-collapsed) {
|
|
700
|
-
.p-side-navigation__item.has-active-child {
|
|
701
|
-
// parent element that has active child should be selected when navigation is collapsed
|
|
702
|
-
@include vf-application-layout--when-collapsed() {
|
|
703
|
-
@include vf-highlight-bar($color-sidenav-item-border-highlight, left);
|
|
704
|
-
|
|
705
|
-
background: $color-sidenav-item-background-hover;
|
|
706
|
-
color: $color-sidenav-text-active;
|
|
707
|
-
}
|
|
708
|
-
|
|
709
|
-
// parent element with active child should not be selected when navigation is expanded
|
|
710
|
-
@include vf-application-layout--when-expanded() {
|
|
711
|
-
@include vf-highlight-bar(transparent, left);
|
|
712
|
-
|
|
713
|
-
background: transparent;
|
|
714
|
-
color: $color-sidenav-text-default;
|
|
715
|
-
}
|
|
716
|
-
}
|
|
717
|
-
}
|
|
718
|
-
}
|
|
719
|
-
|
|
720
|
-
@mixin vf-side-navigation-theme-light {
|
|
721
|
-
@include vf-side-navigation-theme(
|
|
722
|
-
$color-sidenav-text-default: $colors--light-theme--text-inactive,
|
|
723
|
-
$color-sidenav-background-default: $colors--light-theme--background-default,
|
|
724
|
-
$color-sidenav-background-overlay: $colors--light-theme--background-overlay,
|
|
725
|
-
$color-sidenav-text-active: $colors--light-theme--text-default,
|
|
726
|
-
$color-sidenav-item-background-active: $colors--light-theme--background-active,
|
|
727
|
-
$color-sidenav-item-background-hover: $colors--light-theme--background-hover,
|
|
728
|
-
$color-sidenav-item-border-highlight: $colors--light-theme--text-default,
|
|
729
|
-
$color-sidenav-list-border: $colors--light-theme--border-low-contrast,
|
|
730
|
-
$color-sidenav-toggle-icon: $colors--light-theme--text-inactive
|
|
731
|
-
);
|
|
732
|
-
|
|
733
|
-
.is-paper & {
|
|
734
|
-
@include vf-side-navigation-theme(
|
|
735
|
-
$color-sidenav-text-default: $colors--light-theme--text-inactive,
|
|
736
|
-
$color-sidenav-background-default: $color-paper,
|
|
737
|
-
$color-sidenav-background-overlay: $colors--light-theme--background-overlay,
|
|
738
|
-
$color-sidenav-text-active: $colors--light-theme--text-default,
|
|
739
|
-
$color-sidenav-item-background-active: $colors--paper-theme--background-active,
|
|
740
|
-
$color-sidenav-item-background-hover: $colors--paper-theme--background-hover,
|
|
741
|
-
$color-sidenav-item-border-highlight: $colors--light-theme--text-default,
|
|
742
|
-
$color-sidenav-list-border: $colors--light-theme--border-low-contrast,
|
|
743
|
-
$color-sidenav-toggle-icon: $colors--light-theme--text-inactive
|
|
744
|
-
);
|
|
745
|
-
}
|
|
746
|
-
}
|
|
747
|
-
|
|
748
|
-
@mixin vf-side-navigation-theme-dark {
|
|
749
|
-
// FIXME:
|
|
750
|
-
// $color-sidenav-toggle-icon color should be same as $color-sidenav-text-default,
|
|
751
|
-
// but vf-url-friendly-color doesn't support rgba(),
|
|
752
|
-
// so we are using #999 as fallback for now
|
|
753
|
-
@include vf-side-navigation-theme(
|
|
754
|
-
$color-sidenav-text-default: $colors--dark-theme--text-inactive,
|
|
755
|
-
$color-sidenav-background-default: $colors--dark-theme--background-default,
|
|
756
|
-
$color-sidenav-background-overlay: $colors--dark-theme--background-overlay,
|
|
757
|
-
$color-sidenav-text-active: $colors--dark-theme--text-default,
|
|
758
|
-
$color-sidenav-item-background-active: $colors--dark-theme--background-active,
|
|
759
|
-
$color-sidenav-item-background-hover: $colors--dark-theme--background-hover,
|
|
760
|
-
$color-sidenav-item-border-highlight: $colors--dark-theme--text-default,
|
|
761
|
-
$color-sidenav-list-border: $colors--dark-theme--border-low-contrast,
|
|
762
|
-
$color-sidenav-toggle-icon: #999
|
|
763
|
-
);
|
|
764
|
-
}
|
|
765
|
-
|
|
766
|
-
// Theme for markup in raw HTML docs variant
|
|
767
|
-
@mixin vf-side-navigation-raw-html-theme(
|
|
768
|
-
// default text color in sidebar
|
|
769
|
-
$color-sidenav-text-default,
|
|
770
|
-
// text color of highlighted items
|
|
771
|
-
$color-sidenav-text-active,
|
|
772
|
-
// background color of active items
|
|
773
|
-
$color-sidenav-item-background-active,
|
|
774
|
-
// background color of hovered items
|
|
775
|
-
$color-sidenav-item-background-hover,
|
|
776
|
-
// border color of active item
|
|
777
|
-
$color-sidenav-item-border-highlight,
|
|
778
|
-
// border color of items list
|
|
779
|
-
$color-sidenav-list-border
|
|
780
|
-
) {
|
|
781
|
-
// stylelint-disable selector-max-type
|
|
782
|
-
ul::after {
|
|
783
|
-
background: $color-sidenav-list-border;
|
|
784
|
-
}
|
|
785
|
-
|
|
786
|
-
li > a {
|
|
787
|
-
&,
|
|
788
|
-
&:visited {
|
|
789
|
-
color: $color-sidenav-text-default;
|
|
790
|
-
}
|
|
791
|
-
|
|
792
|
-
&:hover {
|
|
793
|
-
background: $color-sidenav-item-background-hover;
|
|
794
|
-
color: $color-sidenav-text-active;
|
|
795
|
-
}
|
|
796
|
-
|
|
797
|
-
&:active,
|
|
798
|
-
&.is-active,
|
|
799
|
-
&[aria-current='page'],
|
|
800
|
-
&[aria-current='true'] {
|
|
801
|
-
@include vf-highlight-bar($color-sidenav-item-border-highlight, left);
|
|
802
|
-
|
|
803
|
-
background: $color-sidenav-item-background-active;
|
|
804
|
-
color: $color-sidenav-text-active;
|
|
805
|
-
}
|
|
806
|
-
}
|
|
807
|
-
|
|
808
|
-
h2,
|
|
809
|
-
h3,
|
|
810
|
-
h4,
|
|
811
|
-
h5,
|
|
812
|
-
h6 {
|
|
813
|
-
color: $color-sidenav-text-active;
|
|
814
|
-
}
|
|
815
|
-
// stylelint-enable selector-max-type
|
|
816
|
-
}
|
|
817
|
-
|
|
818
|
-
@mixin vf-side-navigation-raw-html-theme-light {
|
|
819
|
-
@include vf-side-navigation-raw-html-theme(
|
|
820
|
-
$color-sidenav-text-default: $colors--light-theme--text-inactive,
|
|
821
|
-
$color-sidenav-text-active: $colors--light-theme--text-default,
|
|
822
|
-
$color-sidenav-item-background-active: $colors--light-theme--background-active,
|
|
823
|
-
$color-sidenav-item-background-hover: $colors--light-theme--background-hover,
|
|
824
|
-
$color-sidenav-item-border-highlight: $colors--light-theme--text-default,
|
|
825
|
-
$color-sidenav-list-border: $colors--light-theme--border-low-contrast
|
|
826
|
-
);
|
|
827
|
-
|
|
828
|
-
.is-paper {
|
|
829
|
-
@include vf-side-navigation-raw-html-theme(
|
|
830
|
-
$color-sidenav-text-default: $colors--light-theme--text-inactive,
|
|
831
|
-
$color-sidenav-text-active: $colors--light-theme--text-default,
|
|
832
|
-
$color-sidenav-item-background-active: $colors--paper-theme--background-active,
|
|
833
|
-
$color-sidenav-item-background-hover: $colors--paper-theme--background-hover,
|
|
834
|
-
$color-sidenav-item-border-highlight: $colors--light-theme--text-default,
|
|
835
|
-
$color-sidenav-list-border: $colors--light-theme--border-low-contrast
|
|
836
|
-
);
|
|
837
|
-
}
|
|
838
|
-
}
|
|
839
|
-
|
|
840
|
-
@mixin vf-side-navigation-raw-html-theme-dark {
|
|
841
|
-
@include vf-side-navigation-raw-html-theme(
|
|
842
|
-
$color-sidenav-text-default: $colors--dark-theme--text-inactive,
|
|
843
|
-
$color-sidenav-text-active: $colors--dark-theme--text-default,
|
|
844
|
-
$color-sidenav-item-background-active: $colors--dark-theme--background-active,
|
|
845
|
-
$color-sidenav-item-background-hover: $colors--dark-theme--background-hover,
|
|
846
|
-
$color-sidenav-item-border-highlight: $colors--dark-theme--text-default,
|
|
847
|
-
$color-sidenav-list-border: $colors--dark-theme--border-low-contrast
|
|
848
|
-
);
|
|
849
|
-
}
|