Skip to content

Commit

Permalink
Added arrow-down for select lists
Browse files Browse the repository at this point in the history
  • Loading branch information
dyatlov-a committed Sep 30, 2024
1 parent bd4159c commit 6fb3203
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ else
Value="_value"
ValueExpression="@(() => _value)"
ValueChanged="@((TValue? v) => SetCurrentValue(v))"
class="@($"form-control form-control_enabled {CssClass} {ParentCssClass}")">
class="@($"form-control form-control_select-list form-control_enabled {CssClass} {ParentCssClass}")">
@if (HasEmptyValue)
{
<option value=""></option>
Expand Down
10 changes: 8 additions & 2 deletions src/Inc.TeamAssistant.WebUI/wwwroot/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,9 @@ html {
background-color: #dfdfdf;
transition: border 0.3s;
}
.form-control, select {
.form-control {
min-height: 45px;
font-size: 1rem;
-webkit-appearance: none;
}
.form-control:focus, .form-control_enabled:hover {
border: 3px solid #000;
Expand All @@ -168,6 +167,13 @@ html {
font-size: 1rem;
color: #dc3545;
}
.form-control_select-list {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
background: #dfdfdf url('../imgs/arrow-down.png') calc(100% - 5px) center no-repeat;
padding-right: 20px;
}
/* ROOT COMPONENTS */
.title {
font-size: 2.4rem;
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6fb3203

Please sign in to comment.