aboutsummaryrefslogtreecommitdiffstats
path: root/docs/source
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2012-07-14 22:58:42 -0500
committerChristopher Allan Webber <cwebber@dustycloud.org>2012-07-14 22:58:42 -0500
commit62157a898f60fab7c82eb76b2969354f9f02390d (patch)
tree8ebcbef192388de79676d5793027d9e5ae3b2d48 /docs/source
parent667d1fc8932f01c0b0076b45012a36e0b11b1978 (diff)
downloadmediagoblin-62157a898f60fab7c82eb76b2969354f9f02390d.tar.lz
mediagoblin-62157a898f60fab7c82eb76b2969354f9f02390d.tar.xz
mediagoblin-62157a898f60fab7c82eb76b2969354f9f02390d.zip
Added a section describing how to do theming via simple CSS stuff!
Diffstat (limited to 'docs/source')
-rw-r--r--docs/source/siteadmin/theming.rst24
1 files changed, 24 insertions, 0 deletions
diff --git a/docs/source/siteadmin/theming.rst b/docs/source/siteadmin/theming.rst
index 63beaf3c..086838bc 100644
--- a/docs/source/siteadmin/theming.rst
+++ b/docs/source/siteadmin/theming.rst
@@ -224,6 +224,30 @@ can put whatever in here, but restating the license choice clearly is
probably a good idea.
+Simple theming by adding CSS
+============================
+
+Many themes won't require anything other than the ability to override
+some of MediaGoblin's core css. Thankfully, doing so is easy if you
+combine the above steps!
+
+In your theme, do the following (make sure you make the necessary
+directories and cd to your theme's directory first):
+
+ $ cp /path/to/mediagoblin/mediagoblin/templates/mediagoblin/extra_head.html templates/mediagoblin/
+
+Great, now open that file and add something like this at the end:
+
+ <link rel="stylesheet" type="text/css"
+ href="{{ request.staticdirect('/css/theme.css', 'theme') }}"/>
+
+You can name the css file whatever you like. Now make the directory
+for assets/css/ and add the file assets/css/theme.css
+
+You can now put custom CSS files in here and any CSS you add will
+override default MediaGoblin CSS.
+
+
Packaging it up!
================