summaryrefslogtreecommitdiffstats
path: root/src/components/Form/Form.module.scss
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-01-17 22:26:16 +0100
committerArmand Philippot <git@armandphilippot.com>2022-01-17 22:54:17 +0100
commita6233863da4203bec781e817963ac3733279cab5 (patch)
treeb075753c4336b737d41c178451551c40c1016951 /src/components/Form/Form.module.scss
parent68138f0dcd8b3db2c23b31a20508726f245b5ba5 (diff)
refactor(settings): make toggle reusable
Toggle will be used for others settings so I extract the functionnality from ThemeToggle.
Diffstat (limited to 'src/components/Form/Form.module.scss')
-rw-r--r--src/components/Form/Form.module.scss8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/components/Form/Form.module.scss b/src/components/Form/Form.module.scss
index e464293..e805c52 100644
--- a/src/components/Form/Form.module.scss
+++ b/src/components/Form/Form.module.scss
@@ -4,9 +4,15 @@
width: 100%;
&--search,
- &--theme {
+ &--toggle {
display: flex;
flex-flow: row nowrap;
+ align-items: center;
+ }
+
+ &--toggle {
+ position: relative;
+ margin: var(--spacing-sm) 0;
}
&--centered {