Skip to content

Commit

Permalink
#6372: Improve form styling
Browse files Browse the repository at this point in the history
  • Loading branch information
thatmattlove committed Jul 19, 2021
1 parent 1661d1f commit 64e6dcb
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion netbox/project-static/dist/netbox-dark.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion netbox/project-static/dist/netbox-dark.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion netbox/project-static/dist/netbox-light.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion netbox/project-static/dist/netbox-light.css.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions netbox/project-static/styles/select.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ $spacing-s: $input-padding-x;
--nbx-select-option-selected-bg: #{$gray-300};
--nbx-select-option-hover-bg: #{$blue};
--nbx-select-option-hover-color: #{$white};
--nbx-select-placeholder-color: #{$gray-500};
--nbx-select-placeholder-color: #{$gray-600};
--nbx-select-value-color: #{$white};
& body[data-netbox-color-mode='dark'] {
--nbx-select-content-bg: #{$gray-900};
Expand Down Expand Up @@ -120,7 +120,7 @@ div.form-floating div.ss-main div.ss-multi-selected {
background-color: transparent;
}
.ss-option.ss-disabled:hover {
color: unset;
color: $form-select-disabled-color;
}
}
border-bottom-left-radius: $form-select-border-radius;
Expand Down
8 changes: 6 additions & 2 deletions netbox/project-static/styles/theme-dark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,9 @@ $btn-active-box-shadow: inset 0 3px 5px rgba($white, 0.125);
$btn-link-disabled-color: $gray-300;

// Forms
$component-active-bg: $primary;
$form-text-color: $text-muted;
$input-bg: $gray-800;
$input-bg: $gray-900;
$input-disabled-bg: $gray-700;
$input-color: $gray-100;
$input-border-color: $gray-700;
Expand Down Expand Up @@ -90,7 +91,7 @@ $input-group-addon-bg: $gray-700;
$input-group-addon-border-color: $input-border-color;

$form-select-color: $input-color;
$form-select-disabled-color: $gray-400;
$form-select-disabled-color: $gray-700;
$form-select-bg: $input-bg;
$form-select-disabled-bg: $input-disabled-bg;
$form-select-indicator-color: $form-select-color;
Expand All @@ -109,6 +110,9 @@ $form-file-button-color: $input-color;
$form-file-button-bg: $input-group-addon-bg;
$form-file-button-hover-bg: shade-color($form-file-button-bg, 5%);

$form-feedback-valid-color: $success;
$form-feedback-invalid-color: $danger;

// Navs
$nav-link-color: $body-color;
$nav-link-hover-color: null;
Expand Down

0 comments on commit 64e6dcb

Please sign in to comment.