diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-05-31 19:40:23 +0200 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-06-01 22:32:09 +0200 |
| commit | 8320b1d39ea6402c32e907dbb35082efc6af9f5a (patch) | |
| tree | b5ee9586a4ec91aa15c92dcb513b551716fd4416 /src/components/organisms/forms/settings-form.module.scss | |
| parent | 994ad1bec193b2d1a6e0d38d6ef3f3d2bd66c3ea (diff) | |
chore: replace the toggle component
Diffstat (limited to 'src/components/organisms/forms/settings-form.module.scss')
| -rw-r--r-- | src/components/organisms/forms/settings-form.module.scss | 69 |
1 files changed, 60 insertions, 9 deletions
diff --git a/src/components/organisms/forms/settings-form.module.scss b/src/components/organisms/forms/settings-form.module.scss index a05c60c..6174304 100644 --- a/src/components/organisms/forms/settings-form.module.scss +++ b/src/components/organisms/forms/settings-form.module.scss @@ -1,26 +1,77 @@ @use "@styles/abstracts/mixins" as mix; -.label { - margin-right: auto; -} +.wrapper { + display: flex; + flex-flow: row wrap; + align-items: flex-start; + align-content: flex-start; -.setting, -.label--select { @include mix.media("screen") { - @include mix.dimensions(null, "2xs") { + @include mix.dimensions(null, "2xs", "height") { + gap: var(--spacing-md); font-size: var(--font-size-sm); } + } - @include mix.dimensions(null, "2xs", "height") { - font-size: var(--font-size-sm); + .label { + @include mix.media("screen") { + @include mix.dimensions(null, "2xs", "height") { + font-size: var(--font-size-sm); + + &:not(.label--select) { + float: none; + margin: 0 auto; + } + } + } + + &.label--select { + @include mix.media("screen") { + @include mix.dimensions("2xs", null, "height") { + margin: 0 auto 0 0; + } + } + } + } + + .tooltip { + @include mix.media("screen") { + @include mix.dimensions(null, "2xs") { + font-size: var(--font-size-sm); + } } } } .items { + margin: var(--spacing-2xs) 0; + + @include mix.media("screen") { + @include mix.dimensions(null, "2xs", "height") { + display: flex; + flex-flow: column wrap; + width: fit-content; + + &:last-of-type { + flex: 0 0 100%; + margin: 0; + } + } + } +} + +.setting { + &--select { + flex: 0 0 100%; + } +} + +.group { + margin-left: auto; + @include mix.media("screen") { @include mix.dimensions(null, "2xs", "height") { - margin: var(--spacing-2xs) 0; + margin: auto; } } } |
