vanilla-framework 4.11.0 → 4.12.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 CHANGED
@@ -1,6 +1,5 @@
1
1
  # ![vanilla](https://assets.ubuntu.com/v1/70041419-vanilla-framework.png?w=35 'Vanilla') Vanilla Framework
2
2
 
3
- [![CircleCI build status](https://circleci.com/gh/canonical/vanilla-framework.svg?style=shield)](https://circleci.com/gh/canonical/vanilla-framework)
4
3
  [![npm version](https://badge.fury.io/js/vanilla-framework.svg)](http://badge.fury.io/js/vanilla-framework)
5
4
  [![Downloads](http://img.shields.io/npm/dm/vanilla-framework.svg)](https://www.npmjs.com/package/vanilla-framework)
6
5
  [![devDependency Status](https://david-dm.org/canonical/vanilla-framework/dev-status.svg)](https://david-dm.org/canonical/vanilla-framework#info=devDependencies)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vanilla-framework",
3
- "version": "4.11.0",
3
+ "version": "4.12.0",
4
4
  "author": {
5
5
  "email": "webteam@canonical.com",
6
6
  "name": "Canonical Webteam"
@@ -57,22 +57,22 @@
57
57
  "devDependencies": {
58
58
  "@canonical/cookie-policy": "3.6.3",
59
59
  "@canonical/latest-news": "1.5.0",
60
- "@percy/cli": "1.28.5",
61
- "@testing-library/cypress": "10.0.1",
60
+ "@percy/cli": "1.28.7",
61
+ "@testing-library/cypress": "10.0.2",
62
62
  "autoprefixer": "10.4.19",
63
- "cypress": "13.8.1",
63
+ "cypress": "13.10.0",
64
64
  "markdown-spellcheck": "1.3.1",
65
65
  "parker": "0.0.10",
66
66
  "postcss": "8.4.38",
67
67
  "postcss-cli": "11.0.0",
68
68
  "postcss-scss": "4.0.9",
69
- "prettier": "3.2.5",
70
- "sass": "1.77.0",
71
- "stylelint": "16.5.0",
69
+ "prettier": "3.3.0",
70
+ "sass": "1.77.4",
71
+ "stylelint": "16.6.1",
72
72
  "stylelint-config-recommended-scss": "14.0.0",
73
73
  "stylelint-order": "6.0.4",
74
74
  "stylelint-prettier": "5.0.0",
75
- "svgo": "3.2.0",
76
- "yaml": "2.4.2"
75
+ "svgo": "3.3.2",
76
+ "yaml": "2.4.3"
77
77
  }
78
78
  }
@@ -16,6 +16,7 @@
16
16
  font-weight: $font-weight-regular-text;
17
17
  // set default line height to match p
18
18
  line-height: map-get($line-heights, default-text);
19
+ text-wrap: pretty;
19
20
 
20
21
  @if ($increase-font-size-on-larger-screens) {
21
22
  font-size: map-get($base-font-sizes, base);
@@ -132,7 +132,15 @@
132
132
  .p-icon--chevron-up {
133
133
  transform: rotate(180deg);
134
134
  }
135
+ .p-icon--chevron-left {
136
+ transform: rotate(90deg);
137
+ }
138
+ .p-icon--chevron-right {
139
+ transform: rotate(-90deg);
140
+ }
135
141
 
142
+ .p-icon--chevron-left,
143
+ .p-icon--chevron-right,
136
144
  .p-icon--chevron-down,
137
145
  .p-icon--chevron-up {
138
146
  @extend %icon;
@@ -318,6 +318,9 @@ $list-step-bullet-margin: $sph--x-large;
318
318
 
319
319
  .p-stepped-list__title + .p-stepped-list__content {
320
320
  margin-left: $bullet-width-mobile + $list-step-bullet-margin;
321
+ @media (min-width: $threshold-6-12-col) {
322
+ padding-top: $spv-nudge;
323
+ }
321
324
 
322
325
  @media (min-width: $breakpoint-heading-threshold) {
323
326
  margin-left: $bullet-width + $list-step-bullet-margin;
@@ -392,7 +395,6 @@ $list-step-bullet-margin: $sph--x-large;
392
395
  @include vf-b-row-reset;
393
396
 
394
397
  @media (min-width: $threshold-6-12-col) {
395
- padding-top: $sp-unit;
396
398
  position: relative;
397
399
 
398
400
  &::after {
@@ -5,7 +5,7 @@
5
5
 
6
6
  .p-modal {
7
7
  align-items: center;
8
- background: transparentize($color-dark, 0.15);
8
+ background: $colors--theme--background-overlay;
9
9
  bottom: 0;
10
10
  display: flex;
11
11
  height: 100vh;
@@ -21,9 +21,11 @@
21
21
  }
22
22
 
23
23
  .p-modal__dialog {
24
- @extend %vf-card;
24
+ @extend %vf-card-padding;
25
25
  @extend %vf-has-box-shadow;
26
26
 
27
+ background-color: $colors--theme--background-default;
28
+ color: $colors--theme--text-default;
27
29
  left: $sph--x-large;
28
30
  margin-bottom: 0;
29
31
  max-height: calc(100% - 2 * $spv--large);
@@ -46,7 +48,7 @@
46
48
  .p-modal__header {
47
49
  @extend %vf-pseudo-border--bottom;
48
50
 
49
- background: $color-x-light;
51
+ background: $colors--theme--background-default;
50
52
  display: flex;
51
53
  justify-content: space-between;
52
54
  margin-bottom: $spv--small;
@@ -65,8 +67,8 @@
65
67
  }
66
68
 
67
69
  .p-modal__close {
70
+ @include vf-icon-close-themed;
68
71
  background: {
69
- image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' height='90' width='90'%3E%3Cg color='%23000'%3E%3Cpath fill='none' d='M0 0h90v90H0z'/%3E%3Cpath d='M14.52 6L6 14.52 36.48 45 6 75.49 14.52 84 45 53.52 75.48 84 84 75.49 53.52 45 84 14.52 75.48 6 45 36.49z' fill='%23888'/%3E%3C/g%3E%3C/svg%3E");
70
72
  position: center;
71
73
  repeat: no-repeat;
72
74
  size: $icon-size;
@@ -83,10 +85,6 @@
83
85
  text-indent: -999em;
84
86
  top: 0;
85
87
  width: $icon-size;
86
-
87
- &:focus {
88
- outline: $bar-thickness solid $color-focus;
89
- }
90
88
  }
91
89
 
92
90
  .p-modal__footer {
@@ -27,7 +27,7 @@
27
27
  border-right: 0;
28
28
 
29
29
  &::after {
30
- background-color: $colors--light-theme--border-low-contrast;
30
+ background-color: $colors--theme--border-low-contrast;
31
31
  bottom: 0;
32
32
  content: '';
33
33
  position: absolute;
@@ -117,8 +117,6 @@
117
117
  width: 100%;
118
118
  z-index: 102;
119
119
 
120
- .p-side-navigation:target &,
121
- [class*='p-side-navigation--']:target &,
122
120
  // is-expanded and is-collapsed are deprecated and replaced by is-drawer-expanded and is-drawer-collapsed
123
121
  .p-side-navigation.is-expanded &,
124
122
  .p-side-navigation.is-drawer-expanded &,
@@ -167,8 +165,6 @@
167
165
  top: 0;
168
166
  z-index: 101;
169
167
 
170
- .p-side-navigation:target &,
171
- [class*='p-side-navigation--']:target &,
172
168
  .p-side-navigation.is-expanded &,
173
169
  .p-side-navigation.is-drawer-expanded &,
174
170
  [class*='p-side-navigation--'].is-expanded &,
@@ -258,8 +254,6 @@
258
254
 
259
255
  .p-side-navigation__drawer,
260
256
  // fight specificity of expanded version
261
- .p-side-navigation:target .p-side-navigation__drawer,
262
- [class*='p-side-navigation--']:target .p-side-navigation__drawer,
263
257
  .p-side-navigation.is-expanded .p-side-navigation__drawer,
264
258
  .p-side-navigation.is-drawer-expanded .p-side-navigation__drawer,
265
259
  [class*='p-side-navigation--'].is-expanded .p-side-navigation__drawer,
@@ -34,19 +34,4 @@
34
34
  }
35
35
  }
36
36
  // stylelint-enable selector-max-type
37
-
38
- .u-baseline-grid__toggle {
39
- bottom: $spv--x-large;
40
- color: $colors--light-theme--text-default; // Force light theme colour because of baseline grid background
41
- position: fixed;
42
- right: $sp-unit * 3;
43
- z-index: 201;
44
- }
45
-
46
- // hide the theme toggle in Percy
47
- @media only percy {
48
- .u-baseline-grid__toggle {
49
- visibility: hidden !important;
50
- }
51
- }
52
37
  }
@@ -89,7 +89,6 @@
89
89
  @import 'utilities_no-print';
90
90
  @import 'utilities_text-max-width';
91
91
  @import 'utilities_text-figures';
92
- @import 'utilities_theme-toggle';
93
92
 
94
93
  // Include all the CSS
95
94
  @mixin vanilla {
@@ -183,5 +182,4 @@
183
182
  @include vf-u-no-print;
184
183
  @include vf-u-text-max-width;
185
184
  @include vf-u-text-figures;
186
- @include vf-u-theme-toggle;
187
185
  }
@@ -1,39 +0,0 @@
1
- @import 'settings';
2
-
3
- @mixin vf-u-theme-toggle {
4
- .u-theme-toggle {
5
- bottom: $spv--x-large;
6
- position: fixed;
7
- right: $sp-unit * 30;
8
- z-index: 100;
9
-
10
- .u-theme-toggle__button {
11
- margin: 0;
12
-
13
- &:not(:last-child) {
14
- border-right: 0;
15
- }
16
- }
17
-
18
- .u-theme-toggle__dark {
19
- background-color: $colors--dark-theme--background-default;
20
- color: $colors--dark-theme--text-default;
21
- }
22
-
23
- .u-theme-toggle__light {
24
- background-color: $colors--light-theme--background-default;
25
- color: $colors--light-theme--text-default;
26
- }
27
- .u-theme-toggle__paper {
28
- background-color: $color-paper;
29
- color: $color-x-dark;
30
- }
31
- }
32
-
33
- // hide the theme toggle in Percy
34
- @media only percy {
35
- .u-theme-toggle {
36
- visibility: hidden !important;
37
- }
38
- }
39
- }