css.rst
This file
Path
docs/tutorial/css.rst
31 lines · 1.3 KiB
Last changed by
Added lazyloading pattern and explicit chapter links in tutorial.Armin Ronacherbefore adoption9d19b77
History of this fileTake it
Added lazyloading pattern and explicit chapter links in tutorial.Armin Ronacherbefore adoption9d19b77
lines 1–2why, one step back1.. _tutorial-css:2New style for the documentation. Looks more like the website now.Armin Ronacherbefore adoptionbcf347f
lines 3–29why, one step back3Step 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; }17 18 .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; }Added lazyloading pattern and explicit chapter links in tutorial.Armin Ronacherbefore adoption9d19b77
lines 30–31why, one step back3031Continue with :ref:`tutorial-testing`.