vanilla-framework 3.0.0-alpha.2 → 3.0.0-beta.1
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 +3 -3
- package/scss/_base_button.scss +3 -17
- package/scss/_base_forms.scss +1 -1
- package/scss/_base_grid-definitions.scss +2 -2
- package/scss/_layouts_application.scss +1 -1
- package/scss/_layouts_fluid-breakout.scss +2 -2
- package/scss/_patterns_article-pagination.scss +3 -2
- package/scss/_patterns_buttons.scss +1 -4
- package/scss/_patterns_chip.scss +0 -4
- package/scss/_patterns_divider.scss +1 -1
- package/scss/_patterns_form-password-toggle.scss +0 -6
- package/scss/_patterns_form-tick-elements.scss +1 -0
- package/scss/_patterns_forms.scss +3 -3
- package/scss/_patterns_grid.scss +5 -5
- package/scss/_patterns_heading-icon.scss +3 -3
- package/scss/_patterns_list-tree.scss +0 -1
- package/scss/_patterns_lists.scss +2 -2
- package/scss/_patterns_matrix.scss +7 -9
- package/scss/_patterns_modal.scss +1 -1
- package/scss/_patterns_pull-quotes.scss +1 -1
- package/scss/_patterns_search-box.scss +0 -1
- package/scss/_patterns_side-navigation.scss +1 -4
- package/scss/_patterns_strip.scss +1 -1
- package/scss/_patterns_table-mobile-card.scss +1 -8
- package/scss/_patterns_table-of-contents.scss +1 -1
- package/scss/_settings_breakpoints.scss +2 -3
- package/scss/_utilities_equal-height.scss +1 -1
- package/scss/_utilities_floats.scss +4 -4
- package/scss/_utilities_hide.scss +7 -7
- package/scss/_utilities_image-position.scss +1 -1
- package/scss/_utilities_show.scss +2 -2
- package/scss/_utilities_vertical-spacing.scss +6 -12
- package/scss/_vanilla.scss +0 -2
- package/scss/_patterns_inline-images.scss +0 -37
package/package.json
CHANGED
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"percy": "percy exec -- node snapshots.js",
|
|
44
44
|
"icon-svgs-to-mixins": "node scripts/convert-svgs-to-icon-mixins.js icons"
|
|
45
45
|
},
|
|
46
|
-
"version": "3.0.0-
|
|
46
|
+
"version": "3.0.0-beta.1",
|
|
47
47
|
"files": [
|
|
48
48
|
"_index.scss",
|
|
49
49
|
"/scss",
|
|
@@ -53,8 +53,8 @@
|
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"@canonical/cookie-policy": "3.3.0",
|
|
55
55
|
"@canonical/latest-news": "1.2.0",
|
|
56
|
-
"autoprefixer": "10.
|
|
57
|
-
"postcss": "8.3.
|
|
56
|
+
"autoprefixer": "10.4.0",
|
|
57
|
+
"postcss": "8.3.11",
|
|
58
58
|
"postcss-cli": "8.3.1",
|
|
59
59
|
"sass": "1.37.5"
|
|
60
60
|
},
|
package/scss/_base_button.scss
CHANGED
|
@@ -26,11 +26,10 @@
|
|
|
26
26
|
font-weight: $font-weight-regular-text;
|
|
27
27
|
justify-content: center;
|
|
28
28
|
line-height: map-get($line-heights, default-text);
|
|
29
|
-
margin: 0
|
|
29
|
+
margin: 0 $sph--large $input-margin-bottom 0;
|
|
30
30
|
padding: $input-vertical-padding $sph--large;
|
|
31
31
|
text-align: center;
|
|
32
32
|
text-decoration: none;
|
|
33
|
-
width: 100%;
|
|
34
33
|
|
|
35
34
|
&:active,
|
|
36
35
|
&:focus,
|
|
@@ -44,13 +43,8 @@
|
|
|
44
43
|
opacity: $disabled-element-opacity;
|
|
45
44
|
}
|
|
46
45
|
|
|
47
|
-
|
|
48
|
-
margin-right:
|
|
49
|
-
width: auto;
|
|
50
|
-
|
|
51
|
-
&:last-child {
|
|
52
|
-
margin-right: 0;
|
|
53
|
-
}
|
|
46
|
+
&:last-child {
|
|
47
|
+
margin-right: 0;
|
|
54
48
|
}
|
|
55
49
|
|
|
56
50
|
&.is-dense {
|
|
@@ -81,12 +75,6 @@
|
|
|
81
75
|
p + p > & {
|
|
82
76
|
margin-top: $spv-nudge-compensation;
|
|
83
77
|
}
|
|
84
|
-
|
|
85
|
-
@media (max-width: $breakpoint-x-small - 1) {
|
|
86
|
-
p & + & {
|
|
87
|
-
margin-top: $sp-unit + $spv-nudge-compensation;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
78
|
// stylelint-enable selector-max-type
|
|
91
79
|
}
|
|
92
80
|
|
|
@@ -97,8 +85,6 @@
|
|
|
97
85
|
}
|
|
98
86
|
|
|
99
87
|
%vf-button-has-icon {
|
|
100
|
-
width: auto;
|
|
101
|
-
|
|
102
88
|
& [class*='p-icon'] {
|
|
103
89
|
margin-left: $sph--small;
|
|
104
90
|
margin-right: $sph--small;
|
package/scss/_base_forms.scss
CHANGED
|
@@ -12,13 +12,13 @@
|
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
%span-full-grid-on-mobile {
|
|
15
|
-
@media (max-width: $threshold-4-6-col) {
|
|
15
|
+
@media (max-width: $threshold-4-6-col - 1) {
|
|
16
16
|
grid-column: auto / span $grid-columns-small;
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
%span-full-grid-on-tablet {
|
|
21
|
-
@media (min-width: $threshold-4-6-col) and (max-width: $threshold-6-12-col) {
|
|
21
|
+
@media (min-width: $threshold-4-6-col) and (max-width: $threshold-6-12-col - 1) {
|
|
22
22
|
grid-column: auto / span $grid-columns-medium;
|
|
23
23
|
}
|
|
24
24
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// default max width of the pinned aside panel in the application layout
|
|
4
4
|
$application-layout--aside-panel-max-width: 50vw !default;
|
|
5
5
|
// screen width breakpoint (min-width) at which side navigation is in collapsed mode
|
|
6
|
-
$application-layout--breakpoint-side-nav-collapsed: $breakpoint-
|
|
6
|
+
$application-layout--breakpoint-side-nav-collapsed: $breakpoint-small !default;
|
|
7
7
|
// screen width breakpoint (min-width) at which side navigation is in expanded mode
|
|
8
8
|
$application-layout--breakpoint-side-nav-expanded: $breakpoint-large !default;
|
|
9
9
|
// width of the collapsed side navigation
|
|
@@ -149,7 +149,7 @@
|
|
|
149
149
|
grid-column: 2 / -1;
|
|
150
150
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
151
151
|
|
|
152
|
-
@media (max-width: $threshold-4-6-col) {
|
|
152
|
+
@media (max-width: $threshold-4-6-col - 1) {
|
|
153
153
|
grid-template-columns: repeat(1, minmax(0, 1fr));
|
|
154
154
|
width: $l-fluid-breakout-main-child-width;
|
|
155
155
|
}
|
|
@@ -163,7 +163,7 @@
|
|
|
163
163
|
&:nth-child(2) {
|
|
164
164
|
justify-content: flex-end;
|
|
165
165
|
|
|
166
|
-
@media (max-width: $threshold-4-6-col) {
|
|
166
|
+
@media (max-width: $threshold-4-6-col - 1) {
|
|
167
167
|
justify-content: flex-start;
|
|
168
168
|
}
|
|
169
169
|
}
|
|
@@ -55,7 +55,8 @@
|
|
|
55
55
|
padding-left: $sp-xx-large;
|
|
56
56
|
text-align: left;
|
|
57
57
|
|
|
58
|
-
@media (max-width: $breakpoint-x-small) {
|
|
58
|
+
@media (max-width: $breakpoint-x-small - 1) {
|
|
59
|
+
margin-right: 0;
|
|
59
60
|
width: auto;
|
|
60
61
|
|
|
61
62
|
&:only-child {
|
|
@@ -83,7 +84,7 @@
|
|
|
83
84
|
padding-right: $sp-xx-large;
|
|
84
85
|
text-align: right;
|
|
85
86
|
|
|
86
|
-
@media (max-width: $breakpoint-x-small) {
|
|
87
|
+
@media (max-width: $breakpoint-x-small - 1) {
|
|
87
88
|
width: 100%;
|
|
88
89
|
}
|
|
89
90
|
|
|
@@ -290,10 +290,7 @@ $hover-background-opacity-percentage: $hover-background-opacity-amount * 100%;
|
|
|
290
290
|
|
|
291
291
|
@mixin vf-button-inline {
|
|
292
292
|
[class*='p-button'].is-inline {
|
|
293
|
-
|
|
294
|
-
margin-left: $sph--large;
|
|
295
|
-
width: auto;
|
|
296
|
-
}
|
|
293
|
+
margin-left: $sph--large;
|
|
297
294
|
}
|
|
298
295
|
}
|
|
299
296
|
|
package/scss/_patterns_chip.scss
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
width: 100%;
|
|
18
18
|
|
|
19
19
|
.p-form__group {
|
|
20
|
-
@media (min-width: $
|
|
20
|
+
@media (min-width: $threshold-6-12-col) {
|
|
21
21
|
align-items: baseline;
|
|
22
22
|
|
|
23
23
|
+ .p-form__group {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
|
|
31
31
|
@mixin vf-p-forms-inline {
|
|
32
32
|
.p-form--inline {
|
|
33
|
-
@media (min-width: $
|
|
33
|
+
@media (min-width: $threshold-6-12-col) {
|
|
34
34
|
align-items: baseline;
|
|
35
35
|
display: inline-flex;
|
|
36
36
|
flex-direction: row;
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
.p-form__group {
|
|
45
|
-
@media (min-width: $
|
|
45
|
+
@media (min-width: $threshold-6-12-col) {
|
|
46
46
|
display: flex;
|
|
47
47
|
flex-shrink: 1;
|
|
48
48
|
width: auto;
|
package/scss/_patterns_grid.scss
CHANGED
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
// mobile grid
|
|
30
|
-
@media (max-width: $threshold-4-6-col) {
|
|
30
|
+
@media (max-width: $threshold-4-6-col - 1) {
|
|
31
31
|
@for $i from $grid-columns-small through 1 {
|
|
32
32
|
.#{$grid-small-col-prefix}#{$i} {
|
|
33
33
|
@include vf-grid-column($i);
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
// tablet grid
|
|
41
|
-
@media (min-width: $threshold-4-6-col) and (max-width: $threshold-6-12-col) {
|
|
41
|
+
@media (min-width: $threshold-4-6-col) and (max-width: $threshold-6-12-col - 1) {
|
|
42
42
|
@for $i from $grid-columns-medium through 1 {
|
|
43
43
|
.#{$grid-medium-col-prefix}#{$i} {
|
|
44
44
|
@include vf-grid-column($i);
|
|
@@ -94,11 +94,11 @@
|
|
|
94
94
|
@each $label, $breakpoint-min, $breakpoint-max, $col-count in $offsets {
|
|
95
95
|
$query: null;
|
|
96
96
|
@if $breakpoint-min == 0 {
|
|
97
|
-
$query: '(max-width: #{$breakpoint-max})';
|
|
97
|
+
$query: '(max-width: #{$breakpoint-max - 1})';
|
|
98
98
|
} @else if $breakpoint-max == -1 {
|
|
99
99
|
$query: '(min-width: #{$breakpoint-min})';
|
|
100
100
|
} @else {
|
|
101
|
-
$query: '(min-width: #{$breakpoint-min}) and (max-width: #{$breakpoint-max})';
|
|
101
|
+
$query: '(min-width: #{$breakpoint-min}) and (max-width: #{$breakpoint-max - 1})';
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
@media #{$query} {
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
position: absolute;
|
|
128
128
|
right: map-get($grid-margin-widths, small);
|
|
129
129
|
|
|
130
|
-
@media (min-width: $threshold-4-6-col) and (max-width: $threshold-6-12-col) {
|
|
130
|
+
@media (min-width: $threshold-4-6-col) and (max-width: $threshold-6-12-col - 1) {
|
|
131
131
|
left: map-get($grid-margin-widths, medium);
|
|
132
132
|
right: map-get($grid-margin-widths, medium);
|
|
133
133
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
.p-heading-icon {
|
|
5
5
|
margin-bottom: $spv--x-large;
|
|
6
6
|
|
|
7
|
-
@media (min-width: $breakpoint-
|
|
7
|
+
@media (min-width: $breakpoint-heading-threshold) {
|
|
8
8
|
margin-bottom: 0;
|
|
9
9
|
}
|
|
10
10
|
}
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
margin-top: map-get($nudges, nudge--h3-mobile);
|
|
26
26
|
width: map-get($icon-sizes, heading-icon--small);
|
|
27
27
|
|
|
28
|
-
@media (min-width: $breakpoint-
|
|
28
|
+
@media (min-width: $breakpoint-heading-threshold) {
|
|
29
29
|
height: map-get($icon-sizes, heading-icon);
|
|
30
30
|
margin-top: map-get($nudges, nudge--h3);
|
|
31
31
|
width: map-get($icon-sizes, heading-icon);
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
margin-top: $sp-x-small;
|
|
39
39
|
width: map-get($icon-sizes, heading-icon--x-small);
|
|
40
40
|
|
|
41
|
-
@media (min-width: $breakpoint-
|
|
41
|
+
@media (min-width: $breakpoint-heading-threshold) {
|
|
42
42
|
height: map-get($icon-sizes, heading-icon--small);
|
|
43
43
|
margin-top: 0;
|
|
44
44
|
width: map-get($icon-sizes, heading-icon--small);
|
|
@@ -347,7 +347,7 @@ $list-status-icon-nudge: 0.3rem; // 0.3rem seems to be a magic number that posit
|
|
|
347
347
|
@extend %vf-row;
|
|
348
348
|
@include vf-b-row-reset;
|
|
349
349
|
|
|
350
|
-
@media (min-width: $
|
|
350
|
+
@media (min-width: $threshold-6-12-col) {
|
|
351
351
|
padding-top: $sp-unit;
|
|
352
352
|
position: relative;
|
|
353
353
|
|
|
@@ -368,7 +368,7 @@ $list-status-icon-nudge: 0.3rem; // 0.3rem seems to be a magic number that posit
|
|
|
368
368
|
// Adaptor class `is-split` to split the items of a list into two columns
|
|
369
369
|
@mixin vf-p-list-split {
|
|
370
370
|
[class*='p-list'].is-split {
|
|
371
|
-
@media (min-width: $
|
|
371
|
+
@media (min-width: $threshold-4-6-col) {
|
|
372
372
|
@supports ((-webkit-columns: 1) or (columns: 1)) {
|
|
373
373
|
column-gap: $sp-x-large;
|
|
374
374
|
columns: 2;
|
|
@@ -25,24 +25,22 @@
|
|
|
25
25
|
border-top: none;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
@media (min-width: $
|
|
28
|
+
@media (min-width: $threshold-4-6-col) {
|
|
29
29
|
display: flex;
|
|
30
30
|
flex-wrap: wrap;
|
|
31
31
|
width: 33.333%;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
@media (min-width: $
|
|
34
|
+
@media (min-width: $threshold-4-6-col) and (max-width: $threshold-6-12-col - 1) {
|
|
35
|
+
flex-direction: column;
|
|
36
|
+
|
|
35
37
|
&:nth-child(2),
|
|
36
38
|
&:nth-child(3) {
|
|
37
39
|
border-top: none;
|
|
38
40
|
}
|
|
39
41
|
}
|
|
40
42
|
|
|
41
|
-
@media (min-width: $
|
|
42
|
-
flex-direction: column;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
@media (min-width: $breakpoint-medium) {
|
|
43
|
+
@media (min-width: $threshold-6-12-col) {
|
|
46
44
|
border-right: 1px solid $color-mid-light;
|
|
47
45
|
padding-left: $spv--large;
|
|
48
46
|
padding-right: $spv--large;
|
|
@@ -67,7 +65,7 @@
|
|
|
67
65
|
}
|
|
68
66
|
}
|
|
69
67
|
|
|
70
|
-
@media (min-width: $
|
|
68
|
+
@media (min-width: $threshold-6-12-col) {
|
|
71
69
|
// 3 items per row
|
|
72
70
|
border-right: 1px solid $color-mid-light;
|
|
73
71
|
width: 33.333%;
|
|
@@ -141,7 +139,7 @@
|
|
|
141
139
|
.p-matrix__desc {
|
|
142
140
|
margin-bottom: $spv-nudge-compensation;
|
|
143
141
|
|
|
144
|
-
@media (max-width: $breakpoint-heading-threshold) {
|
|
142
|
+
@media (max-width: $breakpoint-heading-threshold - 1) {
|
|
145
143
|
margin-top: -#{$sp-unit};
|
|
146
144
|
}
|
|
147
145
|
|
|
@@ -90,9 +90,6 @@
|
|
|
90
90
|
.p-side-navigation__toggle--in-drawer {
|
|
91
91
|
@extend %vf-button-base;
|
|
92
92
|
|
|
93
|
-
// override base button styles that extend button to full width on mobile
|
|
94
|
-
width: auto;
|
|
95
|
-
|
|
96
93
|
&::before {
|
|
97
94
|
@extend %icon;
|
|
98
95
|
|
|
@@ -116,7 +113,7 @@
|
|
|
116
113
|
}
|
|
117
114
|
}
|
|
118
115
|
|
|
119
|
-
@media (min-width: $
|
|
116
|
+
@media (min-width: $threshold-6-12-col) {
|
|
120
117
|
// make whole navigation sticky on large screens
|
|
121
118
|
.p-side-navigation.is-sticky,
|
|
122
119
|
[class*='p-side-navigation--'].is-sticky {
|
|
@@ -134,7 +134,7 @@ $color-suru-slant-left-fallback: rgba(205, 205, 205, 0.14) !default;
|
|
|
134
134
|
margin-bottom: -$padding;
|
|
135
135
|
padding-bottom: ($padding * 3) !important;
|
|
136
136
|
|
|
137
|
-
@media (min-width: $
|
|
137
|
+
@media (min-width: $threshold-6-12-col) {
|
|
138
138
|
$padding: 6rem;
|
|
139
139
|
|
|
140
140
|
background-position: 0% 0%, top right, right 0 bottom $padding, right bottom, 0% 0%;
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
text-align: left;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
@media (max-width: $
|
|
13
|
+
@media (max-width: $threshold-6-12-col - 1) {
|
|
14
14
|
@supports (display: grid) {
|
|
15
15
|
thead {
|
|
16
16
|
display: none;
|
|
@@ -82,12 +82,5 @@
|
|
|
82
82
|
|
|
83
83
|
// stylelint-enable selector-max-type
|
|
84
84
|
}
|
|
85
|
-
|
|
86
|
-
@media (max-width: $breakpoint-small) {
|
|
87
|
-
// stylelint-disable-next-line selector-max-type
|
|
88
|
-
tr {
|
|
89
|
-
width: 100%;
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
85
|
}
|
|
93
86
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
// Global breakpoints
|
|
2
2
|
$breakpoint-x-small: 460px !default;
|
|
3
3
|
$breakpoint-small: 620px !default;
|
|
4
|
-
$breakpoint-medium: 772px !default;
|
|
5
4
|
$breakpoint-large: 1036px !default;
|
|
6
|
-
$breakpoint-navigation-threshold: $breakpoint-
|
|
7
|
-
$breakpoint-heading-threshold: $breakpoint-
|
|
5
|
+
$breakpoint-navigation-threshold: $breakpoint-small !default;
|
|
6
|
+
$breakpoint-heading-threshold: $breakpoint-large !default;
|
|
8
7
|
$breakpoint-x-large: 1681px !default; // exclude most laptops
|
|
@@ -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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
78
|
+
@media (min-width: $breakpoint-small) and (max-width: $breakpoint-large - 1) {
|
|
79
79
|
display: none !important;
|
|
80
80
|
}
|
|
81
81
|
}
|
|
@@ -6,14 +6,14 @@
|
|
|
6
6
|
display: initial !important;
|
|
7
7
|
|
|
8
8
|
&--small {
|
|
9
|
-
@media (max-width: $breakpoint-
|
|
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-
|
|
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
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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
|
-
|
|
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
|
}
|
package/scss/_vanilla.scss
CHANGED
|
@@ -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
|
-
}
|