@linzjs/lui 24.18.0 → 24.20.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.
@@ -13,7 +13,7 @@
13
13
  width: 40px;
14
14
  padding: 2px;
15
15
  background: colors.$snow;
16
- border: 1px solid colors.$sea;
16
+ border: 2px solid colors.$sea;
17
17
  border-radius: 40px;
18
18
  position: relative;
19
19
  transition: background-color 0.2s;
@@ -34,7 +34,7 @@
34
34
  background: colors.$sea;
35
35
  .lui-switch-button {
36
36
  transform: translateX(
37
- 20px
37
+ 19px
38
38
  ); // 20px + border + padding + width of switch button = 40px (width of container)
39
39
  background: colors.$snow;
40
40
  }
@@ -55,3 +55,45 @@
55
55
  }
56
56
  }
57
57
  }
58
+
59
+ .lui-switch-sm {
60
+ .lui-switch-label {
61
+ width: 24px;
62
+ padding: 1px;
63
+ border-width: 2px;
64
+ border-radius: 20px;
65
+
66
+ .lui-switch-button {
67
+ width: 7px;
68
+ height: 7px;
69
+ }
70
+ }
71
+
72
+ .lui-switch-label-checked {
73
+ .lui-switch-button {
74
+ transform: translateX(11px);
75
+ }
76
+ }
77
+
78
+ .lui-switch-checkbox:disabled {
79
+ + .lui-switch-label {
80
+ border-width: 1px;
81
+ }
82
+ }
83
+ }
84
+
85
+ .lui-switch-checkbox:disabled {
86
+ + .lui-switch-label {
87
+ background: colors.$lily;
88
+ border: 1px solid colors.$gray;
89
+ .lui-switch-button {
90
+ background: colors.$gray;
91
+ }
92
+ }
93
+ + .lui-switch-label-checked {
94
+ background: colors.$gray;
95
+ .lui-switch-button {
96
+ background: colors.$lily;
97
+ }
98
+ }
99
+ }
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "24.18.0",
2
+ "version": "24.20.0",
3
3
  "license": "MIT",
4
4
  "repository": {
5
5
  "type": "git",