|
@@ -271,6 +271,25 @@ body.text-sm {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+// custom .form-control styles
|
|
|
+.form-control,
|
|
|
+.custom-select {
|
|
|
+ &.form-control-border {
|
|
|
+ border-top: 0;
|
|
|
+ border-left: 0;
|
|
|
+ border-right: 0;
|
|
|
+ border-radius: 0;
|
|
|
+ box-shadow: inherit;
|
|
|
+
|
|
|
+ &.border-width-2 {
|
|
|
+ border-bottom-width: 2px;
|
|
|
+ }
|
|
|
+ &.border-width-3 {
|
|
|
+ border-bottom-width: 3px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
// custom switch color variations
|
|
|
.custom-switch {
|
|
|
@each $name, $color in $theme-colors {
|
|
@@ -292,3 +311,91 @@ body.text-sm {
|
|
|
@include custom-range-variant($name, $color);
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+// custom control input variations
|
|
|
+@each $name, $color in $theme-colors {
|
|
|
+ @include custom-control-input-variant($name, $color);
|
|
|
+}
|
|
|
+
|
|
|
+@each $name, $color in $colors {
|
|
|
+ @include custom-control-input-variant($name, $color);
|
|
|
+}
|
|
|
+
|
|
|
+.custom-control-input-outline {
|
|
|
+ ~ .custom-control-label::before {
|
|
|
+ background-color: transparent !important;
|
|
|
+ box-shadow: none;
|
|
|
+ }
|
|
|
+ &:checked ~ .custom-control-label::before {
|
|
|
+ @include gradient-bg(transparent);
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+.dark-mode {
|
|
|
+ .form-control,
|
|
|
+ .custom-select,
|
|
|
+ .custom-file-label,
|
|
|
+ .custom-file-label::after,
|
|
|
+ .custom-control-label::before,
|
|
|
+ .input-group-text {
|
|
|
+ background-color: $dark;
|
|
|
+ color: $white;
|
|
|
+ }
|
|
|
+ .form-control:not(.form-control-navbar):not(.is-invalid):not(:focus) {
|
|
|
+ border-color: $gray-600;
|
|
|
+ }
|
|
|
+ select {
|
|
|
+ background-color: $dark;
|
|
|
+ color: $white;
|
|
|
+ border-color: $gray-600;
|
|
|
+ }
|
|
|
+
|
|
|
+ .input-group-text {
|
|
|
+ border-color: $gray-600;
|
|
|
+ }
|
|
|
+
|
|
|
+ .custom-control-input:disabled ~ .custom-control-label::before,
|
|
|
+ .custom-control-input[disabled] ~ .custom-control-label::before {
|
|
|
+ background-color: lighten($dark, 5%);
|
|
|
+ border-color: $gray-600;
|
|
|
+ color: $white;
|
|
|
+ }
|
|
|
+
|
|
|
+ .custom-range {
|
|
|
+ &::-webkit-slider-runnable-track {
|
|
|
+ background-color: lighten($dark, 7.5%);
|
|
|
+ }
|
|
|
+ &::-moz-range-track {
|
|
|
+ background-color: lighten($dark, 7.5%);
|
|
|
+ }
|
|
|
+ &::-ms-track {
|
|
|
+ background-color: lighten($dark, 7.5%);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .navbar-dark {
|
|
|
+ .btn-navbar,
|
|
|
+ .form-control-navbar {
|
|
|
+ background-color: $dark;
|
|
|
+ border: $input-border-width solid $gray-600;
|
|
|
+ }
|
|
|
+ .btn-navbar {
|
|
|
+ &:hover {
|
|
|
+ background-color: lighten($sidebar-dark-bg, 7.5%);
|
|
|
+ }
|
|
|
+ &:focus {
|
|
|
+ background-color: lighten($sidebar-dark-bg, 10%);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .form-control-navbar + .input-group-prepend,
|
|
|
+ .form-control-navbar + .input-group-append {
|
|
|
+ > .btn-navbar {
|
|
|
+ background-color: lighten($dark, 5%);
|
|
|
+ color: $white;
|
|
|
+ border: $input-border-width solid $gray-600;
|
|
|
+ border-left: none;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|