mirror of
https://github.com/go-gitea/gitea
synced 2024-11-26 19:12:47 +01:00
Navbar fixes (#25402)
Fixes: https://github.com/go-gitea/gitea/issues/25444 Followup for some regressions from https://github.com/go-gitea/gitea/pull/25343. Before and after: <img width="219" alt="Screenshot 2023-06-21 at 00 25 20" src="https://github.com/go-gitea/gitea/assets/115237/08fe8e01-0a16-4cdf-ad4d-0a9048408e9e"> <img width="220" alt="Screenshot 2023-06-21 at 00 25 32" src="https://github.com/go-gitea/gitea/assets/115237/be25ae69-6ed0-4af5-8eeb-d7b210e7c124"> Fixes mobile button background and margins: <img width="836" alt="Screenshot 2023-06-21 at 00 39 58" src="https://github.com/go-gitea/gitea/assets/115237/d76ac1e9-747f-477c-9a42-b73e129b72ee">
This commit is contained in:
parent
9c62ca5689
commit
be47015229
3 changed files with 12 additions and 7 deletions
|
@ -11,16 +11,16 @@
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<!-- mobile right menu, it must be here because in mobile view, each item is a flex column, the first item is a full row column -->
|
<!-- mobile right menu, it must be here because in mobile view, each item is a flex column, the first item is a full row column -->
|
||||||
<div class="ui secondary menu item navbar-mobile-right gt-gap-2">
|
<div class="ui secondary menu item navbar-mobile-right">
|
||||||
{{if .IsSigned}}
|
{{if .IsSigned}}
|
||||||
<a class="item mobile-right-item gt-mr-2 gt-p-3" href="{{AppSubUrl}}/notifications" data-tooltip-content="{{.locale.Tr "notifications"}}" aria-label="{{.locale.Tr "notifications"}}">
|
<a id="mobile-notifications-icon" class="item gt-w-auto gt-p-3" href="{{AppSubUrl}}/notifications" data-tooltip-content="{{.locale.Tr "notifications"}}" aria-label="{{.locale.Tr "notifications"}}">
|
||||||
<div class="gt-relative">
|
<div class="gt-relative">
|
||||||
{{svg "octicon-bell"}}
|
{{svg "octicon-bell"}}
|
||||||
<span class="notification_count{{if not $notificationUnreadCount}} gt-hidden{{end}}">{{$notificationUnreadCount}}</span>
|
<span class="notification_count{{if not $notificationUnreadCount}} gt-hidden{{end}}">{{$notificationUnreadCount}}</span>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
{{end}}
|
{{end}}
|
||||||
<button class="item mobile-right-item ui icon mini button gt-p-3 gt-m-0" id="navbar-expand-toggle">{{svg "octicon-three-bars"}}</button>
|
<button class="item gt-w-auto ui icon mini button gt-p-3 gt-m-0" id="navbar-expand-toggle">{{svg "octicon-three-bars"}}</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -75,6 +75,7 @@ Gitea's private styles use `g-` prefix.
|
||||||
.gt-self-start { align-self: flex-start !important; }
|
.gt-self-start { align-self: flex-start !important; }
|
||||||
.gt-self-end { align-self: flex-end !important; }
|
.gt-self-end { align-self: flex-end !important; }
|
||||||
.gt-no-underline { text-decoration-line: none !important; }
|
.gt-no-underline { text-decoration-line: none !important; }
|
||||||
|
.gt-w-auto { width: auto !important; }
|
||||||
|
|
||||||
.gt-overflow-x-auto { overflow-x: auto !important; }
|
.gt-overflow-x-auto { overflow-x: auto !important; }
|
||||||
.gt-overflow-x-scroll { overflow-x: scroll !important; }
|
.gt-overflow-x-scroll { overflow-x: scroll !important; }
|
||||||
|
|
|
@ -34,6 +34,10 @@
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#navbar .dropdown .item {
|
||||||
|
justify-content: stretch;
|
||||||
|
}
|
||||||
|
|
||||||
#navbar a.item:hover,
|
#navbar a.item:hover,
|
||||||
#navbar button.item:hover {
|
#navbar button.item:hover {
|
||||||
background: var(--color-nav-hover-bg);
|
background: var(--color-nav-hover-bg);
|
||||||
|
@ -85,19 +89,19 @@
|
||||||
#navbar.navbar-menu-open .item {
|
#navbar.navbar-menu-open .item {
|
||||||
display: flex;
|
display: flex;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
margin: 0;
|
||||||
}
|
}
|
||||||
#navbar.navbar-menu-open .navbar-left #navbar-logo {
|
#navbar.navbar-menu-open .navbar-left #navbar-logo {
|
||||||
justify-content: flex-start;
|
justify-content: flex-start;
|
||||||
width: 50%;
|
width: auto;
|
||||||
min-height: 48px;
|
|
||||||
}
|
}
|
||||||
#navbar.navbar-menu-open .navbar-left .navbar-mobile-right {
|
#navbar.navbar-menu-open .navbar-left .navbar-mobile-right {
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
width: 50%;
|
width: 50%;
|
||||||
min-height: 48px;
|
min-height: 48px;
|
||||||
}
|
}
|
||||||
#navbar.navbar-menu-open .mobile-right-item {
|
#navbar #mobile-notifications-icon {
|
||||||
width: auto !important;
|
margin-right: 6px !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue