diff --git a/src/scss/cdb-components/forms/color_bar.scss b/src/scss/cdb-components/forms/color_bar.scss new file mode 100644 index 0000000..1604fdd --- /dev/null +++ b/src/scss/cdb-components/forms/color_bar.scss @@ -0,0 +1,67 @@ +// Color input styles +// ---------------------------------------------- + +/* SG +# Forms/Color bar + +``` + + + + +
+ + + + + + +
+ +
+ + + + + + +
+ ``` +*/ + +@import '../../cdb-variables/sizes'; +@import '../../cdb-variables/colors'; +@import '../../cdb-utilities/mixins'; + +.CDB-ColorBarContainer { + @include display-flex(); + @include flex-direction(row); +} +.CDB-ColorBar { + width: 100%; + height: $baseSize / 2; + border: 1px solid rgba(0, 0, 0, 0.2); + + &:last-child { + margin-right: 0; + } +} +.CDB-ColorBar.CDB-ColorBar--small { + width: $baseSize * 2; +} +.CDB-ColorBar.CDB-ColorBar--med { + width: 29px; +} +.CDB-ColorBar.CDB-ColorBar--sBorderRadius { + border-radius: 2px; +} +.CDB-ColorBar.CDB-ColorBar--mBorderRadius { + border-radius: 6px; +} +.CDB-ColorBar.CDB-ColorBar--msBorderRadius { + border-radius: 6px 2px 2px 6px; +} +.CDB-ColorBar.CDB-ColorBar--smBorderRadius { + border-radius: 2px 6px 6px 2px; +} + diff --git a/src/scss/cdb-components/forms/color_input.scss b/src/scss/cdb-components/forms/option_input.scss similarity index 61% rename from src/scss/cdb-components/forms/color_input.scss rename to src/scss/cdb-components/forms/option_input.scss index 2f74051..3a99b21 100644 --- a/src/scss/cdb-components/forms/color_input.scss +++ b/src/scss/cdb-components/forms/option_input.scss @@ -2,14 +2,14 @@ // ---------------------------------------------- /* SG -# Forms/Color input +# Forms/Option input ```
-

COLOR

+
-
- +
+
@@ -20,7 +20,7 @@ @import '../../cdb-variables/colors'; @import '../../cdb-utilities/mixins'; -.CDB-ColorInput { +.CDB-OptionInput { @include display-flex(); @include align-items(center); width: $baseSize * 20; @@ -38,11 +38,6 @@ border: 1px solid $cBlue; } } - -.CDB-ColorInput-colorBar { - @include inline-block(); - width: 100%; - height: $baseSize / 2; - border: 1px solid rgba(0, 0, 0, 0.2); - border-radius: $baseSize; +.CDB-OptionInput.is-active { + border: 1px solid $cBlue; }