@likable-hair/svelte 3.2.2 → 3.2.3
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.
|
@@ -25,77 +25,77 @@ export let name, value, id = void 0, checked = false, label = void 0, disabled =
|
|
|
25
25
|
{/if}
|
|
26
26
|
|
|
27
27
|
<style>
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
28
|
+
@supports (-webkit-appearance: none) or (-moz-appearance: none) {
|
|
29
|
+
input[type="radio"] {
|
|
30
|
+
-webkit-appearance: none;
|
|
31
|
+
-moz-appearance: none;
|
|
32
|
+
height: 21px;
|
|
33
|
+
width: 21px;
|
|
34
|
+
outline: none;
|
|
35
|
+
display: inline-block;
|
|
36
|
+
vertical-align: top;
|
|
37
|
+
position: relative;
|
|
38
|
+
margin: 0;
|
|
39
|
+
cursor: pointer;
|
|
40
|
+
border-radius: 50%;
|
|
41
|
+
border: 1px solid var(--bc, var(--radio-button-border-color, var(--radio-button-default-border-color)));
|
|
42
|
+
background: var(--b, var(--radio-button-background-color, var(--radio-button-default-background-color)));
|
|
43
|
+
transition: background 0.3s, border-color 0.3s, box-shadow 0.2s;
|
|
44
|
+
}
|
|
45
45
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
46
|
+
input[type="radio"]:after {
|
|
47
|
+
content: "";
|
|
48
|
+
display: block;
|
|
49
|
+
position: absolute;
|
|
50
|
+
width: 19px;
|
|
51
|
+
height: 19px;
|
|
52
|
+
border-radius: 50%;
|
|
53
|
+
background: var(--radio-button-active-inner-color, var(--radio-button-default-active-inner-color));
|
|
54
|
+
opacity: var(--o, 0);
|
|
55
|
+
transform: scale(var(--s, 0.7));
|
|
56
|
+
transition: transform 0.3s ease, opacity 0.2s;
|
|
57
|
+
}
|
|
58
58
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
59
|
+
input[type="radio"]:checked:not(:disabled) {
|
|
60
|
+
--b: var(--radio-button-active-color, var(--radio-button-default-active-color));
|
|
61
|
+
--bc: var(--radio-button-active-color, var(--radio-button-default-active-color));
|
|
62
|
+
--o: 1;
|
|
63
|
+
--s: 0.5;
|
|
64
|
+
}
|
|
65
65
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
66
|
+
input[type="radio"]:disabled {
|
|
67
|
+
--b: var(--radio-button-disabled-color, var(--radio-button-default-disabled-color));
|
|
68
|
+
--bc: var(--radio-button-disabled-active-color, var(--radio-button-default-disabled-active-color));
|
|
69
|
+
cursor: not-allowed;
|
|
70
|
+
opacity: 0.9;
|
|
71
|
+
}
|
|
72
72
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
73
|
+
input[type="radio"]:disabled:checked {
|
|
74
|
+
--b: var(--radio-button-disabled-active-color, var(--radio-button-default-disabled-active-color));
|
|
75
|
+
--bc: var(--radio-button-border-color, var(--radio-button-default-border-color));
|
|
76
|
+
--o: 1;
|
|
77
|
+
--s: 0.5;
|
|
78
|
+
}
|
|
79
79
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
80
|
+
input[type="radio"]:hover:not(:checked):not(:disabled) {
|
|
81
|
+
--bc: var(--radio-button-border-hover-color, var(--radio-button-default-border-hover-color));
|
|
82
|
+
}
|
|
83
83
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
84
|
+
input[type="radio"]:focus {
|
|
85
|
+
box-shadow: 0 0 0 var(--radio-button-focus-shadow, var(--radio-button-default-focus-shadow));
|
|
86
|
+
}
|
|
87
87
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
88
|
+
input[type="radio"] + label {
|
|
89
|
+
font-size: 14px;
|
|
90
|
+
line-height: 21px;
|
|
91
|
+
display: inline-block;
|
|
92
|
+
vertical-align: top;
|
|
93
|
+
cursor: pointer;
|
|
94
|
+
margin-left: 4px;
|
|
95
|
+
}
|
|
96
96
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
}
|
|
97
|
+
input[type="radio"]:disabled + label {
|
|
98
|
+
cursor: not-allowed;
|
|
100
99
|
}
|
|
101
|
-
|
|
100
|
+
}
|
|
101
|
+
</style>
|
|
@@ -39,7 +39,6 @@ onMount(() => {
|
|
|
39
39
|
if (!!th) {
|
|
40
40
|
let { paddingLeft, paddingRight } = getComputedStyle(th);
|
|
41
41
|
let width = resizedColumnSizeWithPadding[head.value] - parseFloat(paddingLeft) - parseFloat(paddingRight);
|
|
42
|
-
console.log(resizedColumnSizeWithPadding[head.value], paddingLeft, paddingRight, width);
|
|
43
42
|
th.style.width = `${width}px`;
|
|
44
43
|
}
|
|
45
44
|
}
|