initial contents styling

This commit is contained in:
Mark McGranaghan 2012-10-07 12:11:53 -07:00
parent 6754abf779
commit cdd12d7400
5 changed files with 32 additions and 2 deletions

View File

@ -1,3 +1,5 @@
// ## Base64 Encoding
package main package main
import b64 "encoding/base64" import b64 "encoding/base64"

View File

@ -48,6 +48,11 @@ div.chapter {
margin-right: auto; margin-right: auto;
margin-bottom: 32px; margin-bottom: 32px;
} }
div#introduction, div#contents {
width: 330px;
min-width: 330px;
max-width: 330px;
}
div#title { div#title {
page-break-after: always; page-break-after: always;
} }
@ -57,9 +62,28 @@ div#contents {
div#introduction { div#introduction {
page-break-after: always; page-break-after: always;
} }
div#introduction p, h2, h3 { div#introduction p {
padding: 5px 5px 5px 5px; padding: 5px 5px 5px 5px;
} }
div#introduction h2, h3 {
padding: 10px 5px 10px 5px;
}
div#contents h2 {
padding: 10px 5px 10px 5px;
}
div#contents ul {
list-style: none;
padding: 0 0 0 5px;
margin: 0;
font-size: 18px;
line-height: 24px;
}
div#contents a:after {
content: leader(".") target-counter(attr(href, url), page);
}
div#contents a {
text-decoration: none;
}
table td { table td {
border: 0; border: 0;
outline: 0; outline: 0;

View File

@ -1,3 +1,5 @@
// ## Closing Channels
package main package main
import "fmt" import "fmt"

View File

@ -37,7 +37,7 @@ timeouts
scatter-gather scatter-gather
rate-limiting rate-limiting
worker-pools worker-pools
nonblocking-channel-operations non-blocking-channel-operations
closing-channels closing-channels
timers timers
tickers tickers

View File

@ -1,3 +1,5 @@
// ## Non-blocking Channel Operations
package main package main
import "fmt" import "fmt"