vanilla-framework 4.9.1 → 4.11.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 +9 -10
- package/scss/_base_blockquotes.scss +1 -1
- package/scss/_base_button.scss +2 -0
- package/scss/_base_code.scss +0 -8
- package/scss/_base_forms-range.scss +6 -5
- package/scss/_base_forms.scss +3 -8
- package/scss/_base_icon-definitions.scss +1 -1
- package/scss/_base_placeholders.scss +2 -0
- package/scss/_patterns_buttons.scss +3 -11
- package/scss/_patterns_card.scss +2 -1
- package/scss/_patterns_chip.scss +10 -15
- package/scss/_patterns_equal-height-row.scss +107 -0
- package/scss/_patterns_icons.scss +3 -95
- package/scss/_patterns_lists.scss +3 -3
- package/scss/_patterns_media-container.scss +5 -0
- package/scss/_patterns_navigation.scss +113 -245
- package/scss/_patterns_notifications.scss +0 -1
- package/scss/_patterns_pagination.scss +2 -2
- package/scss/_patterns_rule.scss +2 -10
- package/scss/_patterns_suru.scss +35 -4
- package/scss/_settings_colors.scss +2 -2
- package/scss/_settings_spacing.scss +4 -4
- package/scss/_settings_themes.scss +9 -6
- package/scss/_utilities_layout.scss +10 -4
- package/scss/_vanilla.scss +13 -11
|
@@ -121,7 +121,7 @@ $list-step-bullet-margin: $sph--x-large;
|
|
|
121
121
|
}
|
|
122
122
|
|
|
123
123
|
@mixin vf-list-item-divided {
|
|
124
|
-
box-shadow: inset 0px 1px 0px 0px $
|
|
124
|
+
box-shadow: inset 0px 1px 0px 0px $colors--theme--border-low-contrast;
|
|
125
125
|
margin: 0;
|
|
126
126
|
padding-bottom: $sph--large;
|
|
127
127
|
padding-top: $sph--small;
|
|
@@ -131,7 +131,7 @@ $list-step-bullet-margin: $sph--x-large;
|
|
|
131
131
|
}
|
|
132
132
|
|
|
133
133
|
.p-list--divided > .p-list__item:first-child {
|
|
134
|
-
box-shadow: inset 0px 1px 0px 0px $
|
|
134
|
+
box-shadow: inset 0px 1px 0px 0px $colors--theme--border-low-contrast;
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
137
|
|
|
@@ -396,7 +396,7 @@ $list-step-bullet-margin: $sph--x-large;
|
|
|
396
396
|
position: relative;
|
|
397
397
|
|
|
398
398
|
&::after {
|
|
399
|
-
background-color: $colors--
|
|
399
|
+
background-color: $colors--theme--border-low-contrast;
|
|
400
400
|
content: '';
|
|
401
401
|
height: 1px;
|
|
402
402
|
left: 0;
|
|
@@ -54,6 +54,28 @@ $spv-navigation-logo-bottom-position: 0.125rem; // 2px when 1rem is 16px
|
|
|
54
54
|
@extend %navigation-link-responsive-padding-right;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
+
%navigation-link-text {
|
|
58
|
+
color: $colors--theme--text-default;
|
|
59
|
+
text-decoration: none;
|
|
60
|
+
|
|
61
|
+
&:link,
|
|
62
|
+
&:visited,
|
|
63
|
+
&:focus,
|
|
64
|
+
&:hover {
|
|
65
|
+
color: $colors--theme--text-default;
|
|
66
|
+
text-decoration: none;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&:hover {
|
|
70
|
+
background-color: $colors--theme--background-alt;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&[aria-pressed='true'],
|
|
74
|
+
&:active {
|
|
75
|
+
background-color: $colors--theme--background-active;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
57
79
|
%navigation-link {
|
|
58
80
|
$properties:
|
|
59
81
|
#{background-color,
|
|
@@ -61,6 +83,7 @@ $spv-navigation-logo-bottom-position: 0.125rem; // 2px when 1rem is 16px
|
|
|
61
83
|
opacity};
|
|
62
84
|
@extend %navigation-link-responsive-padding-horizontal;
|
|
63
85
|
@extend %navigation-link-responsive-padding-vertical;
|
|
86
|
+
@extend %navigation-link-text;
|
|
64
87
|
@extend %vf-navigation-separator;
|
|
65
88
|
@include vf-transition($properties, snap);
|
|
66
89
|
@include vf-focus;
|
|
@@ -89,12 +112,6 @@ $spv-navigation-logo-bottom-position: 0.125rem; // 2px when 1rem is 16px
|
|
|
89
112
|
@media (min-width: $breakpoint-navigation-threshold) {
|
|
90
113
|
padding-left: map-get($grid-margin-widths, default);
|
|
91
114
|
}
|
|
92
|
-
|
|
93
|
-
&:visited,
|
|
94
|
-
&:focus,
|
|
95
|
-
&:hover {
|
|
96
|
-
text-decoration: none;
|
|
97
|
-
}
|
|
98
115
|
}
|
|
99
116
|
|
|
100
117
|
%vf-reset-horizontal-padding {
|
|
@@ -104,6 +121,7 @@ $spv-navigation-logo-bottom-position: 0.125rem; // 2px when 1rem is 16px
|
|
|
104
121
|
|
|
105
122
|
%vf-navigation-separator {
|
|
106
123
|
&::before {
|
|
124
|
+
background: $colors--theme--border-low-contrast;
|
|
107
125
|
content: '';
|
|
108
126
|
height: 1px;
|
|
109
127
|
left: calc(#{map-get($grid-margin-widths, small)} + #{$sph--x-large});
|
|
@@ -123,6 +141,7 @@ $spv-navigation-logo-bottom-position: 0.125rem; // 2px when 1rem is 16px
|
|
|
123
141
|
|
|
124
142
|
.p-navigation,
|
|
125
143
|
.p-navigation--sliding {
|
|
144
|
+
background-color: $colors--theme--background-default;
|
|
126
145
|
display: flex;
|
|
127
146
|
flex-direction: column;
|
|
128
147
|
flex-shrink: 0;
|
|
@@ -323,6 +342,7 @@ $spv-navigation-logo-bottom-position: 0.125rem; // 2px when 1rem is 16px
|
|
|
323
342
|
}
|
|
324
343
|
|
|
325
344
|
.p-navigation__logo-title {
|
|
345
|
+
color: $colors--theme--text-default;
|
|
326
346
|
// font sizing adjusted to match logo
|
|
327
347
|
font-size: 1.3rem;
|
|
328
348
|
font-weight: 300;
|
|
@@ -403,6 +423,16 @@ $spv-navigation-logo-bottom-position: 0.125rem; // 2px when 1rem is 16px
|
|
|
403
423
|
}
|
|
404
424
|
}
|
|
405
425
|
|
|
426
|
+
[class*='p-navigation__item'].is-selected > .p-navigation__link {
|
|
427
|
+
background-color: $colors--theme--background-alt;
|
|
428
|
+
|
|
429
|
+
@include vf-highlight-bar($colors--theme--text-default, left, true);
|
|
430
|
+
|
|
431
|
+
@media (min-width: $breakpoint-navigation-threshold) {
|
|
432
|
+
@include vf-highlight-bar($colors--theme--text-default, bottom, false);
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
|
|
406
436
|
// small screen navigation toggles
|
|
407
437
|
.p-navigation__toggle--close {
|
|
408
438
|
display: none;
|
|
@@ -422,16 +452,10 @@ $spv-navigation-logo-bottom-position: 0.125rem; // 2px when 1rem is 16px
|
|
|
422
452
|
.p-navigation__toggle--search {
|
|
423
453
|
@extend %navigation-link-responsive-padding-horizontal;
|
|
424
454
|
@extend %navigation-link-responsive-padding-vertical;
|
|
455
|
+
@extend %navigation-link-text;
|
|
425
456
|
@include vf-focus;
|
|
426
457
|
|
|
427
458
|
margin: 0 0 auto 0;
|
|
428
|
-
|
|
429
|
-
&,
|
|
430
|
-
&:visited,
|
|
431
|
-
&:focus,
|
|
432
|
-
&:hover {
|
|
433
|
-
text-decoration: none;
|
|
434
|
-
}
|
|
435
459
|
}
|
|
436
460
|
|
|
437
461
|
.p-navigation:target {
|
|
@@ -502,6 +526,8 @@ $spv-navigation-logo-bottom-position: 0.125rem; // 2px when 1rem is 16px
|
|
|
502
526
|
}
|
|
503
527
|
|
|
504
528
|
&::after {
|
|
529
|
+
@include vf-icon-search-themed;
|
|
530
|
+
|
|
505
531
|
background-position: center;
|
|
506
532
|
background-repeat: no-repeat;
|
|
507
533
|
background-size: contain;
|
|
@@ -541,7 +567,7 @@ $spv-navigation-logo-bottom-position: 0.125rem; // 2px when 1rem is 16px
|
|
|
541
567
|
.p-navigation__search-overlay {
|
|
542
568
|
@include vf-transition(opacity, snap);
|
|
543
569
|
|
|
544
|
-
background-color: $colors--
|
|
570
|
+
background-color: $colors--theme--background-overlay;
|
|
545
571
|
display: block;
|
|
546
572
|
height: 100%;
|
|
547
573
|
left: 0;
|
|
@@ -606,6 +632,7 @@ $spv-navigation-logo-bottom-position: 0.125rem; // 2px when 1rem is 16px
|
|
|
606
632
|
.p-navigation__dropdown--right {
|
|
607
633
|
@extend %vf-has-box-shadow;
|
|
608
634
|
|
|
635
|
+
background-color: $colors--theme--background-default;
|
|
609
636
|
display: none;
|
|
610
637
|
margin: 0;
|
|
611
638
|
min-width: 100%;
|
|
@@ -631,6 +658,8 @@ $spv-navigation-logo-bottom-position: 0.125rem; // 2px when 1rem is 16px
|
|
|
631
658
|
position: relative;
|
|
632
659
|
|
|
633
660
|
&::after {
|
|
661
|
+
@include vf-icon-chevron-themed;
|
|
662
|
+
|
|
634
663
|
background-position: center;
|
|
635
664
|
background-repeat: no-repeat;
|
|
636
665
|
background-size: contain;
|
|
@@ -684,6 +713,7 @@ $spv-navigation-logo-bottom-position: 0.125rem; // 2px when 1rem is 16px
|
|
|
684
713
|
.p-navigation__dropdown-item {
|
|
685
714
|
@extend %navigation-link-responsive-padding-horizontal;
|
|
686
715
|
@extend %navigation-link-responsive-padding-vertical;
|
|
716
|
+
@extend %navigation-link-text;
|
|
687
717
|
@extend %vf-navigation-separator;
|
|
688
718
|
|
|
689
719
|
display: block;
|
|
@@ -700,14 +730,6 @@ $spv-navigation-logo-bottom-position: 0.125rem; // 2px when 1rem is 16px
|
|
|
700
730
|
padding-left: $sph--large;
|
|
701
731
|
padding-top: $spv--medium;
|
|
702
732
|
}
|
|
703
|
-
|
|
704
|
-
&,
|
|
705
|
-
&:active,
|
|
706
|
-
&:focus,
|
|
707
|
-
&:hover,
|
|
708
|
-
&:visited {
|
|
709
|
-
text-decoration: none;
|
|
710
|
-
}
|
|
711
733
|
}
|
|
712
734
|
|
|
713
735
|
@keyframes vf-nav-fade-in {
|
|
@@ -763,87 +785,7 @@ $spv-navigation-logo-bottom-position: 0.125rem; // 2px when 1rem is 16px
|
|
|
763
785
|
}
|
|
764
786
|
}
|
|
765
787
|
|
|
766
|
-
/* stylelint-disable max-nesting-depth */
|
|
767
|
-
.p-navigation--sliding .p-navigation__items {
|
|
768
|
-
transition: transform $sliding-nav-animation-settings;
|
|
769
|
-
|
|
770
|
-
&.is-active {
|
|
771
|
-
transform: translateX(-25vw);
|
|
772
|
-
@media (min-width: $breakpoint-navigation-threshold) {
|
|
773
|
-
transform: none;
|
|
774
|
-
}
|
|
775
|
-
.p-navigation__dropdown {
|
|
776
|
-
transform: translateX(25vw);
|
|
777
|
-
@media (min-width: $breakpoint-navigation-threshold) {
|
|
778
|
-
transform: none;
|
|
779
|
-
}
|
|
780
|
-
&[aria-hidden='false'],
|
|
781
|
-
&:not([aria-hidden]) {
|
|
782
|
-
transform: translateX(-75vw);
|
|
783
|
-
@media (min-width: $breakpoint-navigation-threshold) {
|
|
784
|
-
transform: none;
|
|
785
|
-
}
|
|
786
|
-
&.is-active {
|
|
787
|
-
transform: translateX(-100vw);
|
|
788
|
-
@media (min-width: $breakpoint-navigation-threshold) {
|
|
789
|
-
transform: none;
|
|
790
|
-
}
|
|
791
|
-
}
|
|
792
|
-
}
|
|
793
|
-
}
|
|
794
|
-
}
|
|
795
|
-
}
|
|
796
|
-
/* stylelint-enable max-nesting-depth */
|
|
797
|
-
|
|
798
|
-
.p-navigation--sliding .p-navigation__item--dropdown-toggle {
|
|
799
|
-
position: initial;
|
|
800
|
-
|
|
801
|
-
&::after {
|
|
802
|
-
content: none;
|
|
803
|
-
}
|
|
804
|
-
|
|
805
|
-
.p-navigation__link::after {
|
|
806
|
-
background-position: center;
|
|
807
|
-
background-repeat: no-repeat;
|
|
808
|
-
background-size: contain;
|
|
809
|
-
content: '';
|
|
810
|
-
display: block;
|
|
811
|
-
height: $spv--large;
|
|
812
|
-
pointer-events: none;
|
|
813
|
-
position: absolute;
|
|
814
|
-
right: map-get($grid-margin-widths, small);
|
|
815
|
-
text-indent: calc(100% + 10rem);
|
|
816
|
-
top: 1rem;
|
|
817
|
-
transform: rotate(-90deg);
|
|
818
|
-
width: map-get($icon-sizes, default);
|
|
819
|
-
@include vf-icon-chevron($colors--dark-theme--text-default);
|
|
820
|
-
|
|
821
|
-
@media (min-width: $breakpoint-navigation-threshold) {
|
|
822
|
-
right: 0.5rem;
|
|
823
|
-
top: 1.2rem;
|
|
824
|
-
transform: none;
|
|
825
|
-
}
|
|
826
|
-
}
|
|
827
|
-
|
|
828
|
-
&.is-active > .p-navigation__link::after {
|
|
829
|
-
@media (min-width: $breakpoint-navigation-threshold) {
|
|
830
|
-
transform: rotate(180deg);
|
|
831
|
-
}
|
|
832
|
-
}
|
|
833
|
-
}
|
|
834
|
-
|
|
835
|
-
.p-navigation--sliding .p-navigation__item--dropdown-close {
|
|
836
|
-
.p-navigation__link::after {
|
|
837
|
-
left: 1rem;
|
|
838
|
-
transform: rotate(90deg);
|
|
839
|
-
}
|
|
840
|
-
@media (min-width: $breakpoint-navigation-threshold) {
|
|
841
|
-
display: none;
|
|
842
|
-
}
|
|
843
|
-
}
|
|
844
|
-
|
|
845
|
-
/* stylelint-disable max-nesting-depth */
|
|
846
|
-
|
|
788
|
+
/* stylelint-disable max-nesting-depth -- allow deep nesting for sliding navigation */
|
|
847
789
|
.p-navigation--sliding .p-navigation__dropdown {
|
|
848
790
|
display: block;
|
|
849
791
|
height: 100vh;
|
|
@@ -877,7 +819,7 @@ $spv-navigation-logo-bottom-position: 0.125rem; // 2px when 1rem is 16px
|
|
|
877
819
|
&[aria-hidden='false'],
|
|
878
820
|
&:not([aria-hidden]) {
|
|
879
821
|
&::before {
|
|
880
|
-
opacity
|
|
822
|
+
@include vf-themed-property(opacity, 0.33, 0.75);
|
|
881
823
|
}
|
|
882
824
|
|
|
883
825
|
display: block;
|
|
@@ -899,160 +841,86 @@ $spv-navigation-logo-bottom-position: 0.125rem; // 2px when 1rem is 16px
|
|
|
899
841
|
}
|
|
900
842
|
}
|
|
901
843
|
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
// Theming
|
|
905
|
-
@if ($theme-default-nav == 'dark') {
|
|
906
|
-
.p-navigation,
|
|
907
|
-
.p-navigation--sliding {
|
|
908
|
-
@include vf-navigation-dark-theme;
|
|
909
|
-
}
|
|
910
|
-
|
|
911
|
-
.p-navigation.is-light,
|
|
912
|
-
.p-navigation--sliding.is-light {
|
|
913
|
-
@include vf-navigation-light-theme;
|
|
914
|
-
}
|
|
915
|
-
} @else {
|
|
916
|
-
.p-navigation,
|
|
917
|
-
.p-navigation--sliding {
|
|
918
|
-
@include vf-navigation-light-theme;
|
|
919
|
-
}
|
|
844
|
+
.p-navigation--sliding .p-navigation__items {
|
|
845
|
+
transition: transform $sliding-nav-animation-settings;
|
|
920
846
|
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
@
|
|
847
|
+
&.is-active {
|
|
848
|
+
transform: translateX(-25vw);
|
|
849
|
+
@media (min-width: $breakpoint-navigation-threshold) {
|
|
850
|
+
transform: none;
|
|
851
|
+
}
|
|
852
|
+
.p-navigation__dropdown {
|
|
853
|
+
transform: translateX(25vw);
|
|
854
|
+
@media (min-width: $breakpoint-navigation-threshold) {
|
|
855
|
+
transform: none;
|
|
856
|
+
}
|
|
857
|
+
&[aria-hidden='false'],
|
|
858
|
+
&:not([aria-hidden]) {
|
|
859
|
+
transform: translateX(-75vw);
|
|
860
|
+
@media (min-width: $breakpoint-navigation-threshold) {
|
|
861
|
+
transform: none;
|
|
862
|
+
}
|
|
863
|
+
&.is-active {
|
|
864
|
+
transform: translateX(-100vw);
|
|
865
|
+
@media (min-width: $breakpoint-navigation-threshold) {
|
|
866
|
+
transform: none;
|
|
867
|
+
}
|
|
868
|
+
}
|
|
869
|
+
}
|
|
870
|
+
}
|
|
924
871
|
}
|
|
925
872
|
}
|
|
926
|
-
|
|
873
|
+
/* stylelint-enable max-nesting-depth */
|
|
927
874
|
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
$color-navigation-background,
|
|
933
|
-
$color-navigation-background--active,
|
|
934
|
-
// color for the navigation text
|
|
935
|
-
$color-navigation-text,
|
|
936
|
-
$color-navigation-background--hover,
|
|
937
|
-
// color for the navigation highlight bar
|
|
938
|
-
$color-navigation-highlight,
|
|
939
|
-
$color-navigation-icon,
|
|
940
|
-
$overlay-target-opacity
|
|
941
|
-
) {
|
|
942
|
-
background-color: $color-navigation-background;
|
|
943
|
-
|
|
944
|
-
.p-navigation__link,
|
|
945
|
-
.p-navigation__link--search-toggle,
|
|
946
|
-
.p-navigation__toggle--close,
|
|
947
|
-
.p-navigation__toggle--open,
|
|
948
|
-
.p-navigation__dropdown-item {
|
|
949
|
-
&,
|
|
950
|
-
&:hover,
|
|
951
|
-
&:visited,
|
|
952
|
-
&:focus {
|
|
953
|
-
color: $color-navigation-text;
|
|
954
|
-
}
|
|
875
|
+
.p-navigation--sliding {
|
|
876
|
+
// Default positioning for nested dropdown buttons. Overridden by subsequent styles.
|
|
877
|
+
.p-navigation__item--dropdown-toggle {
|
|
878
|
+
position: initial;
|
|
955
879
|
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
880
|
+
&::after {
|
|
881
|
+
content: none;
|
|
882
|
+
}
|
|
959
883
|
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
background-color: $color-navigation-background--active;
|
|
963
|
-
}
|
|
964
|
-
}
|
|
884
|
+
.p-navigation__link::after {
|
|
885
|
+
@include vf-icon-chevron-themed;
|
|
965
886
|
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
887
|
+
background-position: center;
|
|
888
|
+
background-repeat: no-repeat;
|
|
889
|
+
background-size: contain;
|
|
890
|
+
content: '';
|
|
891
|
+
display: block;
|
|
892
|
+
height: $spv--large;
|
|
893
|
+
pointer-events: none;
|
|
894
|
+
position: absolute;
|
|
895
|
+
right: map-get($grid-margin-widths, small);
|
|
896
|
+
text-indent: calc(100% + 10rem);
|
|
897
|
+
top: 1rem;
|
|
898
|
+
transform: rotate(-90deg);
|
|
899
|
+
width: map-get($icon-sizes, default);
|
|
969
900
|
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
&::after {
|
|
976
|
-
@include vf-icon-chevron($color-navigation-icon);
|
|
901
|
+
@media (min-width: $breakpoint-navigation-threshold) {
|
|
902
|
+
right: 0.5rem;
|
|
903
|
+
top: 1.2rem;
|
|
904
|
+
transform: none;
|
|
905
|
+
}
|
|
977
906
|
}
|
|
978
|
-
}
|
|
979
|
-
|
|
980
|
-
&.is-active > .p-navigation__link {
|
|
981
|
-
background-color: $color-navigation-background--active;
|
|
982
|
-
}
|
|
983
|
-
}
|
|
984
907
|
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
908
|
+
&.is-active > .p-navigation__link::after {
|
|
909
|
+
@media (min-width: $breakpoint-navigation-threshold) {
|
|
910
|
+
transform: rotate(180deg);
|
|
911
|
+
}
|
|
989
912
|
}
|
|
990
913
|
}
|
|
991
|
-
}
|
|
992
914
|
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
[class*='p-navigation__item'].is-selected > .p-navigation__link {
|
|
1004
|
-
background-color: $color-navigation-background--hover;
|
|
1005
|
-
|
|
1006
|
-
@include vf-highlight-bar($color-navigation-highlight, left, true);
|
|
1007
|
-
|
|
1008
|
-
@media (min-width: $breakpoint-navigation-threshold) {
|
|
1009
|
-
@include vf-highlight-bar($color-navigation-highlight, bottom, false);
|
|
915
|
+
// Style for the "go back" button that closes the current level of the sidenav dropdown. Overrides base style from above
|
|
916
|
+
.p-navigation__item--dropdown-close {
|
|
917
|
+
.p-navigation__link::after {
|
|
918
|
+
left: 1rem;
|
|
919
|
+
transform: rotate(90deg);
|
|
920
|
+
}
|
|
921
|
+
@media (min-width: $breakpoint-navigation-threshold) {
|
|
922
|
+
display: none;
|
|
923
|
+
}
|
|
1010
924
|
}
|
|
1011
925
|
}
|
|
1012
|
-
|
|
1013
|
-
// add color to separator line for navigation items, navigation links and dropdown items
|
|
1014
|
-
.p-navigation__nav .p-navigation__link::before,
|
|
1015
|
-
.p-navigation__nav .p-navigation__items::before,
|
|
1016
|
-
.p-navigation__nav .p-navigation__items .p-navigation__dropdown-item::before {
|
|
1017
|
-
background: $color-navigation-separator;
|
|
1018
|
-
}
|
|
1019
|
-
|
|
1020
|
-
// on mobile expanded nav needs to match pressed color of the buttons
|
|
1021
|
-
&.has-menu-open .p-navigation__nav,
|
|
1022
|
-
&.p-navigation:target .p-navigation__nav,
|
|
1023
|
-
&.p-navigation:target .p-navigation__dropdown,
|
|
1024
|
-
&.has-search-open .p-navigation__nav {
|
|
1025
|
-
background-color: $color-navigation-background;
|
|
1026
|
-
}
|
|
1027
|
-
|
|
1028
|
-
.p-navigation__dropdown[aria-hidden='false']::before,
|
|
1029
|
-
.p-navigation__dropdown:not([aria-hidden])::before {
|
|
1030
|
-
opacity: $overlay-target-opacity;
|
|
1031
|
-
}
|
|
1032
|
-
}
|
|
1033
|
-
|
|
1034
|
-
@mixin vf-navigation-light-theme {
|
|
1035
|
-
@include vf-navigation-theme(
|
|
1036
|
-
$color-navigation-text: $colors--light-theme--text-default,
|
|
1037
|
-
$color-navigation-background: $colors--light-theme--background-default,
|
|
1038
|
-
$color-navigation-background--hover: $colors--light-theme--background-alt,
|
|
1039
|
-
$color-navigation-background--active: $colors--light-theme--background-active,
|
|
1040
|
-
$color-navigation-highlight: $colors--light-theme--text-default,
|
|
1041
|
-
$color-navigation-separator: $colors--light-theme--border-low-contrast,
|
|
1042
|
-
$color-navigation-icon: $colors--light-theme--text-default,
|
|
1043
|
-
$overlay-target-opacity: 0.33
|
|
1044
|
-
);
|
|
1045
|
-
}
|
|
1046
|
-
|
|
1047
|
-
@mixin vf-navigation-dark-theme {
|
|
1048
|
-
@include vf-navigation-theme(
|
|
1049
|
-
$color-navigation-text: $colors--dark-theme--text-default,
|
|
1050
|
-
$color-navigation-background: $colors--dark-theme--background-default,
|
|
1051
|
-
$color-navigation-background--hover: $colors--dark-theme--background-hover,
|
|
1052
|
-
$color-navigation-background--active: $colors--dark-theme--background-alt,
|
|
1053
|
-
$color-navigation-highlight: $colors--dark-theme--text-default,
|
|
1054
|
-
$color-navigation-separator: $colors--dark-theme--border-low-contrast,
|
|
1055
|
-
$color-navigation-icon: $colors--dark-theme--text-default,
|
|
1056
|
-
$overlay-target-opacity: 0.75
|
|
1057
|
-
);
|
|
1058
926
|
}
|
|
@@ -74,7 +74,6 @@ $notification-text-margin-bottom: $spv--large - $spv-nudge;
|
|
|
74
74
|
// The mixin for basic notification styling
|
|
75
75
|
%vf-notification {
|
|
76
76
|
@extend %vf-is-bordered;
|
|
77
|
-
@extend %vf-bg--x-light;
|
|
78
77
|
|
|
79
78
|
background: $colors--theme--background-default;
|
|
80
79
|
background-position: $sph--large $notification-icon-vert-offset;
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
|
|
8
8
|
&.is-active,
|
|
9
9
|
&[aria-current='page'] {
|
|
10
|
-
background-color:
|
|
11
|
-
color: $colors--
|
|
10
|
+
background-color: $colors--theme--background-active;
|
|
11
|
+
color: $colors--theme--text-default;
|
|
12
12
|
text-decoration: none;
|
|
13
13
|
}
|
|
14
14
|
}
|
package/scss/_patterns_rule.scss
CHANGED
|
@@ -8,19 +8,11 @@
|
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
.p-rule--muted {
|
|
11
|
-
background-color: $colors--
|
|
12
|
-
|
|
13
|
-
&.is-dark {
|
|
14
|
-
background-color: $colors--dark-theme--border-low-contrast;
|
|
15
|
-
}
|
|
11
|
+
background-color: $colors--theme--border-low-contrast;
|
|
16
12
|
}
|
|
17
13
|
|
|
18
14
|
.p-rule--highlight {
|
|
19
|
-
@include vf-highlight-bar($colors--
|
|
20
|
-
|
|
21
|
-
&.is-dark {
|
|
22
|
-
@include vf-highlight-bar($colors--dark-theme--text-default);
|
|
23
|
-
}
|
|
15
|
+
@include vf-highlight-bar($colors--theme--text-default);
|
|
24
16
|
|
|
25
17
|
&.is-accent {
|
|
26
18
|
@include vf-highlight-bar($color-accent);
|
package/scss/_patterns_suru.scss
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
:root,
|
|
9
9
|
.is-light,
|
|
10
10
|
.is-paper {
|
|
11
|
-
// new suru backgrounds don't have
|
|
11
|
+
// new suru backgrounds don't have white (light) version,
|
|
12
12
|
// they need paper background
|
|
13
13
|
--vf-suru-background: #{$color-paper};
|
|
14
14
|
--vf-suru-25-75: url('#{$assets-path}505636a6-0000_suru-main-25x75-light.png');
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
--vf-suru-fan-bottom-right: url('#{$assets-path}2adade55-suru-corner-fan--bottom-0000_light.jpg');
|
|
18
18
|
--vf-suru-pyramid-top-left: url('#{$assets-path}8846d6a5-suru-pyramid-top-corner_0000_light.jpg');
|
|
19
19
|
--vf-suru-pyramid-top-right: url('#{$assets-path}5d9f8cd3-suru-pyramid-top-right-corner_0000_light.jpg');
|
|
20
|
+
--vf-suru-divider: url('#{$assets-path}9e25feb2-suru-triangle-from-left-edge--_0000_light.jpg');
|
|
20
21
|
}
|
|
21
22
|
|
|
22
23
|
.is-dark {
|
|
@@ -27,6 +28,7 @@
|
|
|
27
28
|
--vf-suru-fan-bottom-right: url('#{$assets-path}725af649-suru-corner-fan--bottom-0001_dark.jpg');
|
|
28
29
|
--vf-suru-pyramid-top-left: url('#{$assets-path}86ed5771-suru-pyramid-top-corner_0001_dark.jpg');
|
|
29
30
|
--vf-suru-pyramid-top-right: url('#{$assets-path}9f740811-suru-pyramid-top-right-corner_0001_dark.jpg');
|
|
31
|
+
--vf-suru-divider: url('#{$assets-path}9c0bee5c-suru-triangle-from-left-edge--_0001_dark.jpg');
|
|
30
32
|
}
|
|
31
33
|
}
|
|
32
34
|
|
|
@@ -85,7 +87,6 @@
|
|
|
85
87
|
}
|
|
86
88
|
|
|
87
89
|
// padding top based on p-section--hero
|
|
88
|
-
// bottom padding not needed (as it's covered by the suru background image)
|
|
89
90
|
padding-top: $spv--large;
|
|
90
91
|
|
|
91
92
|
// on large screens, same as %section-padding--shallow
|
|
@@ -108,7 +109,7 @@
|
|
|
108
109
|
background-image: var(--vf-suru-fan-top-right);
|
|
109
110
|
background-position: top right;
|
|
110
111
|
background-repeat: no-repeat;
|
|
111
|
-
background-size:
|
|
112
|
+
background-size: 32rem 24.09rem; // based on image dimensions (2048x1542) scaled down by 0.25, coverted to rem
|
|
112
113
|
}
|
|
113
114
|
|
|
114
115
|
.p-suru--fan-bottom {
|
|
@@ -121,7 +122,7 @@
|
|
|
121
122
|
background-image: var(--vf-suru-pyramid-top-left);
|
|
122
123
|
background-position: top left;
|
|
123
124
|
background-repeat: no-repeat;
|
|
124
|
-
background-size:
|
|
125
|
+
background-size: 22.125rem 16.1718rem; // based on image dimensions (1380x1035) scaled down by 0.25, converted to rem
|
|
125
126
|
}
|
|
126
127
|
|
|
127
128
|
.p-suru--pyramid-right {
|
|
@@ -129,4 +130,34 @@
|
|
|
129
130
|
background-position: top right;
|
|
130
131
|
}
|
|
131
132
|
}
|
|
133
|
+
|
|
134
|
+
.p-suru--divider {
|
|
135
|
+
background-color: var(--vf-suru-background);
|
|
136
|
+
color: $colors--theme--text-default;
|
|
137
|
+
// same as %section-padding--deep
|
|
138
|
+
padding-bottom: calc($spv--strip-deep / 2);
|
|
139
|
+
position: relative;
|
|
140
|
+
|
|
141
|
+
// only apply suru background images on large screens
|
|
142
|
+
@media (min-width: $breakpoint-large) {
|
|
143
|
+
padding-bottom: calc(2 * $spv--strip-deep);
|
|
144
|
+
|
|
145
|
+
&::after {
|
|
146
|
+
$suru-divider-height: 13.75rem; // 220px / 16px = 13.75rem
|
|
147
|
+
|
|
148
|
+
background-image: var(--vf-suru-divider);
|
|
149
|
+
background-position: bottom left;
|
|
150
|
+
background-repeat: no-repeat;
|
|
151
|
+
background-size: 80rem 14.8125rem; // based on image dimensions (2560x474) scaled down by 0.5, converted to rem
|
|
152
|
+
|
|
153
|
+
bottom: calc((2 * $spv--strip-deep - $suru-divider-height) / 2);
|
|
154
|
+
content: '';
|
|
155
|
+
display: block;
|
|
156
|
+
|
|
157
|
+
height: $suru-divider-height;
|
|
158
|
+
position: absolute;
|
|
159
|
+
width: 100%;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
132
163
|
}
|
|
@@ -179,9 +179,9 @@ $colors--dark-theme--background-active: rgba($colors--dark-theme--text-default,
|
|
|
179
179
|
$colors--dark-theme--background-hover: rgba($colors--dark-theme--text-default, $hover-background-opacity-amount) !default;
|
|
180
180
|
$colors--dark-theme--background-overlay: transparentize($color-dark, 0.15) !default;
|
|
181
181
|
|
|
182
|
-
$colors--dark-theme--border-default: rgba($colors--dark-theme--text-default, 0.
|
|
182
|
+
$colors--dark-theme--border-default: rgba($colors--dark-theme--text-default, 0.2) !default;
|
|
183
183
|
$colors--dark-theme--border-high-contrast: rgba($colors--dark-theme--text-default, 0.5) !default;
|
|
184
|
-
$colors--dark-theme--border-low-contrast: rgba($colors--dark-theme--text-default, 0.
|
|
184
|
+
$colors--dark-theme--border-low-contrast: rgba($colors--dark-theme--text-default, 0.1) !default;
|
|
185
185
|
|
|
186
186
|
$colors--dark-theme--icon: $colors--dark-theme--text-default !default;
|
|
187
187
|
|
|
@@ -52,10 +52,10 @@ $nudges: (
|
|
|
52
52
|
h4-large: 0.45rem,
|
|
53
53
|
h4: 0.45rem,
|
|
54
54
|
h4-mobile: 0.45rem,
|
|
55
|
-
h5: 0.
|
|
56
|
-
h6: 0.
|
|
57
|
-
h6-large: 0.
|
|
58
|
-
p: 0.
|
|
55
|
+
h5: 0.375rem,
|
|
56
|
+
h6: 0.375em,
|
|
57
|
+
h6-large: 0.375rem,
|
|
58
|
+
p: 0.375rem,
|
|
59
59
|
p-ubuntumono: 0.45rem,
|
|
60
60
|
small: 0.05rem,
|
|
61
61
|
x-small: 0.25rem,
|