sites

public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log | Files | Refs

commit 2668de1ad6d7e0b3c5b4a73eb76c42bf4177bc5d
parent 020d17d733fed691d055de1783932e8a98873ca3
Author: Christoph Lohmann <20h@r-36.net>
Date:   Sat, 17 Jan 2015 21:57:06 +0100

Adding a stylesheets subsection for surf.

Diffstat:
Asurf.suckless.org/stylesheets/index.md | 34++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+), 0 deletions(-)

diff --git a/surf.suckless.org/stylesheets/index.md b/surf.suckless.org/stylesheets/index.md @@ -0,0 +1,34 @@ +Site-Specific Stylesheets +========================= + +Please add stylesheets you would like the world to use for making the web more +useful (or fix its bugs). See the wiki section on how to do this. + +Howto +----- +Surf has the feature to apply site-specific stylesheets for websites. This is +controlled by changing the `styles` array in your config.h + + /* styles */ + static SiteStyle styles [] = { + /* regexp file in $styledir */ + ... + }; + +Now add a new entry: + + { ".*www.wikipedia.org.*", "wikipedia.css" }; + +Then create the styles directory: + + % mkdir -p $HOME/.surf/styles + +And add a file there containing: + + * { + font-weight: bold; + } + +Now use your favourite method to recompile and run surf. You will notice +that on `wikipedia.org` all text is now in bold. +