aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/molecules
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/molecules')
-rw-r--r--src/components/molecules/forms/switch/switch.module.scss39
1 files changed, 19 insertions, 20 deletions
diff --git a/src/components/molecules/forms/switch/switch.module.scss b/src/components/molecules/forms/switch/switch.module.scss
index 44244e7..869e77c 100644
--- a/src/components/molecules/forms/switch/switch.module.scss
+++ b/src/components/molecules/forms/switch/switch.module.scss
@@ -6,8 +6,8 @@
}
.switch {
- display: inline-flex;
- flex-flow: row wrap;
+ display: grid;
+ grid-template-columns: repeat(2, minmax(50px, 1fr));
align-items: center;
width: fit-content;
background: var(--color-shadow-light);
@@ -24,31 +24,30 @@
.label {
display: flex;
- align-items: center;
- min-height: 5ex;
- padding: fun.convert-px(6) var(--spacing-2xs);
+ place-items: center;
+ place-content: center;
+ min-height: fun.convert-px(44);
+ padding: fun.convert-px(5) fun.convert-px(12);
border-top: fun.convert-px(2) solid var(--color-border);
border-bottom: fun.convert-px(2) solid var(--color-border);
transition: all 0.15s linear 0s;
-
- @include mix.pointer("fine") {
- min-height: 3ex;
- }
}
-.item:first-of-type {
- .label {
- border-left: fun.convert-px(2) solid var(--color-border);
- border-top-left-radius: fun.convert-px(32);
- border-bottom-left-radius: fun.convert-px(32);
+.item {
+ &:first-of-type {
+ .label {
+ border-left: fun.convert-px(2) solid var(--color-border);
+ border-top-left-radius: fun.convert-px(32);
+ border-bottom-left-radius: fun.convert-px(32);
+ }
}
-}
-.item:last-of-type {
- .label {
- border-right: fun.convert-px(2) solid var(--color-border);
- border-top-right-radius: fun.convert-px(32);
- border-bottom-right-radius: fun.convert-px(32);
+ &:last-of-type {
+ .label {
+ border-right: fun.convert-px(2) solid var(--color-border);
+ border-top-right-radius: fun.convert-px(32);
+ border-bottom-right-radius: fun.convert-px(32);
+ }
}
}