Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Better basic styling

Signed-off-by: Chris Schneider <chris@christopher-schneider.com>
  • Loading branch information...
commit f82889bb9187cf1e742023707d4cd8da775d997b 1 parent 9ae8d5e
Karel Minarik authored January 17, 2009 cschneid committed January 17, 2009
42  assets/book.css
... ...
@@ -1,10 +1,11 @@
1 1
 body
2  
-  { color: #000;
3  
-    background: #fff;
4  
-    font-family: Helvetica, Arial, sans-serif;
  2
+  { color: #222;
  3
+    background: #fafafa;
  4
+    font-size: 80%;
  5
+    font-family: 'Lucida Grande', Verdana, sans-serif;
5 6
     padding: 1em 2em; 
6 7
     margin: auto 2em;
7  
-    border: 1px solid #ccc; 
  8
+    border: 1px solid #d5d8db; 
8 9
     border-top: none; border-bottom: none; }
9 10
 
10 11
 body h1,
@@ -16,17 +17,28 @@ body h5
16 17
 
17 18
 body h1
18 19
   { color: #fff;
19  
-    background: #444;
  20
+    background: #404142;
20 21
     font-size: 160%;
21  
-    padding: 0.4em 0.4em 0.2em 0.4em;
  22
+    padding: 0.4em 0.4em 0.3em 0.4em;
22 23
     margin: 2em 0 0 0; }
23 24
 
24  
-body pre  
  25
+body h2
  26
+  { margin: 1.2em 0 0.2em 0; }
  27
+
  28
+body h3
  29
+  { margin: 0.8em 0 0.1em 0; }
  30
+
  31
+body h4,
  32
+body h5
  33
+  { margin: 0.4em 0 0.05em 0; }
  34
+
  35
+body code
25 36
   { color: #444; 
26  
-    font-size: 110%; 
27  
-    white-space: pre-wrap; white-space: -moz-pre-wrap !important; 
28  
-    padding: 1em; 
29  
-    border: 4px solid #fafafa; }
  37
+    font-size: 120%; }
  38
+body pre  
  39
+  { white-space: pre-wrap; white-space: -moz-pre-wrap !important;
  40
+    padding: 1em;
  41
+    border: 4px solid #dfe2e5; }
30 42
 
31 43
 body a
32 44
   { color: #1177DD;
@@ -38,4 +50,10 @@ body p
38 50
   { margin: 0 0 1em 0; }
39 51
 
40 52
 body hr
41  
-  { display: none; }
  53
+  { display: none; }
  54
+  
  55
+/* TOC */
  56
+.maruku_toc ul { font-weight: bold; padding: 0em; }
  57
+.maruku_toc ul ul { font-weight: normal; padding: 0em 0 0.5em 1em; }
  58
+.maruku_toc ul ul ul { font-weight: normal; padding: 0em 0 0.25em 0.5em; }
  59
+.maruku_toc ul ul ul ul { font-weight: normal; padding: 0em 0 0.1em 0.25em; }
1  book/TOC.markdown
Source Rendered
... ...
@@ -1,4 +1,5 @@
1 1
 CSS: ./book.css
  2
+Title: Sinatra Book
2 3
 
3 4
 Table of Contents
4 5
 =================

0 notes on commit f82889b

Please sign in to comment.
Something went wrong with that request. Please try again.