mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2026-05-13 14:30:25 +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>
75 lines
1.5 KiB
CSS
75 lines
1.5 KiB
CSS
/* Copyright 2025 The Forgejo Authors. All rights reserved.
|
|
* SPDX-License-Identifier: GPL-3.0-or-later */
|
|
|
|
.archived-label-filter:has(#archived-label-filter:not(:checked))
|
|
[data-is-archived] {
|
|
display: none !important;
|
|
}
|
|
|
|
.menu .item:has(> .label-filter-item) .label-exclude-item-btn {
|
|
opacity: 0;
|
|
position: absolute;
|
|
inset-inline-end: 0;
|
|
height: 100%;
|
|
width: 40px;
|
|
background: none;
|
|
color: var(--color-secondary-dark-5);
|
|
|
|
@media (any-hover: none) {
|
|
opacity: 1;
|
|
}
|
|
|
|
&.active {
|
|
color: var(--color-secondary-dark-10);
|
|
}
|
|
|
|
&:is(:hover, :focus-visible),
|
|
&.selected {
|
|
background: var(--color-secondary);
|
|
color: var(--color-secondary-dark-7);
|
|
}
|
|
}
|
|
|
|
.ui.menu .ui.dropdown .menu > .item:has(> .label-filter-item) {
|
|
max-width: 288px;
|
|
|
|
@media (any-hover: none) {
|
|
padding-inline-end: 50px !important;
|
|
}
|
|
|
|
&:hover,
|
|
&.selected,
|
|
&:has(.label-exclude-item-btn.active) {
|
|
padding-inline-end: 50px !important;
|
|
|
|
.label-exclude-item-btn {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
}
|
|
|
|
.menu:has(> .item[data-selected])
|
|
.item:not([data-selected])
|
|
> .label-filter-item {
|
|
padding-inline-start: 27px;
|
|
}
|
|
|
|
.menu .item .label-filter-item {
|
|
width: 100%;
|
|
min-width: 0;
|
|
}
|
|
|
|
.menu .item .label-filter-item > .label {
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
display: block;
|
|
}
|
|
|
|
.menu .item .archived-label-indicator {
|
|
margin: 0 0 0 10px !important;
|
|
|
|
@media (prefers-reduced-motion: no-preference) {
|
|
transition: transform 200ms ease;
|
|
}
|
|
}
|