mirror of
https://github.com/kennethreitz/dive-into-python3.git
synced 2026-06-05 15:00:18 +00:00
933dc9459a
--HG-- rename : humansize.py => examples/humansize.py rename : roman1.py => examples/roman1.py rename : roman2.py => examples/roman2.py rename : roman3.py => examples/roman3.py rename : roman4.py => examples/roman4.py rename : roman5.py => examples/roman5.py rename : roman6.py => examples/roman6.py rename : roman7.py => examples/roman7.py rename : roman8.py => examples/roman8.py rename : romantest1.py => examples/romantest1.py rename : romantest2.py => examples/romantest2.py rename : romantest3.py => examples/romantest3.py rename : romantest4.py => examples/romantest4.py rename : romantest5.py => examples/romantest5.py rename : romantest6.py => examples/romantest6.py rename : romantest7.py => examples/romantest7.py rename : romantest8.py => examples/romantest8.py
102 lines
4.5 KiB
CSS
102 lines
4.5 KiB
CSS
/*
|
|
|
|
"Dive Into Python 3" stylesheet
|
|
|
|
Copyright (c) 2009, Mark Pilgrim, All rights reserved.
|
|
|
|
Redistribution and use in source and binary forms, with or without modification,
|
|
are permitted provided that the following conditions are met:
|
|
|
|
* Redistributions of source code must retain the above copyright notice,
|
|
this list of conditions and the following disclaimer.
|
|
* Redistributions in binary form must reproduce the above copyright notice,
|
|
this list of conditions and the following disclaimer in the documentation
|
|
and/or other materials provided with the distribution.
|
|
|
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 'AS IS'
|
|
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
|
|
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
|
|
Classname Legend
|
|
|
|
.w = "widgets" = wrapper block for hide/open/download links dynamically inserted into code listings
|
|
.b = "block" = internal block dynamically inserted into code listings
|
|
.d = "download" = download link for code listings
|
|
.p = "prompt" = command-line or interactive shell prompt within code listings
|
|
.q = "quote" = quote at beginning of each chapter
|
|
.f = "fancy" = first paragraph of each chapter (gets a fancy drop-cap)
|
|
.c = "centered" = centered footer text
|
|
|
|
.note = "note/caution/important" = indented block for tips/gotchas/language comparisons
|
|
.baa = "best available ampersand" = wrapper block for ampersands
|
|
|
|
|
|
Acknowledgements & Inspirations
|
|
|
|
"The Elements of Typographic Style Applied to the Web" ... http://webtypography.net/toc/
|
|
"Setting Type on the Web to a Baseline Grid" ............. http://www.alistapart.com/articles/settingtypeontheweb
|
|
"Compose to a Vertical Rhythm" ........................... http://24ways.org/2006/compose-to-a-vertical-rhythm
|
|
"Use the Best Available Ampersand" ....................... http://simplebits.com/notebook/2008/08/14/ampersands.html
|
|
"Unicode Support in HTML, Fonts, and Web Browsers" ....... http://alanwood.net/unicode/
|
|
|
|
*/
|
|
|
|
/* typography */
|
|
body,.w a{font:medium 'Gill Sans','Gill Sans MT',Corbel,Helvetica,Jara,'Nimbus Sans L',sans-serif;line-height:1.75;word-spacing:0.1em}
|
|
pre,kbd,samp,code,var{font-family:Consolas,'Andale Mono',Monaco,'Liberation Mono','Bitstream Vera Sans Mono','DejaVu Sans Mono',monospace;font-size:medium;line-height:1.75;word-spacing:0}
|
|
span{font:medium 'Arial Unicode MS',FreeSerif,OpenSymbol,'DejaVu Sans',sans-serif}
|
|
pre span{font-family:'Arial Unicode MS','DejaVu Sans',FreeSerif,OpenSymbol,sans-serif}
|
|
.baa{font:oblique large Constantia,Baskerville,Palatino,'Palatino Linotype','URW Palladio L',serif}
|
|
abbr{font-variant:small-caps;text-transform:lowercase;letter-spacing:0.1em}
|
|
.q{text-align:right;font-style:oblique}
|
|
.q span{font-size:large}
|
|
.note{margin:3.5em 4.94em}
|
|
.note span{display:block;float:left;font-size:xx-large;line-height:0.875;margin:0 0.22em 0 -1.22em}
|
|
.c,pre,.w,.w a,.d{line-height:2.154}
|
|
.f:first-letter{float:left;color:#ddd;padding:0.11em 4px 0 0;font:normal 4em/0.68 serif}
|
|
h1,h2,h3,p,ul,ol{margin:1.75em 0;font-size:medium}
|
|
|
|
/* basics */
|
|
html{background:#fff;color:#000}
|
|
body{margin:1.75em 28px}
|
|
form div{float:right}
|
|
.c{text-align:center;margin:2.154em 0}
|
|
|
|
/* links */
|
|
a{text-decoration:none;border-bottom:1px dotted}
|
|
a:hover{border-bottom:1px solid}
|
|
a:link,.w a{color:#26c}
|
|
a:visited{color:#93c}
|
|
.c a{color:inherit}
|
|
|
|
/* code blocks */
|
|
pre{white-space:pre-wrap;padding-left:2.154em;border-left:1px solid #ddd}
|
|
.w{float:left}
|
|
.c,.w,.w a,.d{font-size:small}
|
|
.b,ol,p,blockquote,h1,h2,h3{clear:left}
|
|
pre a,.w a{padding:0.4375em 0}
|
|
.w a{text-decoration:underline}
|
|
kbd{font-weight:bold}
|
|
.p{color:#667}
|
|
|
|
/* overrides */
|
|
li ol,.q{margin:0}
|
|
pre a,.w a,pre a:hover{border:0}
|
|
|
|
/* headers */
|
|
h1{background:PapayaWhip;width:100%} /* all hail PapayaWhip */
|
|
h1:before{content:"Chapter " counter(h1) ". "}
|
|
h1{counter-reset:h2}
|
|
h2:before{counter-increment:h2;content:counter(h1) "." counter(h2) ". "}
|
|
h2{counter-reset:h3}
|
|
h3:before{counter-increment:h3;content:counter(h1) "." counter(h2) "." counter(h3) ". "}
|