aboutsummaryrefslogtreecommitdiff

Simple responsive cgit CSS theme. It looks exactly like the default theme except it actually works on mobile. It doesn't use any JavaScript and relies solely on CSS media queries.

This repository is a fork of the original stylesheet shared by MatejaMarić on Github to make a few minor changes for my own use.

How to use:

Place cgit-main.css, cgit-responsive.css, and head.html alongside your existing cgit.css file. These responsive css rules are additive to the default cgit.css.

Update your cgitrc to set the css and head-include directives. For example:

css=/cgit-main.css
head-include=/usr/share/cgit/head.html

If you already have a head-include set, just make sure to include the appropriate viewport meta tag:

<meta name="viewport" content="width=device-width initial-scale=1.0"/>