diff --git a/src/scss/cdb-components/forms/dropdowns.scss b/src/scss/cdb-components/forms/dropdowns.scss new file mode 100644 index 0000000..59ab81b --- /dev/null +++ b/src/scss/cdb-components/forms/dropdowns.scss @@ -0,0 +1,117 @@ +// Dropdown styles +// ---------------------------------------------- + +/* SG +# Forms/Dropdowns + +``` +
+ +
+
+
    +
  • + + + +
  • +
  • + + + +
  • +
  • + + + +
  • +
  • + + + +
  • +
  • + + + +
  • +
+
+ +
+
    +
  • + selected +
  • +
  • + active +
  • +
  • + disabled +
  • +
  • + disabled +
  • +
+
+
+
+``` +*/ + +@import '../../cdb-variables/sizes'; +@import '../../cdb-variables/colors'; + +.CDB-DropdownContainer { + position: relative; + height: 250px; +} +.CDB-Dropdown { + height: 200px; + position: absolute; + top: 40px; + font-size: 0; +} +.CDB-Dropdown-calculations { + display: inline-block; + width: $baseSize * 11; + height: 100%; + padding: $sMargin-element; + border-right: 1px solid $cMainLine; + border-radius: 3px 0 0 3px; + background-color: $cSecondaryBackground; + box-sizing: border-box; +} +.CDB-Dropdown-calculationsElement { + font-size: $sFontSize-small; + + &:not(:last-child) { + margin-bottom: $sLineHeight-medium; + } +} +.CDB-Dropdown-options { + display: inline-block; + width: $baseSize * 20; + border-radius: 0 3px 3px 0; + background-color: $cWhite; + vertical-align: top; +} +.CDB-Dropdown-optionsElement { + padding: 12px 10px; + border-bottom: 1px solid $cMainLine; + color: $cBlue; + + &:last-child { + border-bottom: 0; + } + &:hover { + background-color: rgba(157, 224, 173, 0.2); + cursor: pointer; + } +} +.CDB-Dropdown-optionsElement.is-selected { + color: $cBlack; +} +.CDB-Dropdown-optionsElement.is-disabled { + color: $cTypo4; +}