@geoffcox/sterling-svelte-themes 2.0.7 → 2.0.8
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 +7 -1
- package/css/sterling/Checkbox.base.css +19 -0
- package/css/sterling/Checkbox.button.css +69 -0
- package/css/sterling/Checkbox.css +1 -1
- package/css/sterling/Radio.base.css +19 -0
- package/css/sterling/Radio.button.css +67 -0
- package/css/sterling/Radio.css +1 -1
- package/package.json +1 -1
- package/css/sterling/Checkbox.disabled.css +0 -18
- package/css/sterling/Radio.disabled.css +0 -18
package/README.md
CHANGED
|
@@ -22,9 +22,15 @@ https://github.com/GeoffCox/sterling-svelte-themes
|
|
|
22
22
|
|
|
23
23
|
## Change Log
|
|
24
24
|
|
|
25
|
+
### 2.0.8
|
|
26
|
+
|
|
27
|
+
- Added styles for checkbox button variant
|
|
28
|
+
- Added styles for radio button variant
|
|
29
|
+
- Cleaned up disabled styles for checkbox and radio
|
|
30
|
+
|
|
25
31
|
### 2.0.7
|
|
26
32
|
|
|
27
|
-
-
|
|
33
|
+
- Added styles for new Splitter component
|
|
28
34
|
|
|
29
35
|
### 2.0.6
|
|
30
36
|
|
|
@@ -115,6 +115,25 @@ The checkmark is a rotated L centered in the box.
|
|
|
115
115
|
font: inherit;
|
|
116
116
|
}
|
|
117
117
|
|
|
118
|
+
.sterling-checkbox.disabled,
|
|
119
|
+
.sterling-checkbox.disabled input,
|
|
120
|
+
.sterling-checkbox.disabled > label {
|
|
121
|
+
cursor: not-allowed;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.sterling-checkbox.disabled .indicator {
|
|
125
|
+
background-color: var(--stsv-input__background-color--disabled);
|
|
126
|
+
border-color: var(--stsv-input__border-color--disabled);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.sterling-checkbox.disabled .indicator::after {
|
|
130
|
+
border-color: var(--stsv-input__color--disabled);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.sterling-checkbox.disabled > label {
|
|
134
|
+
color: var(--stsv-common__color--disabled);
|
|
135
|
+
}
|
|
136
|
+
|
|
118
137
|
@media (prefers-reduced-motion) {
|
|
119
138
|
.sterling-checkbox .indicator,
|
|
120
139
|
.sterling-checkbox .indicator::after,
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
.sterling-checkbox.button {
|
|
2
|
+
display: grid;
|
|
3
|
+
grid-template-columns: 1fr;
|
|
4
|
+
grid-template-rows: 1fr;
|
|
5
|
+
justify-content: center;
|
|
6
|
+
justify-items: center;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.sterling-checkbox.button:not(.disabled):hover {
|
|
10
|
+
background-color: var(--stsv-button__background-color--hover);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.sterling-checkbox.button:not(.disabled):not(.checked):active {
|
|
14
|
+
background-color: var(--stsv-button__background-color--active);
|
|
15
|
+
border-color: transparent;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.sterling-checkbox.button:not(.disabled).checked {
|
|
19
|
+
background-color: var(--stsv-input__background-color--selected);
|
|
20
|
+
border-color: transparent;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.sterling-checkbox.button.using-keyboard:focus-within {
|
|
24
|
+
border-color: var(--stsv-button__border-color--focus);
|
|
25
|
+
outline-color: var(--stsv-common__outline-color);
|
|
26
|
+
outline-offset: 0;
|
|
27
|
+
outline-style: solid;
|
|
28
|
+
outline-width: 2px;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.sterling-checkbox.button .container,
|
|
32
|
+
.sterling-radio.button label {
|
|
33
|
+
grid-row: 1 / span 1;
|
|
34
|
+
grid-column: 1 / span 1;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.sterling-checkbox.button .container {
|
|
38
|
+
justify-self: stretch;
|
|
39
|
+
align-self: stretch;
|
|
40
|
+
margin-right: unset;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.sterling-checkbox.button input {
|
|
44
|
+
appearance: initial;
|
|
45
|
+
display: block;
|
|
46
|
+
box-sizing: border-box;
|
|
47
|
+
opacity: 0;
|
|
48
|
+
width:100%;
|
|
49
|
+
height: 100%;
|
|
50
|
+
position: relative;
|
|
51
|
+
justify-self: stretch;
|
|
52
|
+
align-self: stretch;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.sterling-checkbox.button .indicator {
|
|
56
|
+
display: none;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
.sterling-checkbox.button.disabled {
|
|
61
|
+
background-color: var(--stsv-input__background-color--disabled);
|
|
62
|
+
border-color: transparent;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.sterling-radio.button.disabled > label {
|
|
66
|
+
color: var(--stsv-common__color--disabled);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
@import url('./Checkbox.base.css');
|
|
2
|
-
@import url('./Checkbox.
|
|
2
|
+
@import url('./Checkbox.button.css');
|
|
@@ -100,6 +100,25 @@
|
|
|
100
100
|
font: inherit;
|
|
101
101
|
}
|
|
102
102
|
|
|
103
|
+
.sterling-radio.disabled,
|
|
104
|
+
.sterling-radio.disabled input,
|
|
105
|
+
.sterling-radio.disabled > label {
|
|
106
|
+
cursor: not-allowed;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.sterling-radio.disabled .indicator {
|
|
110
|
+
background-color: var(--stsv-input__background-color--disabled);
|
|
111
|
+
border-color: var(--stsv-input__border-color--disabled);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.sterling-radio.disabled .indicator::after {
|
|
115
|
+
border-color: var(--stsv-input__color--disabled);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.sterling-radio.disabled > label {
|
|
119
|
+
color: var(--stsv-common__color--disabled);
|
|
120
|
+
}
|
|
121
|
+
|
|
103
122
|
@media (prefers-reduced-motion) {
|
|
104
123
|
.sterling-radio .indicator,
|
|
105
124
|
.sterling-radio .indicator::after,
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
.sterling-radio.button {
|
|
2
|
+
display: grid;
|
|
3
|
+
grid-template-columns: 1fr;
|
|
4
|
+
grid-template-rows: 1fr;
|
|
5
|
+
justify-content: center;
|
|
6
|
+
justify-items: center;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.sterling-radio.button:not(.disabled):hover {
|
|
10
|
+
background-color: var(--stsv-button__background-color--hover);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.sterling-radio.button:not(.disabled):not(.checked):active {
|
|
14
|
+
background-color: var(--stsv-button__background-color--active);
|
|
15
|
+
border-color: transparent;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.sterling-radio.button.checked {
|
|
19
|
+
background-color: var(--stsv-input__background-color--selected);
|
|
20
|
+
border-color: transparent;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.sterling-radio.button.using-keyboard:focus-within {
|
|
24
|
+
border-color: var(--stsv-button__border-color--focus);
|
|
25
|
+
outline-color: var(--stsv-common__outline-color);
|
|
26
|
+
outline-offset: 0;
|
|
27
|
+
outline-style: solid;
|
|
28
|
+
outline-width: 2px;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.sterling-radio.button .container,
|
|
32
|
+
.sterling-radio.button label {
|
|
33
|
+
grid-row: 1 / span 1;
|
|
34
|
+
grid-column: 1 / span 1;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.sterling-radio.button .container {
|
|
38
|
+
justify-self: stretch;
|
|
39
|
+
align-self: stretch;
|
|
40
|
+
margin-right: unset;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.sterling-radio.button input {
|
|
44
|
+
appearance: initial;
|
|
45
|
+
display: block;
|
|
46
|
+
box-sizing: border-box;
|
|
47
|
+
opacity: 0;
|
|
48
|
+
width:100%;
|
|
49
|
+
height: 100%;
|
|
50
|
+
position: relative;
|
|
51
|
+
justify-self: stretch;
|
|
52
|
+
align-self: stretch;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.sterling-radio.button .indicator {
|
|
56
|
+
display: none;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
.sterling-radio.button.disabled {
|
|
61
|
+
background-color: var(--stsv-input__background-color--disabled);
|
|
62
|
+
border-color: transparent;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.sterling-radio.button.disabled > label {
|
|
66
|
+
color: var(--stsv-common__color--disabled);
|
|
67
|
+
}
|
package/css/sterling/Radio.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
@import url('./Radio.base.css');
|
|
2
|
-
@import url('./Radio.
|
|
2
|
+
@import url('./Radio.button.css');
|
package/package.json
CHANGED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
.sterling-checkbox.disabled,
|
|
2
|
-
.sterling-checkbox.disabled input,
|
|
3
|
-
.sterling-checkbox.disabled > label {
|
|
4
|
-
cursor: not-allowed;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.sterling-checkbox.disabled .indicator {
|
|
8
|
-
background-color: var(--stsv-input__background-color--disabled);
|
|
9
|
-
border-color: var(--stsv-input__border-color--disabled);
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.sterling-checkbox.disabled .indicator::after {
|
|
13
|
-
border-color: var(--stsv-input__color--disabled);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.sterling-checkbox.disabled > label {
|
|
17
|
-
color: var(--stsv-common__color--disabled);
|
|
18
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
.sterling-radio.disabled,
|
|
2
|
-
.sterling-radio.disabled input,
|
|
3
|
-
.sterling-radio.disabled > label {
|
|
4
|
-
cursor: not-allowed;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.sterling-radio.disabled .indicator {
|
|
8
|
-
background-color: var(--stsv-input__background-color--disabled);
|
|
9
|
-
border-color: var(--stsv-input__border-color--disabled);
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.sterling-radio.disabled .indicator::after {
|
|
13
|
-
border-color: var(--stsv-input__color--disabled);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.sterling-radio.disabled > label {
|
|
17
|
-
color: var(--stsv-common__color--disabled);
|
|
18
|
-
}
|