Permalink
Browse files

Better basic styling

Signed-off-by: Chris Schneider <chris@christopher-schneider.com>
  • Loading branch information...
1 parent 9ae8d5e commit f82889bb9187cf1e742023707d4cd8da775d997b @karmi karmi committed with cschneid Jan 16, 2009
Showing with 31 additions and 12 deletions.
  1. +30 −12 assets/book.css
  2. +1 −0 book/TOC.markdown
View
42 assets/book.css
@@ -1,10 +1,11 @@
body
- { color: #000;
- background: #fff;
- font-family: Helvetica, Arial, sans-serif;
+ { color: #222;
+ background: #fafafa;
+ font-size: 80%;
+ font-family: 'Lucida Grande', Verdana, sans-serif;
padding: 1em 2em;
margin: auto 2em;
- border: 1px solid #ccc;
+ border: 1px solid #d5d8db;
border-top: none; border-bottom: none; }
body h1,
@@ -16,17 +17,28 @@ body h5
body h1
{ color: #fff;
- background: #444;
+ background: #404142;
font-size: 160%;
- padding: 0.4em 0.4em 0.2em 0.4em;
+ padding: 0.4em 0.4em 0.3em 0.4em;
margin: 2em 0 0 0; }
-body pre
+body h2
+ { margin: 1.2em 0 0.2em 0; }
+
+body h3
+ { margin: 0.8em 0 0.1em 0; }
+
+body h4,
+body h5
+ { margin: 0.4em 0 0.05em 0; }
+
+body code
{ color: #444;
- font-size: 110%;
- white-space: pre-wrap; white-space: -moz-pre-wrap !important;
- padding: 1em;
- border: 4px solid #fafafa; }
+ font-size: 120%; }
+body pre
+ { white-space: pre-wrap; white-space: -moz-pre-wrap !important;
+ padding: 1em;
+ border: 4px solid #dfe2e5; }
body a
{ color: #1177DD;
@@ -38,4 +50,10 @@ body p
{ margin: 0 0 1em 0; }
body hr
- { display: none; }
+ { display: none; }
+
+/* TOC */
+.maruku_toc ul { font-weight: bold; padding: 0em; }
+.maruku_toc ul ul { font-weight: normal; padding: 0em 0 0.5em 1em; }
+.maruku_toc ul ul ul { font-weight: normal; padding: 0em 0 0.25em 0.5em; }
+.maruku_toc ul ul ul ul { font-weight: normal; padding: 0em 0 0.1em 0.25em; }
View
1 book/TOC.markdown
@@ -1,4 +1,5 @@
CSS: ./book.css
+Title: Sinatra Book
Table of Contents
=================

0 comments on commit f82889b

Please sign in to comment.