Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
Commitb0c86be00b9a807e88cf4e94d9c7a67ccbdbd85f (patch)
Author
 Syndamia <kamen@syndamia.com>
2026-10-03 22:49:52 +0300
Committer
 Syndamia <kamen@syndamia.com>
2026-10-04 17:26:07 +0300
Filese07e7078bd637a75227c1c02cf03334564ecf802
cgit_theme-b0c86be00b9a807e88cf4e94d9c7a67ccbdbd85f.tar
cgit_theme-b0c86be00b9a807e88cf4e94d9c7a67ccbdbd85f.tar.gz
cgit_theme-b0c86be00b9a807e88cf4e94d9c7a67ccbdbd85f.zip
Parentcd8a73874b2edc469f7e7bd2051c2b00235cfca2 (diff)
feat(cgit.css): Improve handling of small screens
1 files changed, 15 insertions, 1 deletions
-rw-r--r--cgit.css16
diff --git a/cgit.css b/cgit.css
index b2b0a9f..6bb27b3 100644
--- a/cgit.css
+++ b/cgit.css
@@ -92,7 +92,6 @@ div#cgit table#header td.logo img {
div#cgit table#header td.main {
font-size: 250%;
padding-left: 10px;
- white-space: nowrap;
background-color: /*--gray-2*/#262626;
color: /*--red-2*/#f57f6c;
}
@@ -145,6 +144,12 @@ div#cgit table.tabs td a {
font-size: 110%;
}
+@media screen and (max-width: 779px) {
+ div#cgit table.tabs td a {
+ display: inline-block;
+ }
+}
+
div#cgit table.tabs td a.active {
background-color: /*--indigo*/#4a4a99;
border-top-left-radius: /*--radius-medium*/4px;
@@ -166,6 +171,14 @@ div#cgit table.tabs td.form select {
font-size: 90%;
}
+@media screen and (max-width: 779px) {
+ div#cgit table.tabs td.form form,
+ div#cgit table#header td.form,
+ div#cgit table#header td.main {
+ white-space: wrap;
+ }
+}
+
div#cgit input,
div#cgit select,
div#cgit a.button {
@@ -1251,6 +1264,7 @@ div#readme a, div#cgit div.markdown-body a {
box-sizing: border-box;
border: 1px solid #978a42;
background-color: #303030;
+ white-space: break-spaces;
}
.markdown-body h1, .markdown-body h1 a,