diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-06-01 19:34:43 +0200 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-06-01 22:32:16 +0200 |
| commit | 6be20422494e3806fba3d1c5ad5c3e98bd6e67e5 (patch) | |
| tree | 7c679e54ba4bbadaf0a59bbde780f5742e3b875d /src/components/organisms/forms/settings-form.module.scss | |
| parent | 8320b1d39ea6402c32e907dbb35082efc6af9f5a (diff) | |
chore: replace the Ackee select by a toggle component
Diffstat (limited to 'src/components/organisms/forms/settings-form.module.scss')
| -rw-r--r-- | src/components/organisms/forms/settings-form.module.scss | 54 |
1 files changed, 29 insertions, 25 deletions
diff --git a/src/components/organisms/forms/settings-form.module.scss b/src/components/organisms/forms/settings-form.module.scss index 6174304..647f1b5 100644 --- a/src/components/organisms/forms/settings-form.module.scss +++ b/src/components/organisms/forms/settings-form.module.scss @@ -8,7 +8,8 @@ @include mix.media("screen") { @include mix.dimensions(null, "2xs", "height") { - gap: var(--spacing-md); + column-gap: var(--spacing-lg); + row-gap: var(--spacing-xs); font-size: var(--font-size-sm); } } @@ -16,28 +17,31 @@ .label { @include mix.media("screen") { @include mix.dimensions(null, "2xs", "height") { + margin: 0 auto; + float: none; 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; - } + @include mix.dimensions(null, "2xs") { + //font-size: var(--font-size-sm); } } } .tooltip { + top: unset; + bottom: calc(100% + var(--spacing-2xs)); + font-size: var(--font-size-sm); + transform-origin: bottom center; + @include mix.media("screen") { - @include mix.dimensions(null, "2xs") { - font-size: var(--font-size-sm); + @include mix.dimensions(null, "2xs", "height") { + width: 250%; + transform-origin: bottom left; + } + + @include mix.dimensions("sm") { + font-size: var(--font-size-md); } } } @@ -50,28 +54,28 @@ @include mix.dimensions(null, "2xs", "height") { display: flex; flex-flow: column wrap; - width: fit-content; - - &:last-of-type { - flex: 0 0 100%; - margin: 0; - } + max-width: fit-content; + margin: 0; } } } -.setting { - &--select { - flex: 0 0 100%; +.group { + margin-left: auto; + + @include mix.media("screen") { + @include mix.dimensions(null, "2xs", "height") { + margin: auto; + } } } -.group { +.fieldset__body { margin-left: auto; @include mix.media("screen") { @include mix.dimensions(null, "2xs", "height") { - margin: auto; + margin: 0 auto; } } } |
