Skip to content

Commit

Permalink
Various dropdown fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
wilsonge committed Sep 3, 2023
1 parent 8890fc9 commit eefba7b
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
$atum-colors-dark: (
template-quickicon-color: var(--template-bg-dark-5),
template-quickicon-color: var(--template-bg-dark-5),
focus-shadow: var(--gray-800),
) !default;

$link-hover-color-dark: lighten($light-blue, 20%);
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,19 @@

&:disabled,
&[readonly] {
background-color: #e8e8e8;
background-color: var(--gray-200);
opacity: 1;
}

@if $enable-dark-mode {
@include color-mode(dark) {
&:disabled,
&[readonly] {
background-color: var(--gray-800);
}
}
}

&:hover:not(:disabled):not([readonly])::-webkit-file-upload-button,
&:hover:not(:disabled):not([readonly])::file-selector-button {
background-color: var(--template-bg-dark-50);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
}

.list-group-item {
color: $link-color;
--list-group-color: #{$link-color};
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@
color: $form-select-color;
background-color: var(--white-offset);
}

@if $enable-dark-mode {
@include color-mode(dark) {
option {
background-color: var(--gray-800);
}
}
}
}

&.form-select-danger,
Expand All @@ -46,31 +54,59 @@
color: $form-select-color;
background-color: var(--white-offset);
}

@if $enable-dark-mode {
@include color-mode(dark) {
option {
background-color: var(--gray-800);
}
}
}
}

&:disabled {
cursor: default;
background-color: #e8e8e8;
background-color: var(--gray-200);
background-image: none;
border: 0;
box-shadow: none;
}

@if $enable-dark-mode {
@include color-mode(dark) {
&:disabled {
background-color: var(--gray-800);
}
}
}

optgroup,
option {
color: var(--template-text-dark);
background-color: $white;
background-color: var(--body-bg);

&:disabled {
background-color: var(--template-bg-dark-5);
}
}

@if $enable-dark-mode {
@include color-mode(dark) {
option {
color: var(--template-text-light);

&:disabled {
background-color: var(--template-bg-dark-90);
}
}
}
}
}

@if $enable-dark-mode {
@include color-mode(dark) {
.form-select {
background: $form-select-background-dark #{"/* rtl:"}$form-select-background-rtl-dark#{"*/"};;
background: $form-select-background-dark #{"/* rtl:"}$form-select-background-rtl-dark#{"*/"};
}
}
}
Expand Down

0 comments on commit eefba7b

Please sign in to comment.