aboutsummaryrefslogtreecommitdiffstats
path: root/cgit.css
diff options
context:
space:
mode:
authorAlexander Leonhardt <equinox.salexander@gmail.com>
2026-08-16 13:34:13 +0200
committerAlexander Leonhardt <equinox.salexander@gmail.com>
2026-08-16 14:13:12 +0200
commit5c46a55ba69406efe441af48b40bdedf56345c79 (patch)
tree795c9e1827fd654f9af3a3e493a164256be0cc2a /cgit.css
parent73466f1c66f918e5ce285172c69bd682ae25f78b (diff)
downloadcgit-5c46a55ba69406efe441af48b40bdedf56345c79.tar.gz
cgit-5c46a55ba69406efe441af48b40bdedf56345c79.tar.bz2
cgit-5c46a55ba69406efe441af48b40bdedf56345c79.zip
fix: Updated the structure in the header to resemble the original design, updated css to adapt to mobile phones
Diffstat (limited to 'cgit.css')
-rw-r--r--cgit.css60
1 files changed, 49 insertions, 11 deletions
diff --git a/cgit.css b/cgit.css
index 1db3571..3996db4 100644
--- a/cgit.css
+++ b/cgit.css
@@ -42,20 +42,56 @@ div#cgit table#header td.logo {
}
div#cgit table#header td.main {
+ display: inline-flex;
+ justify-content: center;
font-size: 200%;
- padding-left: 10px;
+ padding-left: 1rem;
+ padding-right: 1rem;
white-space: nowrap;
color: #777;
- width: 1rem;
}
+
+div#cgit table#header tr:nth-child(2) {
+ border-top: solid 1px #777;
+}
+
+div#cgit table#header tr {
+ display: flex;
+}
+@media(width <= 40rem) {
+div#cgit table#header tr {
+ justify-content: center;
+}
+div#cgit table#header tr:nth-child(2) {
+ flex-direction: column-reverse;
+}
+div#cgit table#header tr {
+ flex-direction: column;
+}
+div#cgit table#header tbody td.form {
+ padding-top: 0.1rem;
+}
+}
+@media(width > 40rem) {
+div#cgit table#header tr {
+ justify-content: space-between;
+}
+}
+
+
div#cgit table#header td.main span#root-title {
color: #eee;
font-variant: small-caps;
+ min-width: 15rem;
+ font-family: serif;
}
div#cgit table#header td.main span.separator {
font-size: 2rem;
+ padding-left: 0.4em;
+ padding-right: 0.4em;
+ line-height: 1.1em;
color: #999;
}
@@ -64,28 +100,30 @@ div#cgit table#header td.main a {
}
div#cgit table#header td.form {
- padding-top: 1em;
+ display: inline-flex;
+ justify-content: center;
+ padding: 0.8rem 1rem 0.2rem 1rem;
vertical-align: bottom;
- padding-right: 1em;
- padding-bottom: 0.2rem;
white-space: nowrap;
text-align: right;
}
div#cgit table#header td.subem {
+ display: inline-flex;
color: #777;
- padding-top: 1em;
- padding-right: 10px;
+ padding-right: 1em;
+ padding-left: 1em;
+ justify-content: center;
font-size: 80%;
- text-align: right;
}
div#cgit table#header td.sub {
+ display: inline-flex;
+ justify-content: center;
color: #777;
- border-top: solid 1px #777;
- padding-left: 10px;
+ padding-left: 1em;
+ padding-right: 1em;
white-space: wrap;
- width: 1rem;
}
div#cgit table.tabs::-webkit-scrollbar {