vanilla-framework 4.9.0 → 4.10.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 +2 -8
- package/scss/_base_icon-definitions.scss +6 -1
- package/scss/_base_placeholders.scss +2 -0
- package/scss/_patterns_buttons.scss +3 -13
- package/scss/_patterns_card.scss +2 -1
- package/scss/_patterns_chip.scss +10 -15
- package/scss/_patterns_equal-height-row.scss +214 -0
- package/scss/_patterns_icons.scss +3 -95
- package/scss/_patterns_media-container.scss +5 -0
- package/scss/_patterns_navigation.scss +106 -242
- package/scss/_patterns_notifications.scss +2 -3
- package/scss/_patterns_table-mobile-card.scss +3 -2
- package/scss/_settings_colors.scss +3 -0
- package/scss/_settings_themes.scss +9 -6
- package/scss/_vanilla.scss +13 -11
|
@@ -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,82 @@ $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
|
-
|
|
927
|
-
|
|
928
|
-
@mixin vf-navigation-theme(
|
|
929
|
-
// color for the navigation separator on small screens
|
|
930
|
-
$color-navigation-separator,
|
|
931
|
-
// color for the navigation background
|
|
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
|
-
}
|
|
873
|
+
/* stylelint-enable max-nesting-depth */
|
|
955
874
|
|
|
956
|
-
|
|
957
|
-
|
|
875
|
+
.p-navigation--sliding .p-navigation__item--dropdown-close {
|
|
876
|
+
.p-navigation__link::after {
|
|
877
|
+
left: 1rem;
|
|
878
|
+
transform: rotate(90deg);
|
|
958
879
|
}
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
&:active {
|
|
962
|
-
background-color: $color-navigation-background--active;
|
|
880
|
+
@media (min-width: $breakpoint-navigation-threshold) {
|
|
881
|
+
display: none;
|
|
963
882
|
}
|
|
964
883
|
}
|
|
965
884
|
|
|
966
|
-
.p-
|
|
967
|
-
|
|
968
|
-
}
|
|
885
|
+
.p-navigation--sliding .p-navigation__item--dropdown-toggle {
|
|
886
|
+
position: initial;
|
|
969
887
|
|
|
970
|
-
.p-navigation__item--dropdown-toggle {
|
|
971
888
|
&::after {
|
|
972
|
-
|
|
973
|
-
}
|
|
974
|
-
& > .p-navigation__link {
|
|
975
|
-
&::after {
|
|
976
|
-
@include vf-icon-chevron($color-navigation-icon);
|
|
977
|
-
}
|
|
889
|
+
content: none;
|
|
978
890
|
}
|
|
979
891
|
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
}
|
|
983
|
-
}
|
|
892
|
+
.p-navigation__link::after {
|
|
893
|
+
@include vf-icon-chevron-themed;
|
|
984
894
|
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
895
|
+
background-position: center;
|
|
896
|
+
background-repeat: no-repeat;
|
|
897
|
+
background-size: contain;
|
|
898
|
+
content: '';
|
|
899
|
+
display: block;
|
|
900
|
+
height: $spv--large;
|
|
901
|
+
pointer-events: none;
|
|
902
|
+
position: absolute;
|
|
903
|
+
right: map-get($grid-margin-widths, small);
|
|
904
|
+
text-indent: calc(100% + 10rem);
|
|
905
|
+
top: 1rem;
|
|
906
|
+
transform: rotate(-90deg);
|
|
907
|
+
width: map-get($icon-sizes, default);
|
|
908
|
+
|
|
909
|
+
@media (min-width: $breakpoint-navigation-threshold) {
|
|
910
|
+
right: 0.5rem;
|
|
911
|
+
top: 1.2rem;
|
|
912
|
+
transform: none;
|
|
989
913
|
}
|
|
990
914
|
}
|
|
991
|
-
}
|
|
992
|
-
|
|
993
|
-
.p-navigation__toggle--search::after,
|
|
994
|
-
.p-navigation__item .p-navigation__link--search-toggle::after {
|
|
995
|
-
@include vf-icon-search($color-navigation-icon);
|
|
996
|
-
}
|
|
997
|
-
|
|
998
|
-
.p-navigation__dropdown,
|
|
999
|
-
.p-navigation__dropdown--right {
|
|
1000
|
-
background-color: $color-navigation-background;
|
|
1001
|
-
}
|
|
1002
|
-
|
|
1003
|
-
[class*='p-navigation__item'].is-selected > .p-navigation__link {
|
|
1004
|
-
background-color: $color-navigation-background--hover;
|
|
1005
915
|
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
916
|
+
&.is-active > .p-navigation__link::after {
|
|
917
|
+
@media (min-width: $breakpoint-navigation-threshold) {
|
|
918
|
+
transform: rotate(180deg);
|
|
919
|
+
}
|
|
1010
920
|
}
|
|
1011
921
|
}
|
|
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
922
|
}
|
|
@@ -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;
|
|
@@ -215,7 +214,7 @@ $notification-text-margin-bottom: $spv--large - $spv-nudge;
|
|
|
215
214
|
.p-notification {
|
|
216
215
|
@extend %vf-notification;
|
|
217
216
|
@include vf-highlight-bar($colors--theme--border-information, left, true);
|
|
218
|
-
@include vf-icon-info-themed;
|
|
217
|
+
@include vf-icon-info-coloured-themed;
|
|
219
218
|
}
|
|
220
219
|
}
|
|
221
220
|
|
|
@@ -251,6 +250,6 @@ $notification-text-margin-bottom: $spv--large - $spv-nudge;
|
|
|
251
250
|
.p-notification--information {
|
|
252
251
|
@extend %vf-notification;
|
|
253
252
|
@include vf-highlight-bar($colors--theme--border-information, left, true);
|
|
254
|
-
@include vf-icon-info-themed;
|
|
253
|
+
@include vf-icon-info-coloured-themed;
|
|
255
254
|
}
|
|
256
255
|
}
|
|
@@ -24,8 +24,9 @@
|
|
|
24
24
|
width: 100%;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
// tbody selector needed to override the default table styles
|
|
28
|
+
tbody tr {
|
|
29
|
+
border: 1px solid $colors--theme--border-default;
|
|
29
30
|
display: block;
|
|
30
31
|
margin-bottom: $spv--x-large;
|
|
31
32
|
padding: 0 $sph--large;
|
|
@@ -50,6 +50,9 @@ $active-background-opacity-amount: 0.08;
|
|
|
50
50
|
$muted-text-opacity-amount: 0.6;
|
|
51
51
|
$inactive-text-opacity-amount: 0.75;
|
|
52
52
|
|
|
53
|
+
$active-background-opacity-percentage: $active-background-opacity-amount * 100%;
|
|
54
|
+
$hover-background-opacity-percentage: $hover-background-opacity-amount * 100%;
|
|
55
|
+
|
|
53
56
|
// NON-SEMANTIC COLOURS
|
|
54
57
|
$color-label-validated: #006b75;
|
|
55
58
|
$color-code-background: rgba($color-x-dark, 0.03);
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
+
// deprecated
|
|
2
|
+
// the following SCSS variables are deprecated and will be removed in a future release
|
|
3
|
+
// they are not used to switch themes anymore, instead use the CSS theme class names `is-light`, `is-dark` or `is-paper`
|
|
1
4
|
$theme-default-forms: 'light' !default;
|
|
2
|
-
$theme-default-hr: 'light' !default;
|
|
5
|
+
$theme-default-hr: 'light' !default;
|
|
3
6
|
$theme-default-nav: 'light' !default;
|
|
4
|
-
$theme-default-p-side-navigation: 'light' !default;
|
|
7
|
+
$theme-default-p-side-navigation: 'light' !default;
|
|
5
8
|
$theme-default-p-search-box: 'light' !default;
|
|
6
|
-
$theme-default-p-divider: 'light' !default;
|
|
7
|
-
$theme-default-p-contextual-menu: 'light' !default;
|
|
8
|
-
$theme-default-p-inline-list--middot: 'light' !default;
|
|
9
|
+
$theme-default-p-divider: 'light' !default;
|
|
10
|
+
$theme-default-p-contextual-menu: 'light' !default;
|
|
11
|
+
$theme-default-p-inline-list--middot: 'light' !default;
|
|
9
12
|
$theme-default-p-button: 'light' !default;
|
|
10
13
|
$theme-default-p-chip: 'light' !default;
|
|
11
|
-
$theme-default-p-tabs: 'light' !default;
|
|
14
|
+
$theme-default-p-tabs: 'light' !default;
|
package/scss/_vanilla.scss
CHANGED
|
@@ -4,18 +4,19 @@
|
|
|
4
4
|
|
|
5
5
|
@import 'patterns_accordion';
|
|
6
6
|
@import 'patterns_article-pagination';
|
|
7
|
+
@import 'patterns_badge';
|
|
7
8
|
@import 'patterns_breadcrumbs';
|
|
8
9
|
@import 'patterns_buttons';
|
|
9
10
|
@import 'patterns_card';
|
|
10
11
|
@import 'patterns_chip';
|
|
11
|
-
@import 'patterns_badge';
|
|
12
12
|
@import 'patterns_code-snippet';
|
|
13
13
|
@import 'patterns_contextual-menu';
|
|
14
14
|
@import 'patterns_divider';
|
|
15
|
+
@import 'patterns_equal-height-row';
|
|
15
16
|
@import 'patterns_form-help-text';
|
|
16
|
-
@import 'patterns_form-validation';
|
|
17
|
-
@import 'patterns_form-tick-elements';
|
|
18
17
|
@import 'patterns_form-password-toggle';
|
|
18
|
+
@import 'patterns_form-tick-elements';
|
|
19
|
+
@import 'patterns_form-validation';
|
|
19
20
|
@import 'patterns_forms';
|
|
20
21
|
@import 'patterns_grid';
|
|
21
22
|
@import 'patterns_heading-icon';
|
|
@@ -39,22 +40,22 @@
|
|
|
39
40
|
@import 'patterns_search-and-filter';
|
|
40
41
|
@import 'patterns_search-box';
|
|
41
42
|
@import 'patterns_section';
|
|
43
|
+
@import 'patterns_segmented-control';
|
|
42
44
|
@import 'patterns_separator';
|
|
43
|
-
@import 'patterns_side-navigation';
|
|
44
45
|
@import 'patterns_side-navigation-expandable';
|
|
46
|
+
@import 'patterns_side-navigation';
|
|
45
47
|
@import 'patterns_slider';
|
|
46
48
|
@import 'patterns_status-label';
|
|
47
49
|
@import 'patterns_strip';
|
|
50
|
+
@import 'patterns_suru';
|
|
48
51
|
@import 'patterns_switch';
|
|
49
|
-
@import 'patterns_segmented-control';
|
|
50
|
-
@import 'patterns_table-icons';
|
|
51
52
|
@import 'patterns_table-expanding';
|
|
52
|
-
@import 'patterns_table-
|
|
53
|
+
@import 'patterns_table-icons';
|
|
53
54
|
@import 'patterns_table-mobile-card';
|
|
55
|
+
@import 'patterns_table-of-contents';
|
|
54
56
|
@import 'patterns_table-sortable';
|
|
55
57
|
@import 'patterns_tabs';
|
|
56
58
|
@import 'patterns_tooltips';
|
|
57
|
-
@import 'patterns_suru';
|
|
58
59
|
|
|
59
60
|
// Layouts
|
|
60
61
|
@import 'layouts_application';
|
|
@@ -96,22 +97,23 @@
|
|
|
96
97
|
// Patterns
|
|
97
98
|
@include vf-p-accordion;
|
|
98
99
|
@include vf-p-article-pagination;
|
|
100
|
+
@include vf-p-badge;
|
|
99
101
|
@include vf-p-breadcrumbs;
|
|
100
102
|
@include vf-p-buttons;
|
|
101
103
|
@include vf-p-card;
|
|
102
104
|
@include vf-p-chip;
|
|
103
|
-
@include vf-p-section;
|
|
104
|
-
@include vf-p-badge;
|
|
105
105
|
@include vf-p-code-snippet;
|
|
106
106
|
@include vf-p-contextual-menu;
|
|
107
107
|
@include vf-p-divider;
|
|
108
|
+
@include vf-p-equal-height-row;
|
|
108
109
|
@include vf-p-form-help-text;
|
|
109
|
-
@include vf-p-form-validation;
|
|
110
110
|
@include vf-p-form-tick-elements;
|
|
111
|
+
@include vf-p-form-validation;
|
|
111
112
|
@include vf-p-forms;
|
|
112
113
|
@include vf-p-grid;
|
|
113
114
|
@include vf-p-heading-icon;
|
|
114
115
|
@include vf-p-headings;
|
|
116
|
+
@include vf-p-section;
|
|
115
117
|
|
|
116
118
|
@include vf-p-form-password-toggle;
|
|
117
119
|
@include vf-p-icons;
|