mirror of
https://github.com/go-gitea/gitea.git
synced 2026-09-25 22:23:42 +09:00
1. Give menu items an inset pill highlight, text position and menu width are unchanged in most menus 1. Add arrow key, Enter, Space and Escape handling to all tippy menus 1. Mark the keyboard cursor of fomantic and tippy menus with the focus ring instead of the hover background 1. Mark the current dropdown item with the active color so it stands out from the hovered one 1. Stop navbar dropdown links from taking the navbar item hover color 1. Replace the actions job log options dropdown with the shared tippy menu, its hover highlight was invisible 1. Stop changing font weight on active and selected menu items, it resized rows while arrowing 1. Stretch the "All extensions" button in the diff file extension filter to the full menu width 1. Fix the actions run summary block covering the panel's rounded corners and indenting wrapped stats
151 lines
3.3 KiB
CSS
151 lines
3.3 KiB
CSS
#navbar {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
background: var(--color-nav-bg);
|
|
border-bottom: 1px solid var(--color-secondary);
|
|
padding: 0 10px;
|
|
}
|
|
|
|
#navbar .navbar-left,
|
|
#navbar .navbar-right {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
min-height: 49px; /* +1px border-bottom */
|
|
}
|
|
|
|
.navbar-left > .item,
|
|
.navbar-right > .item,
|
|
.navbar-mobile-right > .item {
|
|
flex: 0 0 auto;
|
|
display: flex;
|
|
align-items: center;
|
|
color: var(--color-nav-text);
|
|
position: relative;
|
|
text-decoration: none;
|
|
min-height: 36px;
|
|
min-width: 36px;
|
|
padding: 3px 13px;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
#navbar .item.active {
|
|
background: var(--color-active);
|
|
}
|
|
|
|
#navbar :is(a, button).item:not(.dropdown *):hover {
|
|
background: var(--color-nav-hover-bg);
|
|
}
|
|
|
|
#navbar .item.ui.dropdown {
|
|
padding-right: 5px;
|
|
}
|
|
|
|
@media (max-width: 767.98px) {
|
|
#navbar {
|
|
align-items: stretch;
|
|
}
|
|
/* hide all items */
|
|
#navbar .navbar-left > .item,
|
|
#navbar .navbar-right > .item {
|
|
display: none;
|
|
}
|
|
#navbar #navbar-logo {
|
|
display: flex;
|
|
}
|
|
/* show the first navbar item (logo and its mobile right items) */
|
|
#navbar .navbar-left {
|
|
flex: 1;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
}
|
|
#navbar .navbar-mobile-right {
|
|
display: flex;
|
|
align-items: center;
|
|
margin: 0 0 0 auto;
|
|
width: auto;
|
|
}
|
|
#navbar .navbar-mobile-right > .item {
|
|
display: flex;
|
|
width: auto;
|
|
}
|
|
/* show items if the navbar is open */
|
|
#navbar.navbar-menu-open {
|
|
padding-bottom: 8px;
|
|
}
|
|
#navbar.navbar-menu-open,
|
|
#navbar.navbar-menu-open .navbar-right {
|
|
flex-direction: column;
|
|
}
|
|
#navbar.navbar-menu-open .navbar-left {
|
|
flex-wrap: wrap;
|
|
}
|
|
#navbar.navbar-menu-open .navbar-left > .item,
|
|
#navbar.navbar-menu-open .navbar-right > .item {
|
|
display: flex;
|
|
width: 100%;
|
|
}
|
|
#navbar.navbar-menu-open .navbar-left #navbar-logo {
|
|
justify-content: flex-start;
|
|
width: auto;
|
|
}
|
|
#navbar.navbar-menu-open .navbar-left .navbar-mobile-right {
|
|
justify-content: flex-end;
|
|
min-height: 49px;
|
|
}
|
|
}
|
|
|
|
#navbar a.item:hover .notification_count,
|
|
#navbar a.item:hover .header-stopwatch-dot,
|
|
#navbar .item.active .navbar-admin-badge {
|
|
border-color: var(--color-nav-hover-bg);
|
|
}
|
|
|
|
#navbar a.item .notification_count,
|
|
#navbar a.item .header-stopwatch-dot,
|
|
#navbar .item .navbar-admin-badge {
|
|
color: var(--color-nav-bg);
|
|
padding: 0 3.75px;
|
|
font-size: 12px;
|
|
line-height: 12px;
|
|
font-weight: var(--font-weight-bold);
|
|
background: var(--color-primary);
|
|
border: 2px solid var(--color-nav-bg);
|
|
position: absolute;
|
|
left: calc(100% - 9px);
|
|
bottom: calc(100% - 9px);
|
|
min-width: 17px;
|
|
height: 17px;
|
|
border-radius: 11px; /* (height + 2 * borderThickness) / 2 */
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 1; /* prevent menu button background from overlaying icon */
|
|
user-select: none;
|
|
white-space: nowrap;
|
|
overflow: visible;
|
|
}
|
|
|
|
.navbar-avatar {
|
|
position: relative;
|
|
display: inline-flex;
|
|
}
|
|
|
|
#navbar .item .navbar-admin-badge {
|
|
position: absolute;
|
|
left: auto;
|
|
right: -7px;
|
|
bottom: -5px;
|
|
padding: 1.5px;
|
|
}
|
|
|
|
.secondary-nav {
|
|
background: var(--color-secondary-nav-bg) !important; /* important because of .ui.secondary.menu */
|
|
}
|
|
|
|
.issue-navbar {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
}
|