vanilla-framework 3.9.0 → 3.11.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/package.json +5 -5
- package/scss/_base_fontfaces.scss +40 -147
- package/scss/_base_icon-definitions.scss +4 -0
- package/scss/_base_placeholders.scss +1 -1
- package/scss/_layouts_application.scss +2 -1
- package/scss/_layouts_full-width.scss +86 -0
- package/scss/_patterns_icons.scss +12 -0
- package/scss/_settings_font.scss +4 -5
- package/scss/_vanilla.scss +2 -0
package/package.json
CHANGED
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"percy": "percy exec -- node snapshots.js",
|
|
48
48
|
"icon-svgs-to-mixins": "node scripts/convert-svgs-to-icon-mixins.js icons"
|
|
49
49
|
},
|
|
50
|
-
"version": "3.
|
|
50
|
+
"version": "3.11.0",
|
|
51
51
|
"files": [
|
|
52
52
|
"_index.scss",
|
|
53
53
|
"/scss",
|
|
@@ -58,10 +58,10 @@
|
|
|
58
58
|
"@canonical/cookie-policy": "3.4.0",
|
|
59
59
|
"@canonical/latest-news": "1.4.1",
|
|
60
60
|
"autoprefixer": "10.4.13",
|
|
61
|
-
"postcss": "8.4.
|
|
61
|
+
"postcss": "8.4.21",
|
|
62
62
|
"postcss-cli": "9.1.0",
|
|
63
63
|
"postcss-scss": "4.0.6",
|
|
64
|
-
"sass": "1.
|
|
64
|
+
"sass": "1.57.1",
|
|
65
65
|
"yaml": "1.10.2"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
@@ -71,8 +71,8 @@
|
|
|
71
71
|
"get-site-urls": "3.0.0",
|
|
72
72
|
"markdown-spellcheck": "1.3.1",
|
|
73
73
|
"parker": "0.0.10",
|
|
74
|
-
"prettier": "2.8.
|
|
75
|
-
"stylelint": "14.16.
|
|
74
|
+
"prettier": "2.8.2",
|
|
75
|
+
"stylelint": "14.16.1",
|
|
76
76
|
"stylelint-config-prettier": "9.0.4",
|
|
77
77
|
"stylelint-config-recommended-scss": "5.0.2",
|
|
78
78
|
"stylelint-order": "5.0.0",
|
|
@@ -1,187 +1,80 @@
|
|
|
1
1
|
@mixin vf-b-typography-fontfaces {
|
|
2
2
|
@at-root {
|
|
3
3
|
@if str-index($font-base-family, 'Ubuntu') {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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
|
-
}
|
|
4
|
+
// Default font-display option
|
|
5
|
+
@font-face {
|
|
6
|
+
font-family: 'Ubuntu variable';
|
|
7
|
+
font-stretch: 100%; /* min and max value for the width axis, expressed as percentage */
|
|
8
|
+
font-style: normal;
|
|
9
|
+
font-weight: 100 800; /* min and max value for the weight axis */
|
|
10
|
+
src: url('#{$assets-path}f3b9cc97-Ubuntu[wdth,wght]-latin.woff2') format('woff2-variations');
|
|
11
|
+
}
|
|
107
12
|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
13
|
+
@font-face {
|
|
14
|
+
font-family: 'Ubuntu variable';
|
|
15
|
+
font-stretch: 100%; /* min and max value for the width axis, expressed as percentage */
|
|
16
|
+
font-style: italic;
|
|
17
|
+
font-weight: 100 800; /* min and max value for the weight axis */
|
|
18
|
+
src: url('#{$assets-path}c1b12cdf-Ubuntu-Italic[wdth,wght]-latin.woff2') format('woff2-variations');
|
|
19
|
+
}
|
|
115
20
|
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
src: url('#{$assets-path}dd4acb63-UbuntuMono-B.woff2') format('woff2'), url('#{$assets-path}e8e36b19-UbuntuMono-B.woff') format('woff');
|
|
122
|
-
}
|
|
21
|
+
@font-face {
|
|
22
|
+
font-family: 'Ubuntu Mono variable';
|
|
23
|
+
font-style: normal;
|
|
24
|
+
font-weight: 100 800; /* min and max value for the weight axis */
|
|
25
|
+
src: url('#{$assets-path}0bd4277a-UbuntuMono[wght]-latin.woff2') format('woff2-variations');
|
|
123
26
|
}
|
|
124
27
|
|
|
125
28
|
@if $font-allow-cyrillic-greek-latin {
|
|
126
29
|
// cyrillic-ext
|
|
127
30
|
@font-face {
|
|
128
|
-
font-
|
|
129
|
-
font-
|
|
31
|
+
font-family: 'Ubuntu variable';
|
|
32
|
+
font-stretch: 100%; /* min and max value for the width axis, expressed as percentage */
|
|
130
33
|
font-style: normal;
|
|
131
|
-
font-weight:
|
|
132
|
-
src: url('#{$assets-path}
|
|
34
|
+
font-weight: 100 800; /* min and max value for the weight axis */
|
|
35
|
+
src: url('#{$assets-path}7d55b1fc-Ubuntu[wdth,wght]-cyrillic-extended.woff2') format('woff2-variations');
|
|
133
36
|
unicode-range: U+0460-052F, U+20B4, U+2DE0-2DFF, U+A640-A69F;
|
|
134
37
|
}
|
|
135
38
|
|
|
136
39
|
// cyrillic
|
|
137
40
|
@font-face {
|
|
138
|
-
font-
|
|
139
|
-
font-
|
|
41
|
+
font-family: 'Ubuntu variable';
|
|
42
|
+
font-stretch: 100%; /* min and max value for the width axis, expressed as percentage */
|
|
140
43
|
font-style: normal;
|
|
141
|
-
font-weight:
|
|
142
|
-
src: url('#{$assets-path}
|
|
44
|
+
font-weight: 100 800; /* min and max value for the weight axis */
|
|
45
|
+
src: url('#{$assets-path}086e42aa-Ubuntu[wdth,wght]-cyrillic.woff2') format('woff2-variations');
|
|
143
46
|
unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
|
|
144
47
|
}
|
|
145
48
|
|
|
146
49
|
// greek-ext
|
|
147
50
|
@font-face {
|
|
148
|
-
font-
|
|
149
|
-
font-
|
|
51
|
+
font-family: 'Ubuntu variable';
|
|
52
|
+
font-stretch: 100%; /* min and max value for the width axis, expressed as percentage */
|
|
150
53
|
font-style: normal;
|
|
151
|
-
font-weight:
|
|
152
|
-
src: url('#{$assets-path}
|
|
54
|
+
font-weight: 100 800; /* min and max value for the weight axis */
|
|
55
|
+
src: url('#{$assets-path}77e5f6a2-Ubuntu[wdth,wght]-greek-extended.woff2') format('woff2-variations');
|
|
153
56
|
unicode-range: U+1F00-1FFF;
|
|
154
57
|
}
|
|
155
58
|
|
|
156
59
|
// greek
|
|
157
60
|
@font-face {
|
|
158
|
-
font-
|
|
159
|
-
font-
|
|
61
|
+
font-family: 'Ubuntu variable';
|
|
62
|
+
font-stretch: 100%; /* min and max value for the width axis, expressed as percentage */
|
|
160
63
|
font-style: normal;
|
|
161
|
-
font-weight:
|
|
162
|
-
src: url('#{$assets-path}
|
|
64
|
+
font-weight: 100 800; /* min and max value for the weight axis */
|
|
65
|
+
src: url('#{$assets-path}57fdffc1-Ubuntu[wdth,wght]-greek.woff2') format('woff2-variations');
|
|
163
66
|
unicode-range: U+0370-03FF;
|
|
164
67
|
}
|
|
165
68
|
|
|
166
69
|
// latin-ext
|
|
167
70
|
@font-face {
|
|
168
|
-
font-
|
|
169
|
-
font-
|
|
71
|
+
font-family: 'Ubuntu variable';
|
|
72
|
+
font-stretch: 100%; /* min and max value for the width axis, expressed as percentage */
|
|
170
73
|
font-style: normal;
|
|
171
|
-
font-weight:
|
|
172
|
-
src: url('#{$assets-path}
|
|
74
|
+
font-weight: 100 800; /* min and max value for the weight axis */
|
|
75
|
+
src: url('#{$assets-path}a312a7ed-Ubuntu[wdth,wght]-latin-extended.woff2') format('woff2-variations');
|
|
173
76
|
unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
|
|
174
77
|
}
|
|
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
|
-
}
|
|
185
78
|
}
|
|
186
79
|
}
|
|
187
80
|
}
|
|
@@ -481,3 +481,7 @@
|
|
|
481
481
|
@mixin vf-icon-linux-prompt($color) {
|
|
482
482
|
background-image: url("data:image/svg+xml,%3Csvg width='16px' height='16px' viewBox='0 0 16 16' version='1.1' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='dollar-sign' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M8.85063291,15 L8.85063291,13.1075949 C9.73924051,12.9978903 10.3974684,12.7181434 10.8253165,12.2683544 C11.2531646,11.8185654 11.4670886,11.2700422 11.4670886,10.6227848 C11.4670886,10.1949367 11.3875528,9.82742616 11.228481,9.52025316 C11.0694092,9.21308017 10.8582278,8.94978903 10.5949367,8.73037975 C10.3316456,8.51097047 10.0244726,8.32172996 9.67341772,8.16265823 C9.32236287,8.00358649 8.96033756,7.85274262 8.58734177,7.71012658 C8.29113924,7.60042194 8.02510548,7.49620253 7.78924051,7.39746835 C7.55337553,7.29873418 7.34767933,7.18902953 7.1721519,7.06835443 C6.99662447,6.94767933 6.86223629,6.81054852 6.76898734,6.65696203 C6.67573839,6.50337553 6.62911392,6.31139241 6.62911392,6.08101266 C6.62911392,5.66413502 6.78544304,5.34599156 7.09810127,5.12658228 C7.41075949,4.907173 7.86329114,4.79746835 8.4556962,4.79746835 C8.99324895,4.79746835 9.43755275,4.84409282 9.78860759,4.93734177 C10.1396624,5.03059072 10.4303797,5.12109705 10.6607595,5.20886076 L10.9405063,4.05696203 C10.7210971,3.96919832 10.4276371,3.88417722 10.0601266,3.80189873 C9.69261604,3.71962025 9.28945148,3.66751055 8.85063291,3.64556962 L8.85063291,2 L7.63291139,2 L7.63291139,3.69493671 C6.84303797,3.81561181 6.23966244,4.09535865 5.82278481,4.53417722 C5.40590718,4.97299578 5.19746835,5.54345991 5.19746835,6.24556962 C5.19746835,6.64050633 5.26877637,6.97236287 5.41139241,7.24113924 C5.55400844,7.50991561 5.73776371,7.74029536 5.96265823,7.93227848 C6.18755275,8.12426161 6.44535865,8.28607595 6.73607595,8.41772152 C7.02679325,8.54936709 7.32025316,8.67004219 7.6164557,8.77974684 C7.9236287,8.88945148 8.21983123,9.00189873 8.50506329,9.11708861 C8.79029536,9.23227848 9.04535865,9.36392405 9.27025316,9.51202532 C9.49514768,9.66012658 9.67341772,9.83016877 9.80506329,10.0221519 C9.93670886,10.214135 10.0025316,10.4472574 10.0025316,10.721519 C10.0025316,10.9080169 9.96962025,11.0808017 9.90379747,11.2398734 C9.83797468,11.3989452 9.72827004,11.5360759 9.57468354,11.6512658 C9.42109705,11.7664557 9.20991561,11.8542194 8.94113924,11.914557 C8.67236287,11.9748945 8.34050633,12.0050633 7.94556962,12.0050633 C7.33122363,12.0050633 6.82109705,11.9419832 6.41518987,11.8158228 C6.0092827,11.6896624 5.65822785,11.5552743 5.36202532,11.4126582 L5,12.5481013 C5.20843882,12.6687763 5.52658228,12.7949367 5.95443038,12.9265823 C6.38227848,13.0582278 6.94177215,13.1350211 7.63291139,13.156962 L7.63291139,15 L8.85063291,15 Z' id='$' fill='#{vf-url-friendly-color($color)}' fill-rule='nonzero'%3E%3C/path%3E%3C/g%3E%3C/svg%3E");
|
|
483
483
|
}
|
|
484
|
+
|
|
485
|
+
@mixin vf-icon-desktop($color) {
|
|
486
|
+
background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='desktop-2'%3E%3Crect width='16' height='16' /%3E%3Cpath id='Union' fill-rule='evenodd' clip-rule='evenodd' d='M2.5 3.5H13.5V10.5H2.5L2.5 3.5ZM1 3.5C1 2.67157 1.67157 2 2.5 2H13.5C14.3284 2 15 2.67157 15 3.5V10.5C15 11.3284 14.3284 12 13.5 12H8.75V13.25H11V14.75H5V13.25H7.25V12H2.5C1.67157 12 1 11.3284 1 10.5V3.5Z' fill='#{vf-url-friendly-color($color)}'/%3E%3C/g%3E%3C/svg%3E");
|
|
487
|
+
}
|
|
@@ -228,7 +228,7 @@
|
|
|
228
228
|
|
|
229
229
|
%social-icon {
|
|
230
230
|
@extend %vf-hide-text;
|
|
231
|
-
@include vf-icon-size(map-get($icon-sizes, heading-icon--small));
|
|
231
|
+
@include vf-icon-size(map-get($icon-sizes, heading-icon--x-small));
|
|
232
232
|
|
|
233
233
|
background-repeat: no-repeat;
|
|
234
234
|
display: inline-block;
|
|
@@ -235,7 +235,7 @@ $application-layout--side-nav-width-expanded: 15rem !default;
|
|
|
235
235
|
}
|
|
236
236
|
|
|
237
237
|
.l-aside {
|
|
238
|
-
@include vf-transition($property: #{transform, box-shadow}, $duration: snap);
|
|
238
|
+
@include vf-transition($property: #{transform, box-shadow, visibility}, $duration: snap);
|
|
239
239
|
|
|
240
240
|
box-shadow: $panel-drop-shadow;
|
|
241
241
|
grid-area: main;
|
|
@@ -260,6 +260,7 @@ $application-layout--side-nav-width-expanded: 15rem !default;
|
|
|
260
260
|
&.is-collapsed {
|
|
261
261
|
box-shadow: $panel-drop-shadow-transparent;
|
|
262
262
|
transform: translateX(100%);
|
|
263
|
+
visibility: hidden;
|
|
263
264
|
}
|
|
264
265
|
|
|
265
266
|
@media (min-width: $application-layout--breakpoint-side-nav-collapsed) {
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
@mixin vf-l-full-width {
|
|
2
|
+
$l-full-screen-aside-width: 15rem;
|
|
3
|
+
|
|
4
|
+
// we switch to full screen layout (with side navigation fixed to left side)
|
|
5
|
+
// when screen is big enough to fit side nav on left, same size on right, and grid
|
|
6
|
+
// in the middle
|
|
7
|
+
// we have to calculate media query breakpoint in px instead of rem to make sure
|
|
8
|
+
// we take into account bigger font size on large screens
|
|
9
|
+
$breakpoint-full-screen-layout: calc(($grid-max-width + 2 * $l-full-screen-aside-width) * $font-size-ratio--largescreen);
|
|
10
|
+
// TODO: make sure it works with grid-max-width set to 100% as in
|
|
11
|
+
// like: https://github.com/canonical/jaas-dashboard/blob/b9ca3876d054c48dc2da74df0080cd14a0f15740/src/scss/index.scss#L28
|
|
12
|
+
|
|
13
|
+
@media (min-width: $breakpoint-large) {
|
|
14
|
+
.l-full-width__sidebar {
|
|
15
|
+
background: $color-light;
|
|
16
|
+
|
|
17
|
+
// height of top navigation, as padding applied to .p-navigation__link + line-heigh of the anchor text inside
|
|
18
|
+
$navigation-top-height: $spv--large * 2 + map-get($line-heights, default-text);
|
|
19
|
+
|
|
20
|
+
height: calc(100% - $navigation-top-height); // height of document reduced by height of top nav
|
|
21
|
+
min-height: calc(100vh - $navigation-top-height);
|
|
22
|
+
position: absolute;
|
|
23
|
+
width: $l-full-screen-aside-width;
|
|
24
|
+
z-index: 1;
|
|
25
|
+
|
|
26
|
+
&::after {
|
|
27
|
+
background: linear-gradient(90deg, transparent, rgba($color-x-dark, 0.05));
|
|
28
|
+
bottom: 0;
|
|
29
|
+
content: '';
|
|
30
|
+
position: absolute;
|
|
31
|
+
right: 0;
|
|
32
|
+
top: 0;
|
|
33
|
+
width: 8px;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
// side navigation component drawer needs background only when it's fixed on smaller screens
|
|
37
|
+
// keep it transparent when it's visible as part of full width layout
|
|
38
|
+
.p-side-navigation__drawer {
|
|
39
|
+
background: transparent;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.l-full-width {
|
|
44
|
+
display: grid;
|
|
45
|
+
grid-template-areas: 'start main end';
|
|
46
|
+
grid-template-columns: $l-full-screen-aside-width minmax(0, 1fr) min-content;
|
|
47
|
+
width: 100%;
|
|
48
|
+
|
|
49
|
+
// left side container
|
|
50
|
+
.l-start {
|
|
51
|
+
grid-area: start;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
// main container
|
|
55
|
+
.l-main {
|
|
56
|
+
grid-area: main;
|
|
57
|
+
|
|
58
|
+
// grid should align to the left (no left margin)
|
|
59
|
+
// TODO: ideally this should be applied to %fixed-width-container
|
|
60
|
+
.row,
|
|
61
|
+
.u-fixed-width {
|
|
62
|
+
margin-left: 0;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// right side container
|
|
67
|
+
.l-end {
|
|
68
|
+
grid-area: end;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
// full width layout
|
|
74
|
+
@media (min-width: $breakpoint-full-screen-layout) {
|
|
75
|
+
.l-full-width {
|
|
76
|
+
grid-template-columns: $l-full-screen-aside-width minmax(0, 1fr) $l-full-screen-aside-width;
|
|
77
|
+
|
|
78
|
+
.l-main {
|
|
79
|
+
.row,
|
|
80
|
+
.u-fixed-width {
|
|
81
|
+
margin-left: auto;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
@@ -1538,3 +1538,15 @@
|
|
|
1538
1538
|
}
|
|
1539
1539
|
}
|
|
1540
1540
|
}
|
|
1541
|
+
|
|
1542
|
+
@mixin vf-p-icon-desktop {
|
|
1543
|
+
.p-icon--desktop {
|
|
1544
|
+
@extend %icon;
|
|
1545
|
+
@include vf-icon-desktop($color-mid-dark);
|
|
1546
|
+
|
|
1547
|
+
[class*='--dark'] &,
|
|
1548
|
+
&.is-light {
|
|
1549
|
+
@include vf-icon-desktop($color-mid-x-light);
|
|
1550
|
+
}
|
|
1551
|
+
}
|
|
1552
|
+
}
|
package/scss/_settings_font.scss
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
// Global font settings
|
|
2
|
-
$font-base-family: '"Ubuntu", -apple-system, "Segoe UI", "Roboto", "Oxygen", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif' !default;
|
|
3
|
-
$font-monospace: '"Ubuntu Mono", Consolas, Monaco, Courier, monospace' !default;
|
|
2
|
+
$font-base-family: '"Ubuntu variable", "Ubuntu", -apple-system, "Segoe UI", "Roboto", "Oxygen", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif' !default;
|
|
3
|
+
$font-monospace: '"Ubuntu Mono variable", "Ubuntu Mono", Consolas, Monaco, Courier, monospace' !default;
|
|
4
4
|
$font-heading-family: $font-base-family !default;
|
|
5
|
-
$font-use-subset-latin: false !default;
|
|
6
5
|
$font-display-option: fallback !default;
|
|
7
6
|
$font-allow-cyrillic-greek-latin: false !default;
|
|
8
7
|
$increase-font-size-on-larger-screens: true !default;
|
|
@@ -13,8 +12,8 @@ $base-font-sizes: (
|
|
|
13
12
|
large: $font-size-largescreen,
|
|
14
13
|
) !default;
|
|
15
14
|
$font-weight-display-heading: 100 !default;
|
|
16
|
-
$font-weight-regular-text:
|
|
17
|
-
$font-weight-bold:
|
|
15
|
+
$font-weight-regular-text: 400 !default;
|
|
16
|
+
$font-weight-bold: 550 !default;
|
|
18
17
|
|
|
19
18
|
// Ubuntu Font metrics
|
|
20
19
|
$baseline-position: 0.932em !default; // HHead Ascent from the font file's metrics. Viewable in Fontforge Font Information>OS/2
|
package/scss/_vanilla.scss
CHANGED
|
@@ -54,6 +54,7 @@
|
|
|
54
54
|
|
|
55
55
|
// Layouts
|
|
56
56
|
@import 'layouts_application';
|
|
57
|
+
@import 'layouts_full-width';
|
|
57
58
|
@import 'layouts_site';
|
|
58
59
|
@import 'layouts_fluid-breakout';
|
|
59
60
|
|
|
@@ -137,6 +138,7 @@
|
|
|
137
138
|
|
|
138
139
|
// Layouts
|
|
139
140
|
@include vf-l-application;
|
|
141
|
+
@include vf-l-full-width;
|
|
140
142
|
@include vf-l-site;
|
|
141
143
|
@include vf-l-fluid-breakout;
|
|
142
144
|
|