diff options
| Commit | b0c86be00b9a807e88cf4e94d9c7a67ccbdbd85f (patch) | |
|---|---|---|
| Author | 2026-10-03 22:49:52 +0300 | |
| Committer | 2026-10-04 17:26:07 +0300 | |
| Files | e07e7078bd637a75227c1c02cf03334564ecf802 | |
| cgit_theme-b0c86be00b9a807e88cf4e94d9c7a67ccbdbd85f.tar cgit_theme-b0c86be00b9a807e88cf4e94d9c7a67ccbdbd85f.tar.gz cgit_theme-b0c86be00b9a807e88cf4e94d9c7a67ccbdbd85f.zip | ||
| Parent | cd8a73874b2edc469f7e7bd2051c2b00235cfca2 (diff) | |
feat(cgit.css): Improve handling of small screens
1 files changed, 15 insertions, 1 deletions
| -rw-r--r-- | cgit.css | 16 |
@@ -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, |
