Skip to content

Commit

Permalink
RTL select improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
hovancik committed Feb 4, 2024
1 parent 6f36e07 commit 911d290
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion app/css/commons.css
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ a {

/* https://css-tricks.com/html5-progress-element/ */
progress {
appearance: none;
-webkit-appearance: none;
height: 6px;
width: min(50vw, 50vh);
Expand Down Expand Up @@ -328,6 +329,11 @@ body[dir=rtl] .has-select {
right: 3px;
}

body[dir=rtl] .has-select::after {
left: 3px;
right: auto;
}

.has-select::before {
background: var(--has-select-before-bg);
border-radius: 0 3px 3px 0;
Expand All @@ -339,7 +345,13 @@ body[dir=rtl] .has-select {
width: 16.5px;
}

body[dir=rtl] .has-select::before {
left: 0;
right: auto;
}

select {
appearance: none;
-webkit-appearance: none;
color: var(--select-color);
background: var(--select-bg);
Expand All @@ -354,7 +366,7 @@ select {

body[dir=rtl] select {
padding-left: 0;
padding-right: 20px;
padding-right: 8px;
}

select option {
Expand Down

0 comments on commit 911d290

Please sign in to comment.