vanilla-framework 4.18.4 → 4.18.5
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vanilla-framework",
|
|
3
|
-
"version": "4.18.
|
|
3
|
+
"version": "4.18.5",
|
|
4
4
|
"author": {
|
|
5
5
|
"email": "webteam@canonical.com",
|
|
6
6
|
"name": "Canonical Webteam"
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
"start": "yarn build && yarn serve",
|
|
31
31
|
"build": "yarn build-scss && yarn build-js && yarn build-class-references",
|
|
32
32
|
"build-tokens": "((style-dictionary build --verbose --config ./sd.config.json) || true)",
|
|
33
|
-
"build-scss": "yarn build-tokens && sass --load-path=node_modules --embed-sources --style=compressed --silence-deprecation=mixed-decls scss:build/css && postcss --use autoprefixer --replace 'build/css/**/*.css' --map",
|
|
34
|
-
"build:essential": "yarn run build-js && sass --load-path=node_modules --embed-sources --style=compressed --silence-deprecation=mixed-decls scss/build.scss:build/css/build.css scss/docs:build/css/docs && postcss --use autoprefixer --replace 'build/css/**/*.css' --map",
|
|
33
|
+
"build-scss": "yarn build-tokens && sass --load-path=node_modules --embed-sources --style=compressed --silence-deprecation=mixed-decls,import,global-builtin scss:build/css && postcss --use autoprefixer --replace 'build/css/**/*.css' --map",
|
|
34
|
+
"build:essential": "yarn run build-js && sass --load-path=node_modules --embed-sources --style=compressed --silence-deprecation=mixed-decls,import,global-builtin scss/build.scss:build/css/build.css scss/docs:build/css/docs && postcss --use autoprefixer --replace 'build/css/**/*.css' --map",
|
|
35
35
|
"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 && cp node_modules/js-beautify/js/lib/beautify.js node_modules/js-beautify/js/lib/beautify-html.js node_modules/js-beautify/js/lib/beautify-css.js build/js/modules",
|
|
36
36
|
"build-class-references": "node scripts/create-class-references.js",
|
|
37
37
|
"cypress:open": "cypress open",
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"test": "yarn lint-scss && yarn lint-prettier && yarn test-spelling && yarn test-scss && yarn jest",
|
|
43
43
|
"lint-prettier": "prettier -c .",
|
|
44
44
|
"lint-scss": "stylelint 'scss/**/*.scss'",
|
|
45
|
-
"watch:scss": "sass --load-path=node_modules --embed-sources --style=compressed --silence-deprecation=mixed-decls scss:build/css --watch",
|
|
46
|
-
"watch:essential": "sass --load-path=node_modules --embed-sources --style=compressed --silence-deprecation=mixed-decls scss/build.scss:build/css/build.css --watch",
|
|
45
|
+
"watch:scss": "sass --load-path=node_modules --embed-sources --style=compressed --silence-deprecation=mixed-decls,import,global-builtin scss:build/css --watch",
|
|
46
|
+
"watch:essential": "sass --load-path=node_modules --embed-sources --style=compressed --silence-deprecation=mixed-decls,import,global-builtin scss/build.scss:build/css/build.css --watch",
|
|
47
47
|
"watch": "yarn build && yarn watch:scss",
|
|
48
48
|
"clean": "rm -rf build docs/static/css node_modules/ yarn-error.log",
|
|
49
49
|
"percy": "percy snapshot snapshots.js",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"/templates/_macros"
|
|
58
58
|
],
|
|
59
59
|
"devDependencies": {
|
|
60
|
-
"@canonical/cookie-policy": "3.6.
|
|
60
|
+
"@canonical/cookie-policy": "3.6.5",
|
|
61
61
|
"@canonical/latest-news": "1.5.0",
|
|
62
62
|
"@percy/cli": "1.30.3",
|
|
63
63
|
"@testing-library/cypress": "10.0.2",
|
|
@@ -142,9 +142,11 @@
|
|
|
142
142
|
{{ _hero_title_block() }}
|
|
143
143
|
</div>
|
|
144
144
|
<div class="{{ col_classes[1] }}">
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
145
|
+
{% if has_subtitle %}
|
|
146
|
+
<div class="p-section--shallow">
|
|
147
|
+
{{- _hero_subtitle_block() -}}
|
|
148
|
+
</div>
|
|
149
|
+
{% endif %}
|
|
148
150
|
{{- _hero_description_block() -}}
|
|
149
151
|
{{- _hero_cta_block() -}}
|
|
150
152
|
</div>
|