From e80e7c85f970467957f72934b06e79db23ee14fb Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sun, 30 Mar 2025 00:58:32 +0800 Subject: Add basic tabs to repo index --- static/style.css | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) (limited to 'static') diff --git a/static/style.css b/static/style.css index a53dc17..8bfe351 100644 --- a/static/style.css +++ b/static/style.css @@ -345,7 +345,7 @@ a.btn, a.btn-white, a.btn-danger, a.btn-normal, a.btn-primary { /* Header layout */ header#main-header { - background-color: var(--lighter-box-background-color); + /* background-color: var(--lighter-box-background-color); */ display: flex; flex-direction: row; align-items: center; @@ -354,6 +354,10 @@ header#main-header { padding: 0.625rem 1rem; gap: 0.5rem; } +#main-header a, #main-header a:link, main-header a:visited { + text-decoration: none; + color: inherit; +} #main-header-forge-title { white-space: nowrap; } @@ -485,3 +489,29 @@ td > ul { max-width: 100%; width: fit-content; } + +.nav-tabs-standalone { + border: none; + list-style: none; + margin: 0; + flex-grow: 1; + display: inline-flex; + flex-wrap: nowrap; + padding: 0; + border-bottom: 0.25rem var(--lighter-box-background-color) solid; +} + +.nav-tabs-standalone li { + align-self: flex-end; + padding: 0 1rem; +} + +.nav-item.active { + font-weigt: bold; + background-color: var(--lighter-box-background-color); +} + +.nav-item a, .nav-item a:link, .nav-item a:visited { + text-decoration: none; + color: inherit; +} -- cgit v1.2.3