aboutsummaryrefslogtreecommitdiff
path: root/cgit-responsive.css
diff options
context:
space:
mode:
authorMatt Singleton <matt@xcolour.net>2024-02-06 16:36:56 -0600
committerMatt Singleton <matt@xcolour.net>2024-02-06 16:36:56 -0600
commit2355d39b234705afc1e6a7d7fd36ead930f4fd47 (patch)
tree5043077445553db9b4cf58e985b57262ce5c5fcd /cgit-responsive.css
parentb8c3fd41000eff1774163661174806643873f1cf (diff)
update use instructions
Diffstat (limited to 'cgit-responsive.css')
-rw-r--r--cgit-responsive.css48
1 files changed, 48 insertions, 0 deletions
diff --git a/cgit-responsive.css b/cgit-responsive.css
new file mode 100644
index 0000000..514f54b
--- /dev/null
+++ b/cgit-responsive.css
@@ -0,0 +1,48 @@
+@media only screen and (max-width: 800px) {
+ /* HEADER */
+ /* remove logo (save space) */
+ div#cgit table#header td.logo {
+ display: none;
+ }
+ /* wrap title text */
+ div#cgit table#header td.main {
+ white-space: normal;
+ }
+ /* td as block */
+ div#cgit table#header td {
+ display: block;
+ }
+ /* move branch switcher to left */
+ div#cgit table#header td.form {
+ text-align: left;
+ }
+ /* Don't display author (save space) */
+ div#cgit table#header td.sub.right {
+ display: none;
+ }
+
+ /* TABS */
+ /* both tabs and form are blocks */
+ div#cgit table.tabs td {
+ display: block;
+ }
+ /* every tab is block */
+ div#cgit table.tabs td a {
+ display: block;
+ text-align: right;
+ }
+
+ /* CONTENT */
+ div#cgit div.content {
+ overflow-x: auto;
+ padding: 0.5em;
+ }
+ td.ls-mode {
+ white-space: nowrap;
+ }
+
+ /* PANEL ALIGNMENT */
+ div#cgit div.cgit-panel {
+ float: left;
+ }
+}