diff options
author | Matt Singleton <matt@xcolour.net> | 2024-02-06 16:36:56 -0600 |
---|---|---|
committer | Matt Singleton <matt@xcolour.net> | 2024-02-06 16:36:56 -0600 |
commit | 2355d39b234705afc1e6a7d7fd36ead930f4fd47 (patch) | |
tree | 5043077445553db9b4cf58e985b57262ce5c5fcd | |
parent | b8c3fd41000eff1774163661174806643873f1cf (diff) |
update use instructions
-rw-r--r-- | README.md | 17 | ||||
-rw-r--r-- | cgit-main.css | 2 | ||||
-rw-r--r-- | cgit-responsive.css (renamed from cgit.css) | 0 |
3 files changed, 16 insertions, 3 deletions
@@ -9,9 +9,20 @@ changes for my own use. # How to use: -Beyond switching original CSS file with the one in this repository you should also add `head-include` line in your `cgitrc` file. -For example: +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: ``` -head-include=/usr/share/webapps/cgit/head.html +<meta name="viewport" content="width=device-width initial-scale=1.0"/> ``` diff --git a/cgit-main.css b/cgit-main.css new file mode 100644 index 0000000..c174dad --- /dev/null +++ b/cgit-main.css @@ -0,0 +1,2 @@ +@import "/cgit.css"; +@import "/cgit-responsive.css"; diff --git a/cgit.css b/cgit-responsive.css index 514f54b..514f54b 100644 --- a/cgit.css +++ b/cgit-responsive.css |