mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-22 21:49:22 +00:00
1ee494a045
Fixes: https://github.com/go-gitea/gitea/issues/29981. Introduce `.secondary-nav` as a universal way for styling and margin adjustments inside `.page-content`. If the first child of `.page-content` is `.secondary-nav`, we add margin below it, otherwise we add padding to the first child. Notable changes: - `--color-header-wrapper` is replaced with `--color-secondary-nav-bg`. - `navbar` class is removed. Co-authored-by: Giteabot <teabot@gitea.io> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> --- Conflict resolution: Trivial conflict & changed selector to reflect new classes. Ref: https://codeberg.org/forgejo/forgejo/issues/2776 (cherry picked from commit 3ccda41a539b8ba7841919ee12dc2877ddc03818)
99 lines
2 KiB
CSS
99 lines
2 KiB
CSS
.dashboard.feeds .context.user.menu,
|
|
.dashboard.issues .context.user.menu {
|
|
z-index: 101;
|
|
min-width: 200px;
|
|
}
|
|
|
|
.dashboard.feeds .context.user.menu .ui.header,
|
|
.dashboard.issues .context.user.menu .ui.header {
|
|
font-size: 1rem;
|
|
text-transform: none;
|
|
}
|
|
|
|
.dashboard.feeds .filter.menu,
|
|
.dashboard.issues .filter.menu {
|
|
width: initial;
|
|
}
|
|
|
|
.dashboard.feeds .filter.menu .item,
|
|
.dashboard.issues .filter.menu .item {
|
|
text-align: left;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.dashboard.feeds .filter.menu .item .text.truncate,
|
|
.dashboard.issues .filter.menu .item .text.truncate {
|
|
width: 75%;
|
|
}
|
|
|
|
.dashboard.feeds .filter.menu .item .floating.label,
|
|
.dashboard.issues .filter.menu .item .floating.label {
|
|
top: 7px;
|
|
left: 90%;
|
|
width: 15%;
|
|
}
|
|
|
|
@media (max-width: 767.98px) {
|
|
.dashboard.feeds .filter.menu .item .floating.label,
|
|
.dashboard.issues .filter.menu .item .floating.label {
|
|
top: 10px;
|
|
left: auto;
|
|
width: auto;
|
|
right: 13px;
|
|
}
|
|
}
|
|
|
|
/* Sort */
|
|
.dashboard.feeds .filter.menu .jump.item,
|
|
.dashboard.issues .filter.menu .jump.item {
|
|
margin: 1px;
|
|
padding-right: 0;
|
|
}
|
|
|
|
.dashboard.feeds .filter.menu .menu,
|
|
.dashboard.issues .filter.menu .menu {
|
|
max-height: 300px;
|
|
overflow-x: auto;
|
|
right: 0 !important;
|
|
left: auto !important;
|
|
}
|
|
|
|
@media (max-width: 767.98px) {
|
|
.dashboard.feeds .filter.menu,
|
|
.dashboard.issues .filter.menu {
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
.dashboard.feeds .right.stackable.menu > .item.active,
|
|
.dashboard.issues .right.stackable.menu > .item.active {
|
|
color: var(--color-red);
|
|
}
|
|
|
|
.dashboard .dashboard-repos,
|
|
.dashboard .dashboard-orgs {
|
|
margin: 0 1px; /* Accommodate for Semantic's 1px hacks on .attached elements */
|
|
}
|
|
|
|
.dashboard .secondary-nav {
|
|
padding: 1px 12px; /* match .overflow-menu-items in height */
|
|
}
|
|
|
|
.dashboard .secondary-nav .right.menu {
|
|
gap: .35714286em;
|
|
}
|
|
|
|
.dashboard .secondary-nav .right.menu div.item {
|
|
padding-left: 0.5rem;
|
|
}
|
|
|
|
.dashboard .secondary-nav .org-visibility .label {
|
|
margin-left: 5px;
|
|
}
|
|
|
|
.dashboard .secondary-nav .ui.dropdown {
|
|
max-width: 100%;
|
|
}
|