@ons/design-system 60.0.0 → 60.0.2
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/components/autosuggest/autosuggest.ui.js +2 -1
- package/components/button/_button.scss +53 -25
- package/components/checkboxes/_checkbox-macro.njk +0 -1
- package/components/checkboxes/_checkbox-macro.spec.js +0 -2
- package/components/checkboxes/_checkbox.scss +0 -6
- package/components/checkboxes/_macro.njk +1 -1
- package/components/download-resources/download-resources.js +11 -19
- package/components/download-resources/download-resources.spec.js +172 -232
- package/components/footer/_macro.njk +11 -18
- package/components/footer/_macro.spec.js +6 -6
- package/components/hero/_macro.njk +8 -4
- package/components/hero/_macro.spec.js +8 -1
- package/components/input/_macro.njk +0 -1
- package/components/input/_macro.spec.js +0 -17
- package/components/pagination/_pagination.scss +10 -2
- package/components/radios/_macro.njk +2 -3
- package/components/radios/_macro.spec.js +0 -2
- package/components/summary/_summary.scss +2 -2
- package/components/tabs/tabs.js +3 -2
- package/components/tabs/tabs.spec.js +67 -1
- package/css/main.css +2 -2
- package/css/print.css +1 -1
- package/package.json +2 -1
- package/scripts/main.es5.js +1 -1
- package/scripts/main.js +1 -1
- package/scss/patternlib.scss +1 -15
- package/scss/print.scss +18 -14
- package/css/error.css +0 -1
- package/scss/error.scss +0 -27
package/scss/patternlib.scss
CHANGED
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
@import 'vars/grid';
|
|
2
|
-
@import 'vars/typography';
|
|
3
|
-
@import 'vars/vars';
|
|
4
|
-
@import 'helpers/index';
|
|
5
1
|
@import '../views/partials/example/example';
|
|
6
|
-
@import '../foundations/layout/page-template/examples/base-page-template-block-areas/block-areas';
|
|
7
|
-
@import '../patterns/pages/question/examples/question-anatomy/pl-question-anatomy';
|
|
8
|
-
@import '../foundations/layout/page-template/examples/base-page-template-block-areas/block-areas';
|
|
9
2
|
@import '../foundations/style/colours/colours';
|
|
10
3
|
@import '../foundations/style/icons/icon-swatch';
|
|
11
4
|
@import 'prism-tomorrow';
|
|
@@ -141,19 +134,12 @@
|
|
|
141
134
|
}
|
|
142
135
|
}
|
|
143
136
|
|
|
144
|
-
.ons-pl-grid-col {
|
|
145
|
-
background: var(--ons-color-grey-5);
|
|
146
|
-
font-size: 0.8rem;
|
|
147
|
-
margin: 0 0 1rem;
|
|
148
|
-
padding: 1rem;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
137
|
.ons-pl-experimental-tag {
|
|
152
138
|
background: var(--ons-color-info);
|
|
153
139
|
color: var(--ons-color-text-inverse);
|
|
154
140
|
display: inline-block;
|
|
155
141
|
font-size: 0.7rem;
|
|
156
|
-
font-weight:
|
|
142
|
+
font-weight: 700;
|
|
157
143
|
letter-spacing: 0.1rem;
|
|
158
144
|
margin-right: 0.5rem;
|
|
159
145
|
outline: 2px solid transparent; // Add transparent outline because Windows High Contrast Mode doesn't show background
|
package/scss/print.scss
CHANGED
|
@@ -3,6 +3,7 @@ html {
|
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
.ons-btn,
|
|
6
|
+
.ons-navigation-search,
|
|
6
7
|
.ons-summary__actions,
|
|
7
8
|
.ons-footer,
|
|
8
9
|
.ons-cookies-banner,
|
|
@@ -25,25 +26,28 @@ a::after {
|
|
|
25
26
|
color: var(--ons-color-black);
|
|
26
27
|
}
|
|
27
28
|
|
|
28
|
-
&-nav {
|
|
29
|
-
display: block;
|
|
30
|
-
&__item {
|
|
31
|
-
display: inline-block;
|
|
32
|
-
}
|
|
33
|
-
&__item--active {
|
|
34
|
-
border: 0;
|
|
35
|
-
}
|
|
36
|
-
&__link,
|
|
37
|
-
&__link:hover {
|
|
38
|
-
color: var(--ons-color-black);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
29
|
& &__svg-logo {
|
|
43
30
|
fill: var(--ons-color-black);
|
|
44
31
|
}
|
|
45
32
|
}
|
|
46
33
|
|
|
34
|
+
.ons-navigation--main,
|
|
35
|
+
.ons-navigation--sub {
|
|
36
|
+
border-top: 1px solid var(--ons-color-text-link);
|
|
37
|
+
display: block !important;
|
|
38
|
+
padding: 1rem 0 0.5rem;
|
|
39
|
+
.ons-navigation__item {
|
|
40
|
+
display: inline-block;
|
|
41
|
+
}
|
|
42
|
+
.ons-navigation__item--active {
|
|
43
|
+
border: 0;
|
|
44
|
+
}
|
|
45
|
+
.ons-navigation__link,
|
|
46
|
+
.ons-navigation__link:hover {
|
|
47
|
+
color: var(--ons-color-text-link);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
47
51
|
.ons-collapsible {
|
|
48
52
|
&--initialised & {
|
|
49
53
|
&__icon {
|
package/css/error.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{-webkit-box-sizing:content-box;box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{-webkit-box-sizing:border-box;box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{-webkit-box-sizing:border-box;box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}body{background:#222;color:#fff;font-family:"Courier New",Courier,monospace;padding:20px}.ons-print-error-stack{list-style:none;margin:0;padding:0}.ons-print-error-stack__heading{color:#c00}.ons-print-error-stack__heading--secondary{font-size:1.5rem}.ons-print-error-stack__entry{color:#f66;margin-bottom:1em}
|
package/scss/error.scss
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
@import 'normalize';
|
|
2
|
-
|
|
3
|
-
body {
|
|
4
|
-
background: #222;
|
|
5
|
-
color: #fff;
|
|
6
|
-
font-family: 'Courier New', Courier, monospace;
|
|
7
|
-
padding: 20px;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.ons-print-error-stack {
|
|
11
|
-
list-style: none;
|
|
12
|
-
margin: 0;
|
|
13
|
-
padding: 0;
|
|
14
|
-
|
|
15
|
-
&__heading {
|
|
16
|
-
color: #c00;
|
|
17
|
-
|
|
18
|
-
&--secondary {
|
|
19
|
-
font-size: 1.5rem;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
&__entry {
|
|
24
|
-
color: #f66;
|
|
25
|
-
margin-bottom: 1em;
|
|
26
|
-
}
|
|
27
|
-
}
|