[wiki] [sites] Adding a stylesheets subsection for surf. || Christoph Lohmann

From: <git_AT_suckless.org>
Date: Sat, 17 Jan 2015 21:57:27 +0100

commit 2668de1ad6d7e0b3c5b4a73eb76c42bf4177bc5d
Author: Christoph Lohmann <20h_AT_r-36.net>
Date: Sat Jan 17 21:57:06 2015 +0100

    Adding a stylesheets subsection for surf.

diff --git a/surf.suckless.org/stylesheets/index.md b/surf.suckless.org/stylesheets/index.md
new file mode 100644
index 0000000..5c4e5df
--- /dev/null
+++ b/surf.suckless.org/stylesheets/index.md
_AT_@ -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.
+
Received on Sat Jan 17 2015 - 21:57:27 CET

This archive was generated by hypermail 2.3.0 : Thu Jun 18 2015 - 17:40:03 CEST