summaryrefslogtreecommitdiffstats
path: root/web_src/css/repo
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2024-03-23 00:54:09 +0100
committerGitHub <noreply@github.com>2024-03-22 23:54:09 +0000
commit3ccda41a539b8ba7841919ee12dc2877ddc03818 (patch)
tree0cadb8a2d0b1804d72c92e1c41c84d06ee2e156f /web_src/css/repo
parentbc92478575d9c1e84aa4ba4052dffcdc109a0323 (diff)
downloadgitea-3ccda41a539b8ba7841919ee12dc2877ddc03818.tar.gz
gitea-3ccda41a539b8ba7841919ee12dc2877ddc03818.zip
Introduce `.secondary-nav` and handle `.page-content` spacing universally (#29982)
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>
Diffstat (limited to 'web_src/css/repo')
-rw-r--r--web_src/css/repo/header.css11
1 files changed, 5 insertions, 6 deletions
diff --git a/web_src/css/repo/header.css b/web_src/css/repo/header.css
index 13fb40e35d..55e704ed10 100644
--- a/web_src/css/repo/header.css
+++ b/web_src/css/repo/header.css
@@ -1,4 +1,8 @@
-.header-wrapper .fork-flag {
+.repository .secondary-nav {
+ padding-top: 12px;
+}
+
+.repository .secondary-nav .fork-flag {
margin-top: 0.5rem;
font-size: 12px;
}
@@ -63,8 +67,3 @@
.repo-buttons .ui.labeled.button.disabled > .button {
pointer-events: none !important;
}
-
-.repository .header-wrapper {
- padding-top: 12px;
- background-color: var(--color-header-wrapper);
-}