From cdd12d74005e879bd9a733a6f11117b78872c3c6 Mon Sep 17 00:00:00 2001 From: Mark McGranaghan Date: Sun, 7 Oct 2012 12:11:53 -0700 Subject: [PATCH] initial contents styling --- src/base64-encoding/base64-encoding.go | 2 ++ src/book.css | 26 ++++++++++++++++++- src/closing-channels/closing-channels.go | 2 ++ src/contents.txt | 2 +- .../non-blocking-channel-operations.go} | 2 ++ 5 files changed, 32 insertions(+), 2 deletions(-) rename src/{nonblocking-channel-operations/nonblocking-channel-operations.go => non-blocking-channel-operations/non-blocking-channel-operations.go} (94%) diff --git a/src/base64-encoding/base64-encoding.go b/src/base64-encoding/base64-encoding.go index e27a592..9fe52a2 100644 --- a/src/base64-encoding/base64-encoding.go +++ b/src/base64-encoding/base64-encoding.go @@ -1,3 +1,5 @@ +// ## Base64 Encoding + package main import b64 "encoding/base64" diff --git a/src/book.css b/src/book.css index 4204bbe..9d3233d 100644 --- a/src/book.css +++ b/src/book.css @@ -48,6 +48,11 @@ div.chapter { margin-right: auto; margin-bottom: 32px; } +div#introduction, div#contents { + width: 330px; + min-width: 330px; + max-width: 330px; +} div#title { page-break-after: always; } @@ -57,9 +62,28 @@ div#contents { div#introduction { page-break-after: always; } -div#introduction p, h2, h3 { +div#introduction p { 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 { border: 0; outline: 0; diff --git a/src/closing-channels/closing-channels.go b/src/closing-channels/closing-channels.go index 1758887..5c8b629 100644 --- a/src/closing-channels/closing-channels.go +++ b/src/closing-channels/closing-channels.go @@ -1,3 +1,5 @@ +// ## Closing Channels + package main import "fmt" diff --git a/src/contents.txt b/src/contents.txt index 88aeb61..617ba3a 100644 --- a/src/contents.txt +++ b/src/contents.txt @@ -37,7 +37,7 @@ timeouts scatter-gather rate-limiting worker-pools -nonblocking-channel-operations +non-blocking-channel-operations closing-channels timers tickers diff --git a/src/nonblocking-channel-operations/nonblocking-channel-operations.go b/src/non-blocking-channel-operations/non-blocking-channel-operations.go similarity index 94% rename from src/nonblocking-channel-operations/nonblocking-channel-operations.go rename to src/non-blocking-channel-operations/non-blocking-channel-operations.go index ad13299..21729cb 100644 --- a/src/nonblocking-channel-operations/nonblocking-channel-operations.go +++ b/src/non-blocking-channel-operations/non-blocking-channel-operations.go @@ -1,3 +1,5 @@ +// ## Non-blocking Channel Operations + package main import "fmt"