mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2026-05-13 06:20:24 +00:00
Related issue: https://codeberg.org/forgejo/forgejo/issues/8581 This should be a nice first step towards RTL support. Future PRs can look at updating the tailwind classes, changing some of the icons (arrow left might need to become arrow right in some cases for example, and updating the template files) Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/12491 Reviewed-by: 0ko <0ko@noreply.codeberg.org>
25 lines
612 B
CSS
25 lines
612 B
CSS
.gitea-select {
|
|
position: relative;
|
|
}
|
|
|
|
.gitea-select select {
|
|
appearance: none; /* hide default triangle */
|
|
}
|
|
|
|
/* ::before and ::after pseudo elements don't work on select elements,
|
|
so we need to put it on the parent. */
|
|
.gitea-select::after {
|
|
position: absolute;
|
|
top: 12px;
|
|
inset-inline-end: 8px;
|
|
pointer-events: none;
|
|
content: "";
|
|
width: 14px;
|
|
height: 14px;
|
|
mask-size: cover;
|
|
-webkit-mask-size: cover;
|
|
mask-image: var(--octicon-chevron-right);
|
|
-webkit-mask-image: var(--octicon-chevron-right);
|
|
transform: rotate(90deg); /* point the chevron down */
|
|
background: currentcolor;
|
|
}
|