vanilla-framework 3.0.0-alpha.2 → 3.0.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.
Files changed (53) hide show
  1. package/README.md +19 -21
  2. package/package.json +15 -15
  3. package/scss/_base_button.scss +4 -18
  4. package/scss/_base_details.scss +2 -2
  5. package/scss/_base_fontfaces.scss +183 -181
  6. package/scss/_base_forms.scss +3 -3
  7. package/scss/_base_grid-definitions.scss +8 -8
  8. package/scss/_base_hr.scss +4 -4
  9. package/scss/_base_placeholders.scss +12 -12
  10. package/scss/_base_tables.scss +2 -2
  11. package/scss/_base_typography-definitions.scss +50 -50
  12. package/scss/_base_typography.scss +2 -2
  13. package/scss/_layouts_application.scss +1 -1
  14. package/scss/_layouts_fluid-breakout.scss +14 -14
  15. package/scss/_patterns_article-pagination.scss +3 -2
  16. package/scss/_patterns_buttons.scss +1 -4
  17. package/scss/_patterns_chip.scss +265 -57
  18. package/scss/_patterns_divider.scss +2 -2
  19. package/scss/_patterns_form-password-toggle.scss +0 -6
  20. package/scss/_patterns_form-tick-elements.scss +1 -0
  21. package/scss/_patterns_forms.scss +3 -3
  22. package/scss/_patterns_grid.scss +9 -9
  23. package/scss/_patterns_heading-icon.scss +5 -5
  24. package/scss/_patterns_label.scss +6 -30
  25. package/scss/_patterns_list-tree.scss +0 -1
  26. package/scss/_patterns_lists.scss +2 -2
  27. package/scss/_patterns_logo-section.scss +4 -4
  28. package/scss/_patterns_matrix.scss +11 -13
  29. package/scss/_patterns_modal.scss +1 -1
  30. package/scss/_patterns_navigation.scss +9 -9
  31. package/scss/_patterns_pull-quotes.scss +1 -1
  32. package/scss/_patterns_search-and-filter.scss +8 -6
  33. package/scss/_patterns_search-box.scss +0 -1
  34. package/scss/_patterns_side-navigation.scss +3 -6
  35. package/scss/_patterns_strip.scss +1 -1
  36. package/scss/_patterns_switch.scss +11 -11
  37. package/scss/_patterns_table-expanding.scss +0 -4
  38. package/scss/_patterns_table-mobile-card.scss +4 -11
  39. package/scss/_patterns_table-of-contents.scss +1 -1
  40. package/scss/_settings_breakpoints.scss +2 -3
  41. package/scss/_settings_colors.scss +75 -2
  42. package/scss/_settings_grid.scss +2 -4
  43. package/scss/_settings_spacing.scss +45 -45
  44. package/scss/_settings_themes.scss +1 -0
  45. package/scss/_utilities_content-align.scss +2 -2
  46. package/scss/_utilities_equal-height.scss +1 -1
  47. package/scss/_utilities_floats.scss +4 -4
  48. package/scss/_utilities_hide.scss +7 -7
  49. package/scss/_utilities_image-position.scss +1 -1
  50. package/scss/_utilities_show.scss +2 -2
  51. package/scss/_utilities_vertical-spacing.scss +6 -12
  52. package/scss/_vanilla.scss +0 -2
  53. package/scss/_patterns_inline-images.scss +0 -37
@@ -6,13 +6,13 @@
6
6
  float: right !important;
7
7
 
8
8
  &--small {
9
- @media (max-width: $breakpoint-small) {
9
+ @media (max-width: $breakpoint-small - 1) {
10
10
  float: right !important;
11
11
  }
12
12
  }
13
13
 
14
14
  &--medium {
15
- @media (min-width: $breakpoint-medium) and (max-width: $breakpoint-large) {
15
+ @media (min-width: $breakpoint-small) and (max-width: $breakpoint-large - 1) {
16
16
  float: right !important;
17
17
  }
18
18
  }
@@ -28,13 +28,13 @@
28
28
  float: left !important;
29
29
 
30
30
  &--small {
31
- @media (max-width: $breakpoint-small) {
31
+ @media (max-width: $breakpoint-small - 1) {
32
32
  float: left !important;
33
33
  }
34
34
  }
35
35
 
36
36
  &--medium {
37
- @media (min-width: $breakpoint-medium) and (max-width: $breakpoint-large) {
37
+ @media (min-width: $breakpoint-small) and (max-width: $breakpoint-large - 1) {
38
38
  float: left !important;
39
39
  }
40
40
  }
@@ -21,13 +21,13 @@
21
21
  display: none !important;
22
22
 
23
23
  &--small {
24
- @media (max-width: $breakpoint-medium - 1) {
24
+ @media (max-width: $breakpoint-small - 1) {
25
25
  display: none !important;
26
26
  }
27
27
  }
28
28
 
29
29
  &--medium {
30
- @media (min-width: $breakpoint-medium) and (max-width: $breakpoint-large - 1) {
30
+ @media (min-width: $breakpoint-small) and (max-width: $breakpoint-large - 1) {
31
31
  display: none !important;
32
32
  }
33
33
  }
@@ -45,19 +45,19 @@
45
45
  @include vf-hide-table-column;
46
46
 
47
47
  &--small {
48
- @media (max-width: $breakpoint-medium - 1) {
48
+ @media (max-width: $breakpoint-small - 1) {
49
49
  @include vf-hide-table-column;
50
50
  }
51
51
  }
52
52
 
53
53
  &--medium {
54
- @media (min-width: $breakpoint-medium) and (max-width: $breakpoint-large - 1) {
54
+ @media (min-width: $breakpoint-small) and (max-width: $breakpoint-large - 1) {
55
55
  @include vf-hide-table-column;
56
56
  }
57
57
  }
58
58
 
59
59
  &--large {
60
- @media (min-width: $breakpoint-large) {
60
+ @media (min-width: $breakpoint-small) {
61
61
  @include vf-hide-table-column;
62
62
  }
63
63
  }
@@ -69,13 +69,13 @@
69
69
  display: none !important;
70
70
 
71
71
  &--small {
72
- @media (max-width: $breakpoint-medium - 1) {
72
+ @media (max-width: $breakpoint-small - 1) {
73
73
  display: none !important;
74
74
  }
75
75
  }
76
76
 
77
77
  &--medium {
78
- @media (min-width: $breakpoint-medium) and (max-width: $breakpoint-large - 1) {
78
+ @media (min-width: $breakpoint-small) and (max-width: $breakpoint-large - 1) {
79
79
  display: none !important;
80
80
  }
81
81
  }
@@ -1,7 +1,7 @@
1
1
  // Create utility class for positioning images at top or bottom of the section
2
2
  @mixin vf-u-image-position {
3
3
  .u-image-position {
4
- @media (min-width: $breakpoint-medium) {
4
+ @media (min-width: $threshold-6-12-col) {
5
5
  overflow: hidden;
6
6
  position: relative;
7
7
 
@@ -6,14 +6,14 @@
6
6
  display: initial !important;
7
7
 
8
8
  &--small {
9
- @media (max-width: $breakpoint-medium) {
9
+ @media (max-width: $breakpoint-small - 1) {
10
10
  display: inherit !important;
11
11
  display: initial !important;
12
12
  }
13
13
  }
14
14
 
15
15
  &--medium {
16
- @media (min-width: $breakpoint-medium) and (max-width: $breakpoint-large) {
16
+ @media (min-width: $breakpoint-small) and (max-width: $breakpoint-large - 1) {
17
17
  display: inherit !important;
18
18
  display: initial !important;
19
19
  }
@@ -1,7 +1,4 @@
1
1
  @mixin vf-u-vertical-spacing($start: -3, $end: 3) {
2
- // adds baseline units between the element it is applied to and relatively positioned elements after it.
3
- // useful when you want to vertically align elements after an h3 in one column and elements after a search field in another.
4
- // See example in maas-layout.html
5
2
  %u-vertical-spacer {
6
3
  content: '';
7
4
  display: block;
@@ -9,17 +6,14 @@
9
6
  position: relative;
10
7
  }
11
8
 
12
- $slug: u-sv !default;
13
-
14
9
  @for $i from $start through $end {
15
- .u-sv#{$i} {
16
- &::after {
17
- @extend %u-vertical-spacer;
18
- // Due to margin collapse, if elements beneath this have a margin top, the margin of this and the next item will be summed up.
19
- // For predictable results, use single margin direction (https://csswizardry.com/2012/06/single-direction-margin-declarations/)
20
- // From vanilla 1.7 forward, margin direction is bottom.
10
+ @if $i != 0 {
11
+ .u-sv#{$i} {
12
+ &::after {
13
+ @extend %u-vertical-spacer;
21
14
 
22
- margin-top: calc(#{$sp-unit * $i} - 1px); // subtracting the element height, which is set to 1px above.
15
+ margin-top: calc(#{$sp-unit * $i} - 1px); // subtracting the element height, which is set to 1px above.
16
+ }
23
17
  }
24
18
  }
25
19
  }
@@ -21,7 +21,6 @@
21
21
  @import 'patterns_headings';
22
22
  @import 'patterns_icons';
23
23
  @import 'patterns_image';
24
- @import 'patterns_inline-images';
25
24
  @import 'patterns_label';
26
25
  @import 'patterns_links';
27
26
  @import 'patterns_list-tree';
@@ -103,7 +102,6 @@
103
102
  @include vf-p-form-password-toggle;
104
103
  @include vf-p-icons;
105
104
  @include vf-p-image;
106
- @include vf-p-inline-images;
107
105
  @include vf-p-label;
108
106
  @include vf-p-links;
109
107
  @include vf-p-list-tree;
@@ -1,37 +0,0 @@
1
- @import 'settings';
2
-
3
- // Image grid to showcase group of images
4
- @mixin vf-p-inline-images {
5
- .p-inline-images {
6
- @extend %vf-clearfix;
7
-
8
- display: block;
9
- list-style: none; // if list is used as wrapper
10
- margin-left: 0;
11
- padding-left: 0;
12
- text-align: center;
13
- }
14
-
15
- .p-inline-images__item {
16
- display: inline-block;
17
- margin: 1rem;
18
- overflow: hidden;
19
- text-align: center;
20
- vertical-align: middle;
21
-
22
- @media (min-width: $breakpoint-medium) {
23
- margin: 1.875rem;
24
- }
25
- }
26
-
27
- .p-inline-images__logo {
28
- max-height: map-get($icon-sizes, thumb);
29
- max-width: 7rem;
30
- width: auto;
31
-
32
- @media (min-width: $breakpoint-medium) {
33
- max-height: 5.5rem;
34
- max-width: 9rem;
35
- }
36
- }
37
- }