| index.md - sites - public wiki contents of suckless.org | |
| git clone git://git.suckless.org/sites | |
| Log | |
| Files | |
| Refs | |
| --- | |
| index.md (794B) | |
| --- | |
| 1 Site-Specific Stylesheets | |
| 2 ========================= | |
| 3 | |
| 4 Please add stylesheets you would like the world to use for making the we… | |
| 5 useful (or fix its bugs). See the wiki section on how to do this. | |
| 6 | |
| 7 Howto | |
| 8 ----- | |
| 9 Surf has the feature to apply site-specific stylesheets for websites. Th… | |
| 10 controlled by changing the `styles` array in your config.h | |
| 11 | |
| 12 /* styles */ | |
| 13 static SiteStyle styles [] = { | |
| 14 /* regexp file in $styledir */ | |
| 15 ... | |
| 16 }; | |
| 17 | |
| 18 Now add a new entry: | |
| 19 | |
| 20 { ".*www.wikipedia.org.*", "wikipedia.css" }; | |
| 21 | |
| 22 Then create the styles directory: | |
| 23 | |
| 24 % mkdir -p $HOME/.surf/styles | |
| 25 | |
| 26 And add a `wikipedia.css` file there containing: | |
| 27 | |
| 28 * { | |
| 29 font-weight: bold; | |
| 30 } | |
| 31 | |
| 32 Now use your favourite method to recompile and run surf. You will notice | |
| 33 that on `wikipedia.org` all text is now in bold. | |
| 34 |