vanilla-framework 3.0.0-beta.2 → 3.1.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/README.md +19 -21
- package/package.json +16 -16
- package/scss/_base_fontfaces.scss +183 -181
- package/scss/_base_forms-range.scss +14 -17
- package/scss/_base_grid-definitions.scss +6 -6
- package/scss/_base_hr.scss +4 -4
- package/scss/_layouts_fluid-breakout.scss +12 -12
- package/scss/_patterns_chip.scss +226 -60
- package/scss/_patterns_divider.scss +1 -1
- package/scss/_patterns_grid.scss +4 -4
- package/scss/_patterns_label.scss +5 -29
- package/scss/_patterns_lists.scss +19 -0
- package/scss/_patterns_logo-section.scss +4 -4
- package/scss/_patterns_navigation.scss +7 -7
- package/scss/_patterns_notifications.scss +2 -0
- package/scss/_patterns_pagination.scss +2 -1
- package/scss/_patterns_search-and-filter.scss +8 -4
- package/scss/_patterns_side-navigation.scss +4 -2
- package/scss/_patterns_switch.scss +11 -4
- package/scss/_patterns_table-expanding.scss +0 -4
- package/scss/_patterns_table-mobile-card.scss +4 -7
- package/scss/_settings_colors.scss +64 -9
- package/scss/_settings_grid.scss +2 -4
- package/scss/_settings_spacing.scss +1 -1
- package/scss/_settings_themes.scss +1 -0
package/README.md
CHANGED
|
@@ -30,45 +30,43 @@ You can link to the latest build to add directly into your markup like so, by re
|
|
|
30
30
|
<link rel="stylesheet" href="https://assets.ubuntu.com/v1/vanilla-framework-version-x.x.x.min.css" />
|
|
31
31
|
```
|
|
32
32
|
|
|
33
|
-
### Including Vanilla in your project via NPM
|
|
33
|
+
### Including Vanilla in your project via NPM or yarn
|
|
34
34
|
|
|
35
|
-
|
|
36
|
-
and save it into your project's dependencies (`package.json`) as follows:
|
|
35
|
+
To get set up with Sass, add the `sass` and `vanilla-framework` packages to your project dependencies:
|
|
37
36
|
|
|
38
37
|
```bash
|
|
39
|
-
|
|
38
|
+
yarn add sass vanilla-framework
|
|
40
39
|
```
|
|
41
40
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
```javascript
|
|
45
|
-
// gulpfile.js
|
|
46
|
-
gulp.task('sass', function () {
|
|
47
|
-
return gulp.src('[your-sass-directory]/**/*.scss').pipe(
|
|
48
|
-
sass({
|
|
49
|
-
includePaths: ['node_modules'],
|
|
50
|
-
})
|
|
51
|
-
);
|
|
52
|
-
});
|
|
53
|
-
```
|
|
41
|
+
In the script that builds the CSS in your `package.json`, you should include the path to `node_modules` when looking for `@imports`. In this example, we have called the build script `"build-css"`:
|
|
54
42
|
|
|
55
|
-
|
|
43
|
+
```
|
|
44
|
+
"build-css": "sass -w --load-path=node_modules src:dist --style=compressed"
|
|
45
|
+
```
|
|
56
46
|
|
|
57
|
-
|
|
47
|
+
Make a folder `src/`, create a file inside called `style.scss` and import Vanilla:
|
|
58
48
|
|
|
59
49
|
```sass
|
|
60
|
-
// Optionally override some settings
|
|
61
|
-
$color-brand: #ffffff;
|
|
62
|
-
|
|
63
50
|
// Import the theme
|
|
64
51
|
@import 'vanilla-framework';
|
|
65
52
|
@include vanilla;
|
|
66
53
|
|
|
54
|
+
// Optionally override some settings
|
|
55
|
+
$color-brand: #ffffff;
|
|
56
|
+
|
|
67
57
|
// Add theme if applicable
|
|
68
58
|
```
|
|
69
59
|
|
|
70
60
|
If you don't want the whole framework, you can just `@include` specific [parts](scss) - e.g. `@include vf-b-forms`.
|
|
71
61
|
|
|
62
|
+
Now run `yarn build-css`, which will convert any Sass files in the `src/` folder to CSS in the `dist/` folder.
|
|
63
|
+
|
|
64
|
+
To watch for changes in your Sass files, add the following script to your `package.json`
|
|
65
|
+
|
|
66
|
+
```
|
|
67
|
+
"watch-css": "yarn build-css && sass --load-path=node_modules -w src:dist --style=compressed"
|
|
68
|
+
```
|
|
69
|
+
|
|
72
70
|
## Developing Vanilla
|
|
73
71
|
|
|
74
72
|
If you're looking to contribute to the Vanilla project itself, [start here](/CONTRIBUTING.md).
|
package/package.json
CHANGED
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
"start": "yarn build && yarn serve",
|
|
30
30
|
"build": "yarn build-scss && yarn build-js",
|
|
31
31
|
"build-scss": "yarn run build-js && sass --load-path=node_modules --embed-sources --style=compressed scss:build/css && postcss --use autoprefixer --replace 'build/css/**/*.css' --map",
|
|
32
|
+
"build:essential": "yarn run build-js && sass --load-path=node_modules --embed-sources --style=compressed scss/build.scss:build/css/build.css scss/docs:build/css/docs && postcss --use autoprefixer --replace 'build/css/**/*.css' --map",
|
|
32
33
|
"build-js": "mkdir -p build/js/modules && cp node_modules/@canonical/cookie-policy/build/js/cookie-policy.js build/js/modules && cp node_modules/@canonical/latest-news/dist/latest-news.js build/js/modules",
|
|
33
34
|
"serve": "./entrypoint 0.0.0.0:${PORT}",
|
|
34
35
|
"test-scss": "node -e 'require(\"./tests/parker\").parkerTest()'",
|
|
@@ -37,13 +38,13 @@
|
|
|
37
38
|
"lint-prettier": "prettier -c .",
|
|
38
39
|
"lint-scss": "stylelint 'scss/**/*.scss'",
|
|
39
40
|
"watch:scss": "sass --load-path=node_modules --embed-sources --style=compressed scss:build/css --watch",
|
|
40
|
-
"watch:
|
|
41
|
+
"watch:essential": "sass --load-path=node_modules --embed-sources --style=compressed scss/build.scss:build/css/build.css --watch",
|
|
41
42
|
"watch": "yarn build && yarn watch:scss",
|
|
42
43
|
"clean": "rm -rf build docs/static/css node_modules/ yarn-error.log",
|
|
43
44
|
"percy": "percy exec -- node snapshots.js",
|
|
44
45
|
"icon-svgs-to-mixins": "node scripts/convert-svgs-to-icon-mixins.js icons"
|
|
45
46
|
},
|
|
46
|
-
"version": "3.
|
|
47
|
+
"version": "3.1.0",
|
|
47
48
|
"files": [
|
|
48
49
|
"_index.scss",
|
|
49
50
|
"/scss",
|
|
@@ -51,25 +52,24 @@
|
|
|
51
52
|
"!/scss/standalone"
|
|
52
53
|
],
|
|
53
54
|
"dependencies": {
|
|
54
|
-
"@canonical/cookie-policy": "3.
|
|
55
|
-
"@canonical/latest-news": "1.
|
|
56
|
-
"autoprefixer": "10.4.
|
|
57
|
-
"postcss": "8.
|
|
58
|
-
"postcss-cli": "
|
|
59
|
-
"sass": "1.
|
|
55
|
+
"@canonical/cookie-policy": "3.4.0",
|
|
56
|
+
"@canonical/latest-news": "1.3.0",
|
|
57
|
+
"autoprefixer": "10.4.2",
|
|
58
|
+
"postcss": "8.4.6",
|
|
59
|
+
"postcss-cli": "9.1.0",
|
|
60
|
+
"sass": "1.49.7"
|
|
60
61
|
},
|
|
61
62
|
"devDependencies": {
|
|
62
63
|
"@percy/script": "1.1.0",
|
|
63
64
|
"get-site-urls": "1.1.7",
|
|
64
65
|
"markdown-spellcheck": "1.3.1",
|
|
65
66
|
"parker": "0.0.10",
|
|
66
|
-
"prettier": "2.
|
|
67
|
-
"stylelint": "
|
|
68
|
-
"stylelint-config-prettier": "
|
|
69
|
-
"stylelint-config-
|
|
70
|
-
"stylelint-order": "
|
|
71
|
-
"stylelint-prettier": "
|
|
72
|
-
"
|
|
73
|
-
"svgo": "2.7.0"
|
|
67
|
+
"prettier": "2.5.1",
|
|
68
|
+
"stylelint": "14.3.0",
|
|
69
|
+
"stylelint-config-prettier": "9.0.3",
|
|
70
|
+
"stylelint-config-recommended-scss": "5.0.2",
|
|
71
|
+
"stylelint-order": "5.0.0",
|
|
72
|
+
"stylelint-prettier": "2.0.0",
|
|
73
|
+
"svgo": "2.8.0"
|
|
74
74
|
}
|
|
75
75
|
}
|
|
@@ -1,185 +1,187 @@
|
|
|
1
1
|
@mixin vf-b-typography-fontfaces {
|
|
2
|
-
@
|
|
3
|
-
@if $font-
|
|
4
|
-
@font-
|
|
5
|
-
font-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
font-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
font-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
font-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
font-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
font-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
font-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
@
|
|
68
|
-
font-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
font-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
font-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
font-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
font-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
font-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
font-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
font-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
font-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
font-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
font-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
font-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
font-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
2
|
+
@at-root {
|
|
3
|
+
@if str-index($font-base-family, 'Ubuntu') {
|
|
4
|
+
@if $font-use-subset-latin {
|
|
5
|
+
@font-face {
|
|
6
|
+
font-display: $font-display-option;
|
|
7
|
+
font-family: 'Ubuntu';
|
|
8
|
+
font-style: normal;
|
|
9
|
+
font-weight: $font-weight-regular-text;
|
|
10
|
+
src: url('#{$assets-path}46ed6870-Ubuntu-L-subset.woff2') format('woff2'), url('#{$assets-path}4070835e-Ubuntu-L-subset.woff') format('woff');
|
|
11
|
+
unicode-range: U+0-FF, U+131, U+152, U+153, U+2BB, U+2BC, U+2C6, U+2DA, U+2DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@font-face {
|
|
15
|
+
font-display: $font-display-option;
|
|
16
|
+
font-family: 'Ubuntu';
|
|
17
|
+
font-style: normal;
|
|
18
|
+
font-weight: $font-weight-bold;
|
|
19
|
+
src: url('#{$assets-path}0c7b8dc0-Ubuntu-R-subset.woff2') format('woff2'), url('#{$assets-path}ef4d35ed-Ubuntu-R-subset.woff') format('woff');
|
|
20
|
+
unicode-range: U+0-FF, U+131, U+152, U+153, U+2BB, U+2BC, U+2C6, U+2DA, U+2DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@font-face {
|
|
24
|
+
font-display: $font-display-option;
|
|
25
|
+
font-family: 'Ubuntu';
|
|
26
|
+
font-style: italic;
|
|
27
|
+
font-weight: $font-weight-regular-text;
|
|
28
|
+
src: url('#{$assets-path}6113b69a-Ubuntu-LI-subset.woff2') format('woff2'), url('#{$assets-path}56a10e22-Ubuntu-LI-subset.woff') format('woff');
|
|
29
|
+
unicode-range: U+0-FF, U+131, U+152, U+153, U+2BB, U+2BC, U+2C6, U+2DA, U+2DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
@font-face {
|
|
33
|
+
font-display: $font-display-option;
|
|
34
|
+
font-family: 'Ubuntu';
|
|
35
|
+
font-style: italic;
|
|
36
|
+
font-weight: $font-weight-bold;
|
|
37
|
+
src: url('#{$assets-path}fd4ec0c7-Ubuntu-RI-subset.woff2') format('woff2'), url('#{$assets-path}89be6515-Ubuntu-RI-subset.woff') format('woff');
|
|
38
|
+
unicode-range: U+0-FF, U+131, U+152, U+153, U+2BB, U+2BC, U+2C6, U+2DA, U+2DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@font-face {
|
|
42
|
+
font-display: $font-display-option;
|
|
43
|
+
font-family: 'Ubuntu';
|
|
44
|
+
font-style: normal;
|
|
45
|
+
font-weight: $font-weight-display-heading;
|
|
46
|
+
src: url('#{$assets-path}3baab91b-Ubuntu-Th-subset.woff2') format('woff2'), url('#{$assets-path}cb89e3ac-Ubuntu-Th-subset.woff') format('woff');
|
|
47
|
+
unicode-range: U+0-FF, U+131, U+152, U+153, U+2BB, U+2BC, U+2C6, U+2DA, U+2DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
@font-face {
|
|
51
|
+
font-display: $font-display-option;
|
|
52
|
+
font-family: 'Ubuntu Mono';
|
|
53
|
+
font-style: normal;
|
|
54
|
+
font-weight: $font-weight-regular-text;
|
|
55
|
+
src: url('#{$assets-path}a6c34b5d-UbuntuMono-R-subset.woff2') format('woff2'), url('#{$assets-path}e6daa284-UbuntuMono-R-subset.woff') format('woff');
|
|
56
|
+
unicode-range: U+0-FF, U+131, U+152, U+153, U+2BB, U+2BC, U+2C6, U+2DA, U+2DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
@font-face {
|
|
60
|
+
font-display: $font-display-option;
|
|
61
|
+
font-family: 'Ubuntu Mono';
|
|
62
|
+
font-style: normal;
|
|
63
|
+
font-weight: $font-weight-bold;
|
|
64
|
+
src: url('#{$assets-path}a662364d-UbuntuMono-B-subset.woff2') format('woff2'), url('#{$assets-path}22f97dd9-UbuntuMono-B-subset.woff') format('woff');
|
|
65
|
+
unicode-range: U+0-FF, U+131, U+152, U+153, U+2BB, U+2BC, U+2C6, U+2DA, U+2DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
66
|
+
}
|
|
67
|
+
} @else {
|
|
68
|
+
@font-face {
|
|
69
|
+
font-display: $font-display-option;
|
|
70
|
+
font-family: 'Ubuntu';
|
|
71
|
+
font-style: normal;
|
|
72
|
+
font-weight: $font-weight-regular-text;
|
|
73
|
+
src: url('#{$assets-path}e8c07df6-Ubuntu-L_W.woff2') format('woff2'), url('#{$assets-path}8619add2-Ubuntu-L_W.woff') format('woff');
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
@font-face {
|
|
77
|
+
font-display: $font-display-option;
|
|
78
|
+
font-family: 'Ubuntu';
|
|
79
|
+
font-style: normal;
|
|
80
|
+
font-weight: $font-weight-bold;
|
|
81
|
+
src: url('#{$assets-path}fff37993-Ubuntu-R_W.woff2') format('woff2'), url('#{$assets-path}7af50859-Ubuntu-R_W.woff') format('woff');
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
@font-face {
|
|
85
|
+
font-display: $font-display-option;
|
|
86
|
+
font-family: 'Ubuntu';
|
|
87
|
+
font-style: italic;
|
|
88
|
+
font-weight: $font-weight-regular-text;
|
|
89
|
+
src: url('#{$assets-path}f8097dea-Ubuntu-LI_W.woff2') format('woff2'), url('#{$assets-path}8be89d02-Ubuntu-LI_W.woff') format('woff');
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
@font-face {
|
|
93
|
+
font-display: $font-display-option;
|
|
94
|
+
font-family: 'Ubuntu';
|
|
95
|
+
font-style: italic;
|
|
96
|
+
font-weight: $font-weight-bold;
|
|
97
|
+
src: url('#{$assets-path}fca66073-ubuntu-ri-webfont.woff2') format('woff2'), url('#{$assets-path}f0898c72-ubuntu-ri-webfont.woff') format('woff');
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
@font-face {
|
|
101
|
+
font-display: $font-display-option;
|
|
102
|
+
font-family: 'Ubuntu';
|
|
103
|
+
font-style: normal;
|
|
104
|
+
font-weight: $font-weight-display-heading;
|
|
105
|
+
src: url('#{$assets-path}7f100985-Ubuntu-Th_W.woff2') format('woff2'), url('#{$assets-path}502cc3a1-Ubuntu-Th_W.woff') format('woff');
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
@font-face {
|
|
109
|
+
font-display: $font-display-option;
|
|
110
|
+
font-family: 'Ubuntu Mono';
|
|
111
|
+
font-style: normal;
|
|
112
|
+
font-weight: $font-weight-regular-text;
|
|
113
|
+
src: url('#{$assets-path}fdd692b9-UbuntuMono-R_W.woff2') format('woff2'), url('#{$assets-path}85edb898-UbuntuMono-R_W.woff') format('woff');
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
@font-face {
|
|
117
|
+
font-display: $font-display-option;
|
|
118
|
+
font-family: 'Ubuntu Mono';
|
|
119
|
+
font-style: normal;
|
|
120
|
+
font-weight: $font-weight-bold;
|
|
121
|
+
src: url('#{$assets-path}dd4acb63-UbuntuMono-B.woff2') format('woff2'), url('#{$assets-path}e8e36b19-UbuntuMono-B.woff') format('woff');
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
@if $font-allow-cyrillic-greek-latin {
|
|
126
|
+
// cyrillic-ext
|
|
127
|
+
@font-face {
|
|
128
|
+
font-display: $font-display-option;
|
|
129
|
+
font-family: 'Ubuntu';
|
|
130
|
+
font-style: normal;
|
|
131
|
+
font-weight: $font-weight-regular-text;
|
|
132
|
+
src: url('#{$assets-path}8aba5b6f-Ubuntu-L-cyrillic-ext-subset.woff2') format('woff2'), url('#{$assets-path}55e29aa9-Ubuntu-L-cyrillic-ext-subset.woff') format('woff');
|
|
133
|
+
unicode-range: U+0460-052F, U+20B4, U+2DE0-2DFF, U+A640-A69F;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
// cyrillic
|
|
137
|
+
@font-face {
|
|
138
|
+
font-display: $font-display-option;
|
|
139
|
+
font-family: 'Ubuntu';
|
|
140
|
+
font-style: normal;
|
|
141
|
+
font-weight: $font-weight-regular-text;
|
|
142
|
+
src: url('#{$assets-path}5bea8279-Ubuntu-L-cyrillic-subset.woff2') format('woff2'), url('#{$assets-path}b8058442-Ubuntu-L-cyrillic-subset.woff') format('woff');
|
|
143
|
+
unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
// greek-ext
|
|
147
|
+
@font-face {
|
|
148
|
+
font-display: $font-display-option;
|
|
149
|
+
font-family: 'Ubuntu';
|
|
150
|
+
font-style: normal;
|
|
151
|
+
font-weight: $font-weight-regular-text;
|
|
152
|
+
src: url('#{$assets-path}a6dcff6e-Ubuntu-L-greek-ext-subset.woff2') format('woff2'), url('#{$assets-path}496f3bda-Ubuntu-L-greek-ext-subset.woff') format('woff');
|
|
153
|
+
unicode-range: U+1F00-1FFF;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
// greek
|
|
157
|
+
@font-face {
|
|
158
|
+
font-display: $font-display-option;
|
|
159
|
+
font-family: 'Ubuntu';
|
|
160
|
+
font-style: normal;
|
|
161
|
+
font-weight: $font-weight-regular-text;
|
|
162
|
+
src: url('#{$assets-path}b7ba71af-Ubuntu-L-greek-subset.woff2') format('woff2'), url('#{$assets-path}b864c12e-Ubuntu-L-greek-subset.woff') format('woff');
|
|
163
|
+
unicode-range: U+0370-03FF;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
// latin-ext
|
|
167
|
+
@font-face {
|
|
168
|
+
font-display: $font-display-option;
|
|
169
|
+
font-family: 'Ubuntu';
|
|
170
|
+
font-style: normal;
|
|
171
|
+
font-weight: $font-weight-regular-text;
|
|
172
|
+
src: url('#{$assets-path}98e516d3-Ubuntu-L-latin-ext-subset.woff2') format('woff2'), url('#{$assets-path}11a74839-Ubuntu-L-latin-ext-subset.woff') format('woff');
|
|
173
|
+
unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
// latin
|
|
177
|
+
@font-face {
|
|
178
|
+
font-display: $font-display-option;
|
|
179
|
+
font-family: 'Ubuntu';
|
|
180
|
+
font-style: normal;
|
|
181
|
+
font-weight: $font-weight-regular-text;
|
|
182
|
+
src: url('#{$assets-path}317bd676-Ubuntu-L-latin-subset.woff2') format('woff2'), url('#{$assets-path}c09862e1-Ubuntu-L-latin-subset.woff') format('woff');
|
|
183
|
+
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215;
|
|
184
|
+
}
|
|
183
185
|
}
|
|
184
186
|
}
|
|
185
187
|
}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
@mixin vf-b-range {
|
|
2
2
|
$thumb-shadow: 0 0 $bar-thickness 1px rgba(0, 0, 0, 0.2);
|
|
3
|
-
$thumb-size:
|
|
4
|
-
$thumb-radius:
|
|
5
|
-
$
|
|
6
|
-
$track-
|
|
7
|
-
$track-border: $track-border-size solid $colors--light-theme--border-high-contrast;
|
|
3
|
+
$thumb-size: 1rem;
|
|
4
|
+
$thumb-radius: 50%;
|
|
5
|
+
$thumb-border: 1px solid $color-mid-dark;
|
|
6
|
+
$track-height: $bar-thickness;
|
|
8
7
|
$track-radius: $bar-thickness;
|
|
9
8
|
|
|
10
9
|
// stylelint-disable selector-max-type -- base styles can use type selectors
|
|
@@ -14,16 +13,15 @@
|
|
|
14
13
|
-moz-appearance: none;
|
|
15
14
|
appearance: none;
|
|
16
15
|
// stylelint-enable property-no-vendor-prefix
|
|
17
|
-
border-radius: $track-radius
|
|
16
|
+
border-radius: $track-radius;
|
|
18
17
|
margin: $sp-small 0;
|
|
19
18
|
padding: 0;
|
|
20
19
|
width: 100%;
|
|
21
20
|
|
|
22
21
|
// Chrome
|
|
23
22
|
&::-webkit-slider-runnable-track {
|
|
24
|
-
border: $track-
|
|
25
|
-
|
|
26
|
-
height: $track-height + 1;
|
|
23
|
+
border-radius: $track-radius;
|
|
24
|
+
height: $track-height;
|
|
27
25
|
}
|
|
28
26
|
|
|
29
27
|
&::-webkit-slider-thumb {
|
|
@@ -33,11 +31,11 @@
|
|
|
33
31
|
appearance: none;
|
|
34
32
|
// stylelint-enable property-no-vendor-prefix
|
|
35
33
|
background: $color-x-light;
|
|
36
|
-
border:
|
|
34
|
+
border: $thumb-border;
|
|
37
35
|
border-radius: $thumb-radius;
|
|
38
36
|
box-shadow: $thumb-shadow;
|
|
39
37
|
height: $thumb-size;
|
|
40
|
-
margin-top: (
|
|
38
|
+
margin-top: (-$thumb-size + $track-height) * 0.5;
|
|
41
39
|
width: $thumb-size;
|
|
42
40
|
|
|
43
41
|
&:hover {
|
|
@@ -47,21 +45,20 @@
|
|
|
47
45
|
|
|
48
46
|
// Firefox
|
|
49
47
|
&::-moz-range-track {
|
|
50
|
-
background: $color-
|
|
51
|
-
border: $track-border;
|
|
48
|
+
background: $color-mid-light;
|
|
52
49
|
border-radius: $track-radius;
|
|
53
|
-
height: $track-height
|
|
50
|
+
height: $track-height;
|
|
54
51
|
}
|
|
55
52
|
|
|
56
53
|
&::-moz-range-progress {
|
|
57
|
-
background-color: $color-
|
|
54
|
+
background-color: $color-link;
|
|
58
55
|
border-radius: $track-radius;
|
|
59
|
-
height: $track-height
|
|
56
|
+
height: $track-height;
|
|
60
57
|
}
|
|
61
58
|
|
|
62
59
|
&::-moz-range-thumb {
|
|
63
60
|
background: $color-x-light;
|
|
64
|
-
border:
|
|
61
|
+
border: $thumb-border;
|
|
65
62
|
border-radius: $thumb-radius;
|
|
66
63
|
box-shadow: $thumb-shadow;
|
|
67
64
|
height: $thumb-size;
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
|
|
70
70
|
// set static gutter width per breakpoint
|
|
71
71
|
@media (min-width: $threshold-4-6-col) {
|
|
72
|
-
grid-gap: 0 map-get($grid-gutter-widths,
|
|
72
|
+
grid-gap: 0 map-get($grid-gutter-widths, default);
|
|
73
73
|
grid-template-columns: repeat($grid-columns-medium, minmax(0, 1fr));
|
|
74
74
|
|
|
75
75
|
& > * {
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
@media (min-width: $threshold-6-12-col) {
|
|
81
|
-
grid-gap: 0 map-get($grid-gutter-widths,
|
|
81
|
+
grid-gap: 0 map-get($grid-gutter-widths, default);
|
|
82
82
|
grid-template-columns: repeat($grid-columns, minmax(0, 1fr));
|
|
83
83
|
|
|
84
84
|
& > * {
|
|
@@ -94,13 +94,13 @@
|
|
|
94
94
|
padding-right: map-get($grid-margin-widths, small);
|
|
95
95
|
|
|
96
96
|
@media (min-width: $threshold-4-6-col) {
|
|
97
|
-
padding-left: map-get($grid-margin-widths,
|
|
98
|
-
padding-right: map-get($grid-margin-widths,
|
|
97
|
+
padding-left: map-get($grid-margin-widths, default);
|
|
98
|
+
padding-right: map-get($grid-margin-widths, default);
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
@media (min-width: $threshold-6-12-col) {
|
|
102
|
-
padding-left: map-get($grid-margin-widths,
|
|
103
|
-
padding-right: map-get($grid-margin-widths,
|
|
102
|
+
padding-left: map-get($grid-margin-widths, default);
|
|
103
|
+
padding-right: map-get($grid-margin-widths, default);
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
}
|