aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Leonhardt <equinox.salexander@gmail.com>
2026-08-16 21:02:02 +0200
committerAlexander Leonhardt <equinox.salexander@gmail.com>
2026-08-16 21:02:02 +0200
commit68a4efbe21a1c4c9b0715fa78c83012df8138d9e (patch)
tree1b13ff366d1799846bb76f5f759b0479dc8cd63e
parent5c46a55ba69406efe441af48b40bdedf56345c79 (diff)
downloadcgit-68a4efbe21a1c4c9b0715fa78c83012df8138d9e.tar.gz
cgit-68a4efbe21a1c4c9b0715fa78c83012df8138d9e.tar.bz2
cgit-68a4efbe21a1c4c9b0715fa78c83012df8138d9e.zip
fix: Adapted the tabbing layout to flexboxes to improve versatility on mobile devices.
-rw-r--r--cgit.css19
1 files changed, 10 insertions, 9 deletions
diff --git a/cgit.css b/cgit.css
index 3996db4..415714a 100644
--- a/cgit.css
+++ b/cgit.css
@@ -71,6 +71,7 @@ div#cgit table#header tr {
}
div#cgit table#header tbody td.form {
padding-top: 0.1rem;
+ padding-bottom: 0.3rem;
}
}
@media(width > 40rem) {
@@ -132,26 +133,28 @@ div#cgit table.tabs::-webkit-scrollbar {
div#cgit table.tabs {
display: block;
- mask-image: linear-gradient(to right, black 0, black calc(100% - 4rem), transparent 100%);
- overflow-x: scroll;
- overflow-y: hidden;
+ overflow: auto;
-ms-overflow-style: none; /* IE and Edge */
scrollbar-width: none; /* Firefox */
border-bottom: solid 1px #777;
border-collapse: collapse;
- padding-right: 3rem;
margin-top: 2em;
margin-bottom: 0px;
width: 100%;
}
+div#cgit table.tabs tbody {
+ width: 100%;
+ display: inline-block;
+}
+div#cgit table.tabs tr {
+ display: flex;
+ justify-content: space-between;
+}
div#cgit table.tabs td {
padding: 0px 1em;
vertical-align: bottom;
}
-div#cgit table.tabs tr td:first-child {
- min-width: calc(100vw - 26em);
-}
div#cgit table.tabs td a {
padding: 2px 0.75em;
@@ -176,7 +179,6 @@ div#cgit table.tabs a[href^="http://"]:after, div#cgit table.tabs a[href^="https
div#cgit table.tabs td.form {
text-align: right;
- width: 16em;
}
div#cgit td.form input {
@@ -590,7 +592,6 @@ div#cgit table.commit-info td {
}
div#cgit div.commit-subject {
- font-weight: bold;
font-size: 125%;
margin: 1.5em 0em 0.5em 0em;
padding: 0em;