From a6233863da4203bec781e817963ac3733279cab5 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Mon, 17 Jan 2022 22:26:16 +0100 Subject: refactor(settings): make toggle reusable Toggle will be used for others settings so I extract the functionnality from ThemeToggle. --- src/components/Form/Form.module.scss | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/components/Form/Form.module.scss') 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 { -- cgit v1.2.3