css.rst
This file
Path
docs/tutorial/css.rst
27 lines · 1.2 KiB
Last changed by
New style for the documentation. Looks more like the website now.Armin Ronacherbefore adoptionbcf347f
History of this fileTake it
New style for the documentation. Looks more like the website now.Armin Ronacherbefore adoptionbcf347f
lines 1–27why, one step back1Step 7: Adding Style2====================34Now that everything else works, it's time to add some style to the5application. Just create a stylesheet called `style.css` in the `static`6folder we created before:78.. sourcecode:: css910 body { font-family: sans-serif; background: #eee; }11 a, h1, h2 { color: #377BA8; }12 h1, h2 { font-family: 'Georgia', serif; margin: 0; }13 h1 { border-bottom: 2px solid #eee; }14 h2 { font-size: 1.2em; }15 16 .page { margin: 2em auto; width: 35em; border: 5px solid #ccc;17 padding: 0.8em; background: white; }18 .entries { list-style: none; margin: 0; padding: 0; }19 .entries li { margin: 0.8em 1.2em; }20 .entries li h2 { margin-left: -1em; }21 .add-entry { font-size: 0.9em; border-bottom: 1px solid #ccc; }22 .add-entry dl { font-weight: bold; }23 .metanav { text-align: right; font-size: 0.8em; padding: 0.3em;24 margin-bottom: 1em; background: #fafafa; }25 .flash { background: #CEE5F5; padding: 0.5em;26 border: 1px solid #AACBE2; }27 .error { background: #F0D6D6; padding: 0.5em; }