Skip to content
Myr

css.rst

This file

Path

docs/tutorial/css.rst

31 lines · 1.2 KiB

Last changed by

Not known.

History of this file

Take it

The walk stopped after 200 commits: lines older than e9fa24c point at it.

Make travis install development werkzeugArmin Ronacherbefore adoptione9fa24c

lines 1–31why, one step back
1.. _tutorial-css:
23Step 7: Adding Style4====================56Now that everything else works, it's time to add some style to the7application. Just create a stylesheet called `style.css` in the `static`8folder we created before:910.. sourcecode:: css1112 body { font-family: sans-serif; background: #eee; }13 a, h1, h2 { color: #377ba8; }14 h1, h2 { font-family: 'Georgia', serif; margin: 0; }15 h1 { border-bottom: 2px solid #eee; }16 h2 { font-size: 1.2em; }1718 .page { margin: 2em auto; width: 35em; border: 5px solid #ccc;19 padding: 0.8em; background: white; }20 .entries { list-style: none; margin: 0; padding: 0; }21 .entries li { margin: 0.8em 1.2em; }22 .entries li h2 { margin-left: -1em; }23 .add-entry { font-size: 0.9em; border-bottom: 1px solid #ccc; }24 .add-entry dl { font-weight: bold; }25 .metanav { text-align: right; font-size: 0.8em; padding: 0.3em;26 margin-bottom: 1em; background: #fafafa; }27 .flash { background: #cee5F5; padding: 0.5em;28 border: 1px solid #aacbe2; }29 .error { background: #f0d6d6; padding: 0.5em; }3031Continue with :ref:`tutorial-testing`.