Created
March 27, 2011 09:26
-
-
Save rubik/889079 to your computer and use it in GitHub Desktop.
Diff between Werkzeug and Pyg Sphinx themes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- a/werkzeug.css_t | |
+++ b/pyg.css_t | |
@@ -7,8 +7,8 @@ | |
*/ | |
{% set page_width = '980px' %} | |
-{% set sidebar_width = '220px' %} | |
-{% set font_family = "Georgia, serif" %} | |
+{% set sidebar_width = '230px' %} | |
+{% set font_family = "'Ubuntu', serif" %} | |
{% set header_font_family = "'Ubuntu', " ~ font_family %} | |
@import url("basic.css"); | |
@@ -18,7 +18,7 @@ | |
body { | |
font-family: {{ font_family }}; | |
- font-size: 16px; | |
+ font-size: 1em; | |
background-color: white; | |
color: #000; | |
margin: 0; | |
@@ -68,7 +68,10 @@ div.footer a { | |
div.related { | |
display: none; | |
} | |
- | |
+ | |
+ | |
+/* -- sidebar ---------------------------------------------------------------- */ | |
+ | |
div.sphinxsidebar a { | |
color: #444; | |
text-decoration: none; | |
@@ -80,7 +83,7 @@ div.sphinxsidebar a:hover { | |
} | |
div.sphinxsidebar { | |
- font-size: 13px; | |
+ font-size: 90%; | |
line-height: 1.5; | |
} | |
@@ -93,23 +96,29 @@ div.sphinxsidebarwrapper p.logo { | |
margin: 0; | |
text-align: center; | |
} | |
- | |
+ | |
+div.sphinxsidebar h1, | |
+div.sphinxsidebar h2, | |
div.sphinxsidebar h3, | |
-div.sphinxsidebar h4 { | |
+div.sphinxsidebar h4, | |
+div.sphinxsidebar h5, | |
+div.sphinxsidebar h6 { | |
font-family: {{ font_family }}; | |
+ font-weight: lighter; | |
+ font-size: 2 | |
+} | |
+ | |
+div.sphinxsidebar h3, | |
+div.sphinxsidebar h4 { | |
color: #444; | |
font-size: 24px; | |
- font-weight: normal; | |
margin: 0 0 5px 0; | |
padding: 0; | |
} | |
- | |
-div.sphinxsidebar h4 { | |
- font-size: 20px; | |
-} | |
div.sphinxsidebar h3 a { | |
color: #444; | |
+ font-family: {{ font_family }} | |
} | |
div.sphinxsidebar p.logo a, | |
@@ -133,17 +142,34 @@ div.sphinxsidebar ul { | |
div.sphinxsidebar input { | |
border: 1px solid #ccc; | |
font-family: {{ font_family }}; | |
- font-size: 14px; | |
+ font-size: 0.875em; | |
} | |
div.sphinxsidebar form.search input[name="q"] { | |
- width: 130px; | |
+ width: 8.125em; | |
} | |
/* -- body styles ----------------------------------------------------------- */ | |
- | |
+ | |
+div.highlight { | |
+ font-size: 1.2em; | |
+ background-color: white; | |
+} | |
+ | |
+div.highlight pre { | |
+ background-color: #E5EDF1; | |
+} | |
+ | |
+div.body p { | |
+ font-family: {{ font_family }}; | |
+ background-color: transparent; | |
+} | |
+ | |
a { | |
- color: #0B506D; | |
+ font-family: 'Georgia'; | |
+ font-size: 105%; | |
+ font-style: italic; | |
+ color: #185F6D; | |
background-color: transparent; | |
text-decoration: underline; | |
} | |
@@ -217,10 +243,6 @@ div.admonition p.last { | |
margin-bottom: 0; | |
} | |
-div.highlight { | |
- background-color: white; | |
-} | |
- | |
dt:target, .highlight { | |
background: #FAF3E8; | |
} | |
@@ -248,7 +270,7 @@ p.admonition-title:after { | |
} | |
pre, tt { | |
- font-family: 'Consolas', 'Menlo', 'Deja Vu Sans Mono', 'Bitstream Vera Sans Mono', monospace; | |
+ font-family: {{ font_family }} | |
font-size: 0.9em; | |
} | |
@@ -385,3 +407,16 @@ a.footnote-reference:hover { | |
a:hover tt { | |
background: #EEE; | |
} | |
+ | |
+span.pre { | |
+ font-size: 1.125em; | |
+} | |
+ | |
+tt.descname { | |
+ font-size: 1.3em; | |
+} | |
+ | |
+tt.descclassname { | |
+ font-size: 1.25em; | |
+ font-style: italic; | |
+} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment