Skip to content

Commit

Permalink
[#847] Add screenshots to CSS tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Hammond committed Nov 28, 2013
1 parent 0dafeaf commit 116a9b9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
Binary file added doc/images/custom-css.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/images/more-custom-css.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 9 additions & 2 deletions doc/theming/css.rst
Expand Up @@ -36,8 +36,12 @@ extended to link to custom CSS files (any code in the styles block will appear
in the ``<head>`` of the HTML page).

Restart the development web server and reload the CKAN page in your browser,
and you should see the background color of the account masthead change. This
custom color should appear on all pages of your CKAN site.
and you should see the background color of the account masthead change:

.. image:: /images/custom-css.png
:alt: The account masthead with some custom CSS.

This custom color should appear on all pages of your CKAN site.

Now that we have CKAN using our CSS file, we can add more CSS rules to the file
and customize CKAN's CSS as much as we want. There's nothing special about CSS
Expand All @@ -54,6 +58,9 @@ Let's add a bit more code to our ``example_theme.css`` file. This CSS
implements a partial imitation of the `datahub.io <http://datahub.io/>`_ theme
(circa 2013):

.. image:: /images/more-custom-css.png
:alt: A partial imitation of the datahub.io theme, circa 2013.

.. literalinclude:: /../ckanext/example_theme/v14_more_custom_css/public/example_theme.css

.. todo::
Expand Down

0 comments on commit 116a9b9

Please sign in to comment.