Skip to content
Myr

css.rst

This file

Path

docs/tutorial/css.rst

31 lines · 1.2 KiB

Last changed by

Merge branch '0.11-maintenance'Markus Unterwaditzerbefore adoption7132feb

History of this file

Take it

1.. _tutorial-css:23Step 8: Adding Style4====================56Now that everything else works, it's time to add some style to the7application.  Just create a stylesheet called :file:`style.css` in the8:file:`static` folder: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`.