Fix navbar +
menu flashing on page load (#31281)
Fixes https://github.com/go-gitea/gitea/pull/31273#issuecomment-2153771331. Same method as used in https://github.com/go-gitea/gitea/pull/30215. All left-opening dropdowns need to use it method. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: Giteabot <teabot@gitea.io>
This commit is contained in:
parent
45dbeb5600
commit
21ba5ca03b
6 changed files with 46 additions and 28 deletions
|
@ -19,12 +19,26 @@
|
|||
margin: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
}
|
||||
|
||||
#navbar-logo {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.navbar-left > .item,
|
||||
.navbar-right > .item {
|
||||
color: var(--color-nav-text);
|
||||
position: relative;
|
||||
text-decoration: none;
|
||||
line-height: var(--line-height-default);
|
||||
flex: 0 0 auto;
|
||||
font-weight: var(--font-weight-normal);
|
||||
align-items: center;
|
||||
padding: .78571429em .92857143em;
|
||||
border-radius: .28571429rem;
|
||||
}
|
||||
|
||||
#navbar .item {
|
||||
min-height: 36px;
|
||||
min-width: 36px;
|
||||
|
@ -33,10 +47,6 @@
|
|||
display: flex;
|
||||
}
|
||||
|
||||
#navbar > .menu > .item {
|
||||
color: var(--color-nav-text);
|
||||
}
|
||||
|
||||
#navbar .dropdown .item {
|
||||
justify-content: stretch;
|
||||
}
|
||||
|
@ -70,7 +80,7 @@
|
|||
}
|
||||
#navbar .navbar-mobile-right {
|
||||
display: flex;
|
||||
margin-left: auto !important;
|
||||
margin: 0 0 0 auto !important;
|
||||
width: auto !important;
|
||||
}
|
||||
#navbar .navbar-mobile-right > .item {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue