From 0e060e1599e9ffbdc42ab848fdb3af80dd0455be Mon Sep 17 00:00:00 2001 From: Mark Pilgrim Date: Sun, 29 Mar 2009 11:42:12 -0500 Subject: [PATCH] css fiddling --- bsb.png | Bin 0 -> 1034 bytes dip2 | 4 ---- dip3.css | 11 ++++++----- publish | 6 +++--- your-first-python-program.html | 4 +++- 5 files changed, 12 insertions(+), 13 deletions(-) create mode 100644 bsb.png diff --git a/bsb.png b/bsb.png new file mode 100644 index 0000000000000000000000000000000000000000..4519263f194d71afc93d8907fcf814a4642be9a7 GIT binary patch literal 1034 zcmeAS@N?(olHy`uVBq!ia0vp^j6j^i!3-n|KCJ=?u%tWsIx;Y9?C1WI$jZRL%n;xc z;%Z`UWny7%Vqs%qX=h?(Z({9WYVBxh<78^h+9c}3oW9b`b=@)P5mtg6iWEGHX z6_{cbm}(W2W)+-a6_RNknq?iDZ5@_t9iC?$k#7@GU=vwn6IE;zRbmreY7NNl(O!$cm^*! z+cDEL{a%x+_q4SUTh;UwHB;}l`9^PBnws+T&5f<;_Z#;(yZ6nt2n{HC7IU)IJN%T^ zs&!ZI>ZNbX7k}nw-XI+IyzRILC|W#S{an^L HB{Ts5tJ=?N literal 0 HcmV?d00001 diff --git a/dip2 b/dip2 index 36c6ed1..64419e7 100644 --- a/dip2 +++ b/dip2 @@ -48,10 +48,6 @@
  • 4.6.1. Using the and-or Trick -
  • 4.7. Using lambda Functions -
  • 4.8. Putting It All Together
  • 4.9. Summary diff --git a/dip3.css b/dip3.css index 868b93d..2cb8f99 100644 --- a/dip3.css +++ b/dip3.css @@ -60,13 +60,13 @@ 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} +.note span{display:block;float:left;font-size:xx-large;line-height:0.875;margin:0 0.22em 0 -1.22em;color:steelblue} .c,pre,.w,.w a,.d{line-height:2.154} .f:first-letter{float:left;color:lightblue;padding:0.11em 4px 0 0;font:normal 4em/0.68 serif} p,ul,ol{margin:1.75em 0;font-size:medium} /* basics */ -html{background:#fff;color:#333} +html{background:white;color:darkslategray} body{margin:1.75em 28px} form div{float:right} .c{text-align:center;margin:2.154em 0} @@ -75,7 +75,7 @@ form div{float:right} a{text-decoration:none;border-bottom:1px dotted} a:hover{border-bottom:1px solid} a:link,.w a{color:steelblue} -a:visited{color:#93c} +a:visited{color:darkorchid} .c a{color:inherit} /* code blocks */ @@ -103,8 +103,9 @@ h1{border-bottom:4px double;width:100%;margin:1em 0} h1:before{content:"Chapter " counter(h1) ". "} h1{counter-reset:h2} h2:before{counter-increment:h2;content:counter(h1) "." counter(h2) ". "} -h2{counter-reset:h3;border-top:1px dotted;margin-top:1.75em;padding-top:1.75em} +h2{counter-reset:h3;border-top:1px dotted;padding-top:1.75em} +h2,h3{margin-top:1.75em} #toc + h2{border:0;margin:0;padding:0} #toc + h2:before{content:""} h3:before{counter-increment:h3;content:counter(h1) "." counter(h2) "." counter(h3) ". "} -aside{display:block;float:right;font-style:oblique;font-size:xx-large;width:25%;margin:1.75em 0 .75em 1.75em;background:steelblue;color:white;padding:1.75em;border:1px solid;-moz-border-radius:1em;-webkit-border-radius:1em;border-radius:1em} \ No newline at end of file +aside{display:block;float:right;font-style:oblique;font-size:xx-large;width:25%;margin:1.75em 0 .75em 1.75em;background:steelblue url(bsb.png) repeat-x;color:white;padding:1.75em;border:1px solid;-moz-border-radius:1em;-webkit-border-radius:1em;border-radius:1em} \ No newline at end of file diff --git a/publish b/publish index 2f8aea0..79026cd 100644 --- a/publish +++ b/publish @@ -3,7 +3,7 @@ # make build directory and copy original files there for preflighting rm -rf build mkdir build -cp robots.txt *.js *.css build/ +cp robots.txt *.js *.css *.png build/ cp -R examples build/ # minimize HTML (note: this script is quite fragile and relies on knowledge of how I write HTML) @@ -35,8 +35,8 @@ sed -i -e "s|=http:|=|g" build/*.html sed -i -e "s|href=index.html|href=/|g" build/*.html # set file permissions (hg resets these, don't know why) -chmod 644 build/*.html build/*.css build/*.js build/examples/*.py build/examples/*.txt build/*.txt +chmod 644 build/*.html build/*.css build/*.js build/examples/*.py build/examples/*.txt build/*.txt build/*.png # ship it! rsync -essh -avzP build/$revision.js build/html5.js diveintomark.org:~/web/wearehugh.com/dip3/ -rsync -essh -avzP build/*.html build/examples build/*.txt diveintomark.org:~/web/diveintopython3.org/ +rsync -essh -avzP build/*.html build/examples build/*.txt build/*.png diveintomark.org:~/web/diveintopython3.org/ diff --git a/your-first-python-program.html b/your-first-python-program.html index fe671e5..3c8f654 100644 --- a/your-first-python-program.html +++ b/your-first-python-program.html @@ -5,7 +5,9 @@