From ff89163f588f88eb920838cfc4e3a0979fe38b83 Mon Sep 17 00:00:00 2001 From: Maria Checa Date: Fri, 19 Feb 2016 16:35:49 +0100 Subject: [PATCH] Input option markup improvements --- .../cdb-components/forms/option_input.scss | 79 ++++++++++++------- 1 file changed, 49 insertions(+), 30 deletions(-) diff --git a/src/scss/cdb-components/forms/option_input.scss b/src/scss/cdb-components/forms/option_input.scss index 4b57d49..443e0bd 100644 --- a/src/scss/cdb-components/forms/option_input.scss +++ b/src/scss/cdb-components/forms/option_input.scss @@ -5,43 +5,59 @@ # Forms/Option input ``` -
-
- 8px -
+
+
    +
  • + 8px +
  • -
    - solid -
    - -
      -
    • +
    • + solid +
    • + +
    • +
        +
      • +
      +
-
    -
  • +
      +
    • +
        +
      • +
      +
-
    -
  • -
  • -
  • -
  • -
  • -
  • +
      +
    • +
        +
      • +
      • +
      • +
      • +
      • +
      • +
      +
-
    -
  • -
  • -
  • -
  • +
      +
    • +
        +
      • +
      • +
      • +
      • +
      +
``` @@ -53,11 +69,9 @@ .CDB-OptionInput { @include display-flex(); - @include align-items(center); @include align-content(center); width: $baseSize * 20; height: $baseSize * 4; - padding: $baseSize; border: 1px solid $cMainLine; border-radius: $baseSize / 2; box-sizing: border-box; @@ -73,8 +87,15 @@ .CDB-OptionInput.is-active { border: 1px solid $cBlue; } -.CDB-OptionInput-element { +.CDB-OptionInput-container { @include display-flex(); + @include align-items(center); + @include align-content(center); + margin: 0 $baseSize; +} +.CDB-OptionInput-option { + @include display-flex(); + @include align-items(center); @include align-content(center); color: $cMainBg; font-size: $sFontSize-medium; @@ -92,9 +113,7 @@ } } } -.CDB-OptionInput--text { +.CDB-OptionInput-option.is-active > .CDB-OptionInput-optionContent { padding: 9px 0; -} -.CDB-OptionInput--text.is-active { border-bottom: 1px solid $cMainBg; }