aboutsummaryrefslogtreecommitdiff
path: root/README.md
blob: ff865312485488206da8bf76faaafb4005541394 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Simple responsive [cgit](https://git.zx2c4.com/cgit/about/) 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ć](https://github.com/MatejaMaric) on
[Github](https://github.com/MatejaMaric/responsive-cgit-css) 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"/>
```