fix(style): [WIP] Artist page input select styles

This commit is contained in:
ArneBo 2025-01-03 11:55:29 +01:00 committed by upsiflu
parent 384cd5692a
commit 334c645d70
3 changed files with 55 additions and 2 deletions

View File

@ -145,12 +145,13 @@ const paginateOptions = computed(() => sortedUniq([12, 30, 50, paginateBy.value]
<Input <Input
v-model="tags" v-model="tags"
:label="t('components.library.Artists.label.tags')" :label="t('components.library.Artists.label.tags')"
style="max-width: 150px;"
/> />
<select <select
id="artist-ordering" id="artist-ordering"
:label="t('components.library.Artists.ordering.label')" :label="t('components.library.Artists.ordering.label')"
v-model="ordering" v-model="ordering"
class="ui dropdown" class="dropdown"
> >
<option <option
v-for="(option, key) in orderingOptions" v-for="(option, key) in orderingOptions"

View File

@ -25,7 +25,7 @@
} }
@include light-theme { @include light-theme {
--fw-bg-color: var(--fw-gray-100); --fw-bg-color: var(--fw-gray-200);
--fw-border-color: var(--fw-bg-color); --fw-border-color: var(--fw-bg-color);
--fw-placeholder-color: var(--fw-gray-600); --fw-placeholder-color: var(--fw-gray-600);
@ -129,3 +129,54 @@
padding-right: 140px; padding-right: 140px;
} }
} }
form.ui.form {
select.dropdown {
/* display: none !important; */
}
select.dropdown {
display: block;
height: 44px;
margin-top: 7px;
border-radius: var(--fw-border-radius);
font-size: 14px;
font-family: $font-main;
line-height: 28px;
border: 12px solid transparent;
padding: 0px 12px;
color: var(--input-color);
-webkit-transition: color .1s ease, border-color .1s ease;
transition: color .1s ease, border-color .1s ease;
@include light-theme {
color: var(--fw-gray-800);
background-color: var(--fw-gray-200);
border-color: transparent;
&:hover {
outline: 4px solid var(--fw-gray-300);
}
&:focus-within {
outline: 4px solid var(--fw-primary);
}
}
@include dark-theme {
color: var(--fw-gray-300);
background-color: var(--fw-gray-850);
border-color: var(--fw-gray-850);
&:hover,
&:focus-visible {
outline: 4px solid var(--fw-gray-700);
outline-offset: -4px;
}
}
& option {
color: red;
}
}
.selection.active.dropdown, .ui.selection.active.dropdown .menu {}
}

View File

@ -74,6 +74,7 @@
// Same in light and dark theme // Same in light and dark theme
--fw-secondary: #ff6600; --fw-secondary: #ff6600;
--fw-primary: var(--fw-blue-400);
} }
// (2) Choosing the semantic colors from the palette // (2) Choosing the semantic colors from the palette