Skip to content

Commit e25bf5f

Browse files
author
Dmytro Trotsko
committed
Updated dropdown arrows style
1 parent 8539a16 commit e25bf5f

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

src/assets/css/alter_dashboard.css

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,12 @@ body {
150150
background-color: rgba(255, 255, 255, 0.95);
151151
font-weight: 500;
152152
transition: var(--transition);
153+
appearance: none;
154+
background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8"><path fill="%2364748b" d="M6 8L0 0h12z"/></svg>');
155+
background-repeat: no-repeat;
156+
background-position: right 0.75rem center;
157+
background-size: 0.7rem;
158+
padding-right: 2.25rem;
153159
}
154160

155161
.filter-select:focus {
@@ -170,19 +176,22 @@ body {
170176
transition: var(--transition);
171177
display: flex;
172178
align-items: center;
179+
background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8"><path fill="%2364748b" d="M6 8L0 0h12z"/></svg>');
180+
background-repeat: no-repeat;
181+
background-position: right 0.75rem center;
182+
background-size: 0.7rem;
173183
}
174184

175185
.select2-container--default .select2-selection--single .select2-selection__rendered {
176186
padding-left: 1rem;
177-
padding-right: 2rem;
187+
padding-right: 2.25rem;
178188
line-height: 1.5;
179189
color: var(--dark-text);
180190
font-size: 1rem;
181191
}
182192

183193
.select2-container--default .select2-selection--single .select2-selection__arrow {
184-
height: 100%;
185-
right: 0.75rem;
194+
display: none;
186195
}
187196

188197
.select2-container--default.select2-container--focus .select2-selection--single,
@@ -508,15 +517,20 @@ footer {
508517
.filter-select {
509518
padding: 0.625rem 0.875rem;
510519
font-size: 0.875rem;
520+
background-position: right 0.65rem center;
521+
background-size: 0.65rem;
522+
padding-right: 2rem;
511523
}
512524

513525
.select2-container--default .select2-selection--single {
514526
min-height: 42px;
527+
background-position: right 0.65rem center;
528+
background-size: 0.65rem;
515529
}
516530

517531
.select2-container--default .select2-selection--single .select2-selection__rendered {
518532
padding-left: 0.875rem;
519-
padding-right: 1.75rem;
533+
padding-right: 2rem;
520534
font-size: 0.875rem;
521535
}
522536

0 commit comments

Comments
 (0)