@ons/design-system 57.0.1 → 58.0.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/components/autosuggest/_autosuggest.scss +16 -16
- package/components/breadcrumbs/_breadcrumbs.scss +2 -2
- package/components/browser-banner/_browser-banner.scss +5 -5
- package/components/button/_button.scss +62 -62
- package/components/call-to-action/_call-to-action.scss +1 -1
- package/components/checkboxes/_checkbox.scss +16 -16
- package/components/collapsible/_collapsible.scss +8 -8
- package/components/content-pagination/_content-pagination.scss +1 -1
- package/components/cookies-banner/_cookies-banner.scss +3 -3
- package/components/document-list/document-list.scss +10 -10
- package/components/download-resources/_download-resources.scss +5 -5
- package/components/external-link/_external-link.scss +4 -4
- package/components/feedback/_feedback.scss +3 -3
- package/components/field/_field.scss +1 -1
- package/components/find-a-support-centre/_find-a-support-centre.scss +1 -1
- package/components/footer/_footer.scss +7 -7
- package/components/header/_header.scss +26 -26
- package/components/hero/_hero.scss +4 -4
- package/components/input/_input-type.scss +5 -5
- package/components/input/_input.scss +13 -13
- package/components/label/_label.scss +1 -1
- package/components/lists/_list.scss +1 -1
- package/components/message/_message.scss +3 -3
- package/components/message-list/_message-list.scss +1 -1
- package/components/modal/_modal.scss +1 -1
- package/components/navigation/_macro.njk +1 -1
- package/components/navigation/_macro.spec.js +20 -2
- package/components/navigation/_navigation.scss +14 -14
- package/components/pagination/_pagination.scss +2 -2
- package/components/panel/_panel.scss +22 -22
- package/components/phase-banner/_phase-banner.scss +3 -3
- package/components/promotional-banner/_promo-banner.scss +5 -5
- package/components/question/_question.scss +4 -4
- package/components/quote/_quote.scss +2 -2
- package/components/radios/_radio.scss +6 -4
- package/components/related-content/_related-content.scss +2 -2
- package/components/relationships/_relationships.scss +2 -2
- package/components/section-navigation/_macro.njk +1 -1
- package/components/section-navigation/_section-navigation.scss +8 -8
- package/components/skip-to-content/_skip.scss +3 -3
- package/components/status/_status.scss +5 -5
- package/components/summary/_summary.scss +6 -6
- package/components/table/_table.scss +18 -18
- package/components/table-of-contents/_toc.scss +3 -3
- package/components/table-of-contents/toc.dom.js +2 -4
- package/components/tabs/_macro.njk +18 -5
- package/components/tabs/_macro.spec.js +54 -0
- package/components/tabs/_tabs.scss +57 -25
- package/components/tabs/tabs.js +35 -12
- package/components/tabs/tabs.spec.js +104 -10
- package/components/text-indent/_text-indent.scss +1 -1
- package/components/timeline/_timeline.scss +2 -2
- package/components/upload/_upload.scss +6 -6
- package/css/census.css +3 -3
- package/css/ids.css +3 -3
- package/css/main.css +3 -3
- package/css/print.css +1 -1
- package/package.json +1 -1
- package/scripts/main.es5.js +1 -1
- package/scripts/main.js +2 -2
- package/scss/base/_global.scss +7 -7
- package/scss/base/_typography.scss +2 -2
- package/scss/census.scss +1 -1
- package/scss/helpers/_functions.scss +0 -8
- package/scss/ids.scss +1 -1
- package/scss/overrides/hcm.scss +1 -1
- package/scss/overrides/rtl.scss +1 -1
- package/scss/patternlib.scss +10 -9
- package/scss/print.scss +7 -5
- package/scss/settings/_census.scss +24 -19
- package/scss/settings/_ids.scss +12 -8
- package/scss/utilities/_border.scss +1 -1
- package/scss/utilities/_colors.scss +1 -10
- package/scss/utilities/_grid.scss +3 -3
- package/scss/utilities/_typography.scss +1 -1
- package/scss/vars/_colors.scss +112 -99
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
.ons-navigation {
|
|
2
2
|
position: relative;
|
|
3
3
|
&-wrapper {
|
|
4
|
-
background:
|
|
4
|
+
background: var(--ons-color-header);
|
|
5
5
|
margin-top: -0.03rem;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
&--sub {
|
|
9
|
-
background:
|
|
9
|
+
background: var(--ons-color-branded-tint);
|
|
10
10
|
padding-top: 0.5rem;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
&--sub-mobile {
|
|
14
|
-
border-bottom: 4px solid
|
|
14
|
+
border-bottom: 4px solid var(--ons-color-branded-tint);
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
&-search {
|
|
@@ -48,12 +48,12 @@
|
|
|
48
48
|
display: block;
|
|
49
49
|
margin: 0 0 0.2rem;
|
|
50
50
|
&--active {
|
|
51
|
-
border-color:
|
|
51
|
+
border-color: var(--ons-color-white);
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
.ons-navigation--sub-mobile & {
|
|
55
55
|
&--active {
|
|
56
|
-
border-color:
|
|
56
|
+
border-color: var(--ons-color-branded);
|
|
57
57
|
li {
|
|
58
58
|
border: 0;
|
|
59
59
|
}
|
|
@@ -75,20 +75,20 @@
|
|
|
75
75
|
|
|
76
76
|
&--active,
|
|
77
77
|
&:hover {
|
|
78
|
-
border-color:
|
|
78
|
+
border-color: var(--ons-color-white);
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
.ons-navigation--sub & {
|
|
82
82
|
&:hover,
|
|
83
83
|
&--active {
|
|
84
|
-
border-color:
|
|
84
|
+
border-color: var(--ons-color-branded);
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
&__link {
|
|
91
|
-
color:
|
|
91
|
+
color: var(--ons-color-white);
|
|
92
92
|
display: block;
|
|
93
93
|
margin: 0 0.75rem;
|
|
94
94
|
padding: 0.1rem 0;
|
|
@@ -101,16 +101,16 @@
|
|
|
101
101
|
|
|
102
102
|
&:hover,
|
|
103
103
|
&:focus {
|
|
104
|
-
color:
|
|
104
|
+
color: var(--ons-color-white);
|
|
105
105
|
text-decoration: none;
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
.ons-navigation--sub &,
|
|
109
109
|
.ons-navigation--sub-mobile & {
|
|
110
|
-
color:
|
|
110
|
+
color: var(--ons-color-text-link);
|
|
111
111
|
&:hover,
|
|
112
112
|
&:focus {
|
|
113
|
-
color:
|
|
113
|
+
color: var(--ons-color-text-link-hover);
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
116
|
|
|
@@ -128,14 +128,14 @@
|
|
|
128
128
|
|
|
129
129
|
&-wrapper {
|
|
130
130
|
&--neutral {
|
|
131
|
-
background:
|
|
131
|
+
background: var(--ons-color-header-light);
|
|
132
132
|
.ons-navigation__item {
|
|
133
133
|
&--active,
|
|
134
134
|
&:hover {
|
|
135
|
-
border-color:
|
|
135
|
+
border-color: var(--ons-color-branded);
|
|
136
136
|
}
|
|
137
137
|
.ons-navigation__link {
|
|
138
|
-
color:
|
|
138
|
+
color: var(--ons-color-branded-text);
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
141
|
}
|
|
@@ -43,8 +43,8 @@ $pagination-item-width: 2.5rem;
|
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
&__item--current &__link {
|
|
46
|
-
background:
|
|
47
|
-
color:
|
|
46
|
+
background: var(--ons-color-text-link-hover);
|
|
47
|
+
color: var(--ons-color-white);
|
|
48
48
|
outline: 2px solid transparent; // Add transparent outline because Windows High Contrast Mode doesn't show backgrounds
|
|
49
49
|
text-decoration: none;
|
|
50
50
|
}
|
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
.ons-branded-warning {
|
|
18
|
-
background:
|
|
18
|
+
background: var(--ons-color-branded-tertiary);
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
.ons-announcement {
|
|
22
|
-
background-color:
|
|
22
|
+
background-color: var(--ons-color-black);
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
.ons-branded-warning,
|
|
@@ -42,12 +42,12 @@
|
|
|
42
42
|
|
|
43
43
|
&:focus {
|
|
44
44
|
box-shadow: none;
|
|
45
|
-
outline: 4px solid
|
|
45
|
+
outline: 4px solid var(--ons-color-focus) !important;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
&__header {
|
|
49
49
|
border-radius: 0;
|
|
50
|
-
color:
|
|
50
|
+
color: var(--ons-color-text-inverse);
|
|
51
51
|
margin: 0;
|
|
52
52
|
padding: 0.75rem 1rem;
|
|
53
53
|
}
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
&__error {
|
|
113
|
-
color:
|
|
113
|
+
color: var(--ons-color-errors);
|
|
114
114
|
}
|
|
115
115
|
|
|
116
116
|
&--warn {
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
padding: 0;
|
|
121
121
|
|
|
122
122
|
&--footer {
|
|
123
|
-
background-color:
|
|
123
|
+
background-color: var(--ons-color-grey-15) !important;
|
|
124
124
|
margin-bottom: 0;
|
|
125
125
|
padding: 1rem 0 !important;
|
|
126
126
|
}
|
|
@@ -129,13 +129,13 @@
|
|
|
129
129
|
&--warn-branded,
|
|
130
130
|
&--announcement {
|
|
131
131
|
border: 0 !important;
|
|
132
|
-
color:
|
|
132
|
+
color: var(--ons-color-white);
|
|
133
133
|
margin-bottom: 0;
|
|
134
134
|
outline: none !important;
|
|
135
135
|
padding: 1rem 0 !important;
|
|
136
136
|
a {
|
|
137
137
|
color: inherit;
|
|
138
|
-
text-decoration: underline solid
|
|
138
|
+
text-decoration: underline solid var(--ons-color-white) 1px;
|
|
139
139
|
}
|
|
140
140
|
a:hover {
|
|
141
141
|
text-decoration-thickness: 2px;
|
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
|
|
145
145
|
&--announcement {
|
|
146
146
|
a:focus {
|
|
147
|
-
box-shadow: 0 -2px
|
|
147
|
+
box-shadow: 0 -2px var(--ons-color-focus), 0 4px (--ons-color-text-inverse-link) !important; // Override focus style because the black border is not visible on a black background
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
150
|
|
|
@@ -177,9 +177,9 @@
|
|
|
177
177
|
padding: 0.222rem 0 0.222rem 2.8rem; // Alignment tweak
|
|
178
178
|
}
|
|
179
179
|
&__icon {
|
|
180
|
-
background:
|
|
180
|
+
background: var(--ons-color-black);
|
|
181
181
|
border-radius: 50%;
|
|
182
|
-
color:
|
|
182
|
+
color: var(--ons-color-white);
|
|
183
183
|
font-size: 1.5rem;
|
|
184
184
|
font-weight: 900;
|
|
185
185
|
line-height: 2rem;
|
|
@@ -196,8 +196,8 @@
|
|
|
196
196
|
}
|
|
197
197
|
|
|
198
198
|
&__icon {
|
|
199
|
-
background-color:
|
|
200
|
-
color:
|
|
199
|
+
background-color: var(--ons-color-white);
|
|
200
|
+
color: var(--ons-color-black);
|
|
201
201
|
display: flex;
|
|
202
202
|
svg {
|
|
203
203
|
margin: auto;
|
|
@@ -207,8 +207,8 @@
|
|
|
207
207
|
|
|
208
208
|
&--warn-branded & {
|
|
209
209
|
&__icon {
|
|
210
|
-
background-color:
|
|
211
|
-
color:
|
|
210
|
+
background-color: var(--ons-color-white);
|
|
211
|
+
color: var(--ons-color-branded-tertiary);
|
|
212
212
|
}
|
|
213
213
|
}
|
|
214
214
|
|
|
@@ -217,7 +217,7 @@
|
|
|
217
217
|
left: 0;
|
|
218
218
|
padding-left: 1rem;
|
|
219
219
|
.ons-svg-icon {
|
|
220
|
-
fill:
|
|
220
|
+
fill: var(--ons-color-success) !important;
|
|
221
221
|
margin-top: -15% !important;
|
|
222
222
|
}
|
|
223
223
|
}
|
|
@@ -249,10 +249,10 @@
|
|
|
249
249
|
}
|
|
250
250
|
}
|
|
251
251
|
|
|
252
|
-
@include panel-type(error,
|
|
253
|
-
@include panel-type(success,
|
|
254
|
-
@include panel-type(info,
|
|
255
|
-
@include panel-type(branded,
|
|
252
|
+
@include panel-type(error, var(--ons-color-errors), var(--ons-color-errors-tint));
|
|
253
|
+
@include panel-type(success, var(--ons-color-success), var(--ons-color-success-tint));
|
|
254
|
+
@include panel-type(info, var(--ons-color-info), var(--ons-color-info-tint));
|
|
255
|
+
@include panel-type(branded, var(--ons-color-branded), var(--ons-color-branded-tint));
|
|
256
256
|
@include panel-type(warn, transparent, transparent);
|
|
257
|
-
@include panel-type(warn-branded,
|
|
258
|
-
@include panel-type(announcement,
|
|
257
|
+
@include panel-type(warn-branded, var(--ons-color-branded-tertiary), var(--ons-color-branded-tertiary));
|
|
258
|
+
@include panel-type(announcement, var(--ons-color-black), var(--ons-color-black));
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
.ons-phase-banner {
|
|
2
|
-
background:
|
|
2
|
+
background: var(--ons-color-grey-5);
|
|
3
3
|
padding: 0.5rem 0;
|
|
4
4
|
|
|
5
5
|
&__badge {
|
|
6
|
-
background:
|
|
7
|
-
color:
|
|
6
|
+
background: var(--ons-color-black);
|
|
7
|
+
color: var(--ons-color-white);
|
|
8
8
|
font-size: 0.85rem;
|
|
9
9
|
line-height: 1em;
|
|
10
10
|
margin: 0 0.5rem 0 0;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.ons-promo-banner {
|
|
2
|
-
background-color:
|
|
3
|
-
background-image: linear-gradient(46deg,
|
|
2
|
+
background-color: var(--ons-color-branded);
|
|
3
|
+
background-image: linear-gradient(46deg, var(--ons-color-branded-tertiary) 0%, var(--ons-color-branded) 100%);
|
|
4
4
|
overflow: hidden;
|
|
5
5
|
padding-bottom: 5em;
|
|
6
6
|
padding-top: 3em;
|
|
@@ -46,18 +46,18 @@
|
|
|
46
46
|
li,
|
|
47
47
|
p,
|
|
48
48
|
a {
|
|
49
|
-
color:
|
|
49
|
+
color: var(--ons-color-white);
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
a {
|
|
53
53
|
&:hover {
|
|
54
|
-
text-decoration: underline solid
|
|
54
|
+
text-decoration: underline solid var(--ons-color-white) 2px;
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
h3 {
|
|
59
59
|
a:hover {
|
|
60
|
-
text-decoration: underline solid
|
|
60
|
+
text-decoration: underline solid var(--ons-color-white) 3px;
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
}
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
}
|
|
11
11
|
mark,
|
|
12
12
|
.ons-instruction {
|
|
13
|
-
background-color:
|
|
14
|
-
color:
|
|
13
|
+
background-color: var(--ons-color-instruction);
|
|
14
|
+
color: var(--ons-color-text-inverse);
|
|
15
15
|
margin-right: 0.5rem;
|
|
16
16
|
padding: 0 0.5rem;
|
|
17
17
|
}
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
&__instruction {
|
|
27
|
-
background-color:
|
|
28
|
-
border: 5px solid
|
|
27
|
+
background-color: var(--ons-color-instruction-tint);
|
|
28
|
+
border: 5px solid var(--ons-color-instruction);
|
|
29
29
|
display: block;
|
|
30
30
|
font-weight: $font-weight-regular;
|
|
31
31
|
padding: 1rem;
|
|
@@ -11,14 +11,14 @@
|
|
|
11
11
|
&__ref {
|
|
12
12
|
@extend .ons-u-fs-s;
|
|
13
13
|
|
|
14
|
-
color:
|
|
14
|
+
color: var(--ons-color-text-light);
|
|
15
15
|
display: block;
|
|
16
16
|
margin-top: 0.5rem;
|
|
17
17
|
position: relative;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
.ons-svg-icon {
|
|
21
|
-
fill:
|
|
21
|
+
fill: var(--ons-color-grey-75) !important;
|
|
22
22
|
height: 1.85rem;
|
|
23
23
|
left: 0;
|
|
24
24
|
position: absolute;
|
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
&__input {
|
|
5
5
|
@extend .ons-checkbox__input;
|
|
6
6
|
|
|
7
|
-
background:
|
|
7
|
+
background: var(--ons-color-grey-5);
|
|
8
8
|
border-radius: 50%;
|
|
9
|
-
box-shadow: inset 0 0 0 3px
|
|
9
|
+
box-shadow: inset 0 0 0 3px var(--ons-color-input-bg);
|
|
10
10
|
|
|
11
11
|
&::after {
|
|
12
|
-
border-color:
|
|
12
|
+
border-color: var(--ons-color-input-border);
|
|
13
13
|
border-radius: 50%;
|
|
14
14
|
border-width: 6px;
|
|
15
15
|
height: 0;
|
|
@@ -35,7 +35,9 @@
|
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
&:focus {
|
|
38
|
-
box-shadow: inset 0 0 0 3px
|
|
38
|
+
box-shadow: inset 0 0 0 3px var(--ons-color-input-bg),
|
|
39
|
+
0 0 0 $input-border-width var(--ons-color-input-border),
|
|
40
|
+
0 0 0 4px var(--ons-color-focus);
|
|
39
41
|
}
|
|
40
42
|
}
|
|
41
43
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
.ons-related-content {
|
|
2
2
|
@extend .ons-u-mt-m;
|
|
3
3
|
|
|
4
|
-
border-top: 5px solid
|
|
4
|
+
border-top: 5px solid var(--ons-color-branded);
|
|
5
5
|
padding-top: 1rem;
|
|
6
6
|
|
|
7
7
|
&__section {
|
|
8
8
|
& + & {
|
|
9
|
-
border-top: 1px solid
|
|
9
|
+
border-top: 1px solid var(--ons-color-grey-75);
|
|
10
10
|
margin: 2rem 0 0;
|
|
11
11
|
padding: 2em 0 0;
|
|
12
12
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.ons-relationships {
|
|
2
2
|
&__playback {
|
|
3
|
-
border-bottom: 1px solid
|
|
4
|
-
border-top: 1px solid
|
|
3
|
+
border-bottom: 1px solid var(--ons-color-input-border);
|
|
4
|
+
border-top: 1px solid var(--ons-color-input-border);
|
|
5
5
|
margin: 2rem 0 0;
|
|
6
6
|
padding: 1rem 0;
|
|
7
7
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{% macro onsSectionNavigation(params) %}
|
|
2
|
-
<nav class="ons-section-nav{% if params.variants == 'vertical' %} ons-section-nav--vertical{% endif %}" id="{{ params.id }}" aria-label="{{ params.ariaLabel | default("Section menu") }}">
|
|
2
|
+
<nav class="ons-section-nav{% if params.variants == 'vertical' %} ons-section-nav--vertical{% endif %}"{% if params.id %} id="{{ params.id }}"{% endif %} aria-label="{{ params.ariaLabel | default("Section menu") }}">
|
|
3
3
|
<ul class="ons-section-nav__list">
|
|
4
4
|
{% for item in (params.itemsList if params.itemsList is iterable else params.itemsList.items()) %}
|
|
5
5
|
{% if (params.currentPath and item.url == params.currentPath) or (params.tabQuery and params.tabQuery == item.title|lower) %}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.ons-section-nav {
|
|
2
2
|
&:not(&--vertical) {
|
|
3
|
-
border-bottom: 1px solid
|
|
3
|
+
border-bottom: 1px solid var(--ons-color-borders);
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
&__list {
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
&__link {
|
|
13
13
|
text-decoration: none;
|
|
14
14
|
&:hover {
|
|
15
|
-
color:
|
|
16
|
-
text-decoration: underline solid
|
|
15
|
+
color: var(--ons-color-text-link-hover);
|
|
16
|
+
text-decoration: underline solid var(--ons-color-text-link-hover) 2px;
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
|
|
@@ -21,12 +21,12 @@
|
|
|
21
21
|
font-size: 1rem;
|
|
22
22
|
padding: 0;
|
|
23
23
|
&--active {
|
|
24
|
-
border-left: 4px solid
|
|
24
|
+
border-left: 4px solid var(--ons-color-text-link-active);
|
|
25
25
|
font-weight: $font-weight-bold;
|
|
26
26
|
margin-left: -18px;
|
|
27
27
|
padding-left: 14px;
|
|
28
28
|
a {
|
|
29
|
-
color:
|
|
29
|
+
color: var(--ons-color-text-link-active);
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
& & {
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
|
|
37
37
|
&__sub-items {
|
|
38
38
|
a {
|
|
39
|
-
color:
|
|
39
|
+
color: var(--ons-color-text-link);
|
|
40
40
|
font-weight: $font-weight-regular;
|
|
41
41
|
}
|
|
42
42
|
}
|
|
@@ -50,11 +50,11 @@
|
|
|
50
50
|
text-align: center;
|
|
51
51
|
&--active,
|
|
52
52
|
&:hover {
|
|
53
|
-
border-color:
|
|
53
|
+
border-color: var(--ons-color-text-link-active);
|
|
54
54
|
margin: 0 1rem 0 0;
|
|
55
55
|
padding: 0;
|
|
56
56
|
a {
|
|
57
|
-
color:
|
|
57
|
+
color: var(--ons-color-text-link-active);
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
}
|
|
@@ -13,11 +13,11 @@
|
|
|
13
13
|
width: 1px;
|
|
14
14
|
|
|
15
15
|
&:focus {
|
|
16
|
-
background-color:
|
|
16
|
+
background-color: var(--ons-color-focus);
|
|
17
17
|
box-shadow: 0;
|
|
18
18
|
clip: auto;
|
|
19
19
|
clip-path: none;
|
|
20
|
-
color:
|
|
20
|
+
color: var(--ons-color-text-link-focus);
|
|
21
21
|
height: auto;
|
|
22
22
|
margin: inherit;
|
|
23
23
|
max-height: 20em;
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
overflow: visible;
|
|
27
27
|
padding: 1rem;
|
|
28
28
|
position: static;
|
|
29
|
-
text-decoration: underline solid
|
|
29
|
+
text-decoration: underline solid var(--ons-color-text-link-focus) 2px;
|
|
30
30
|
white-space: inherit;
|
|
31
31
|
width: auto;
|
|
32
32
|
}
|
|
@@ -26,18 +26,18 @@
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
&.ons-status--success::before {
|
|
29
|
-
@include status-dot(
|
|
29
|
+
@include status-dot(var(--ons-color-success-vibrant));
|
|
30
30
|
}
|
|
31
31
|
&.ons-status--pending::before {
|
|
32
|
-
@include status-dot(
|
|
32
|
+
@include status-dot(var(--ons-color-pending-vibrant));
|
|
33
33
|
}
|
|
34
34
|
&.ons-status--error::before {
|
|
35
|
-
@include status-dot(
|
|
35
|
+
@include status-dot(var(--ons-color-errors-vibrant));
|
|
36
36
|
}
|
|
37
37
|
&.ons-status--dead::before {
|
|
38
|
-
@include status-dot(
|
|
38
|
+
@include status-dot(var(--ons-color-dead));
|
|
39
39
|
}
|
|
40
40
|
&.ons-status--info::before {
|
|
41
|
-
@include status-dot(
|
|
41
|
+
@include status-dot(var(--ons-color-info-vibrant));
|
|
42
42
|
}
|
|
43
43
|
}
|
|
@@ -28,7 +28,7 @@ $hub-row-spacing: 1.3rem;
|
|
|
28
28
|
|
|
29
29
|
&:not(:last-child),
|
|
30
30
|
&:nth-of-type(1) {
|
|
31
|
-
border-bottom: 1px solid
|
|
31
|
+
border-bottom: 1px solid var(--ons-color-borders);
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
&--total {
|
|
@@ -43,8 +43,8 @@ $hub-row-spacing: 1.3rem;
|
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
&--error {
|
|
46
|
-
background:
|
|
47
|
-
border-left: 8px solid
|
|
46
|
+
background: var(--ons-color-errors-tint);
|
|
47
|
+
border-left: 8px solid var(--ons-color-errors);
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
|
|
@@ -81,7 +81,7 @@ $hub-row-spacing: 1.3rem;
|
|
|
81
81
|
position: absolute;
|
|
82
82
|
text-align: center;
|
|
83
83
|
&--check .ons-svg-icon {
|
|
84
|
-
fill:
|
|
84
|
+
fill: var(--ons-color-leaf-green) !important;
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
87
|
}
|
|
@@ -91,7 +91,7 @@ $hub-row-spacing: 1.3rem;
|
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
&__spacer {
|
|
94
|
-
background:
|
|
94
|
+
background: var(--ons-color-black);
|
|
95
95
|
display: inline-block;
|
|
96
96
|
height: 1rem;
|
|
97
97
|
margin: 0 0.25rem;
|
|
@@ -108,7 +108,7 @@ $hub-row-spacing: 1.3rem;
|
|
|
108
108
|
|
|
109
109
|
&__item--error & {
|
|
110
110
|
&__row-title--error {
|
|
111
|
-
color:
|
|
111
|
+
color: var(--ons-color-errors);
|
|
112
112
|
font-weight: 700;
|
|
113
113
|
padding: $summary-row-spacing $summary-col-spacing;
|
|
114
114
|
}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
width: 100%;
|
|
6
6
|
|
|
7
7
|
&__head {
|
|
8
|
-
border-bottom: 2px solid
|
|
8
|
+
border-bottom: 2px solid var(--ons-color-grey-75);
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
&__caption {
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
&__cell {
|
|
18
18
|
@include nth-element(1, 0);
|
|
19
19
|
|
|
20
|
-
border-bottom: 2px solid
|
|
20
|
+
border-bottom: 2px solid var(--ons-color-grey-75);
|
|
21
21
|
overflow: hidden;
|
|
22
22
|
padding: 0.5rem 0 0.5rem 1rem;
|
|
23
23
|
text-align: left;
|
|
@@ -29,11 +29,11 @@
|
|
|
29
29
|
|
|
30
30
|
&__cell,
|
|
31
31
|
&__header--row {
|
|
32
|
-
border-bottom: 1px solid
|
|
32
|
+
border-bottom: 1px solid var(--ons-color-borders);
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
&__row--highlight {
|
|
36
|
-
background:
|
|
36
|
+
background: var(--ons-color-highlight);
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
&:not(.ons-table--responsive) .ons-table__body .ons-table__row:last-child {
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
|
|
46
46
|
&__foot .ons-table__cell {
|
|
47
47
|
border-bottom: 0;
|
|
48
|
-
border-top: 1px solid
|
|
48
|
+
border-top: 1px solid var(--ons-color-borders);
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
&--compact {
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
|
|
59
59
|
&--row-hover {
|
|
60
60
|
.ons-table__body .ons-table__row:hover {
|
|
61
|
-
background:
|
|
61
|
+
background: var(--ons-color-highlight);
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
.ons-table__body .ons-table__row {
|
|
76
|
-
border-bottom: 2px solid
|
|
76
|
+
border-bottom: 2px solid var(--ons-color-grey-75);
|
|
77
77
|
display: block;
|
|
78
78
|
margin-bottom: 1rem;
|
|
79
79
|
}
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
height: 7px;
|
|
102
102
|
}
|
|
103
103
|
::-webkit-scrollbar-thumb {
|
|
104
|
-
background:
|
|
104
|
+
background: var(--ons-color-grey-75);
|
|
105
105
|
border-radius: 20px;
|
|
106
106
|
}
|
|
107
107
|
&--on {
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
overflow-x: scroll;
|
|
116
116
|
width: 100%;
|
|
117
117
|
&:focus {
|
|
118
|
-
box-shadow: 0 0 0 3px
|
|
118
|
+
box-shadow: 0 0 0 3px var(--ons-color-page-light), 0 0 0 5px var(--ons-color-text-link-focus), 0 0 0 8px var(--ons-color-focus);
|
|
119
119
|
outline: 3px solid transparent; // Add transparent outline because Windows High Contrast Mode doesn't show box-shadows
|
|
120
120
|
outline-offset: 1px;
|
|
121
121
|
}
|
|
@@ -157,10 +157,10 @@
|
|
|
157
157
|
[aria-sort='descending'].ons-table__header {
|
|
158
158
|
.ons-svg-icon {
|
|
159
159
|
.ons-topTriangle {
|
|
160
|
-
fill:
|
|
160
|
+
fill: var(--ons-color-grey-35);
|
|
161
161
|
}
|
|
162
162
|
.ons-bottomTriangle {
|
|
163
|
-
fill:
|
|
163
|
+
fill: var(--ons-color-text);
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
166
|
.ons-table__sort-button:focus {
|
|
@@ -175,10 +175,10 @@
|
|
|
175
175
|
[aria-sort='ascending'].ons-table__header {
|
|
176
176
|
.ons-svg-icon {
|
|
177
177
|
.ons-topTriangle {
|
|
178
|
-
fill:
|
|
178
|
+
fill: var(--ons-color-text);
|
|
179
179
|
}
|
|
180
180
|
.ons-bottomTriangle {
|
|
181
|
-
fill:
|
|
181
|
+
fill: var(--ons-color-grey-35);
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
184
|
.ons-table__sort-button:focus {
|
|
@@ -195,7 +195,7 @@
|
|
|
195
195
|
background-color: transparent;
|
|
196
196
|
border: 0;
|
|
197
197
|
box-shadow: none;
|
|
198
|
-
color:
|
|
198
|
+
color: var(--ons-color-text-link);
|
|
199
199
|
display: inline-block;
|
|
200
200
|
font-family: $font-sans;
|
|
201
201
|
font-weight: 700;
|
|
@@ -206,13 +206,13 @@
|
|
|
206
206
|
white-space: nowrap;
|
|
207
207
|
|
|
208
208
|
&:hover {
|
|
209
|
-
color:
|
|
209
|
+
color: var(--ons-color-text-link-hover);
|
|
210
210
|
cursor: pointer;
|
|
211
|
-
text-decoration: underline solid
|
|
211
|
+
text-decoration: underline solid var(--ons-color-text-link-hover) 2px;
|
|
212
212
|
}
|
|
213
213
|
|
|
214
214
|
.ons-svg-icon {
|
|
215
|
-
fill:
|
|
215
|
+
fill: var(--ons-color-grey-75);
|
|
216
216
|
height: 0.8rem;
|
|
217
217
|
padding-bottom: 0.1rem;
|
|
218
218
|
width: 0.8rem;
|
|
@@ -221,7 +221,7 @@
|
|
|
221
221
|
&:focus {
|
|
222
222
|
@extend %a-focus;
|
|
223
223
|
.ons-svg-icon {
|
|
224
|
-
fill:
|
|
224
|
+
fill: var(--ons-color-black);
|
|
225
225
|
}
|
|
226
226
|
}
|
|
227
227
|
}
|