From 35cf73b12fd1c64e86334413615d9a125fcd14c0 Mon Sep 17 00:00:00 2001 From: Mark McGranaghan Date: Tue, 9 Oct 2012 08:39:22 -0700 Subject: [PATCH] unneeded for web --- meta/chapters.txt | 84 +++++++++++++++++++++++++++++++++++++++++++++++ style/site.css | 45 +++---------------------- 2 files changed, 89 insertions(+), 40 deletions(-) create mode 100644 meta/chapters.txt diff --git a/meta/chapters.txt b/meta/chapters.txt new file mode 100644 index 0000000..eb16424 --- /dev/null +++ b/meta/chapters.txt @@ -0,0 +1,84 @@ +hello-world +# values +# variables +# inline-assignment +# constants +# for +# if-else +# switch +# arrays +# slices +# maps +# range +# functions +# multiple-return-values +# varadic-functions +# closures +# recursion +# defer +# panic +# pointers +# new +# structs +# methods +# embedding +# interfaces +# errors +# ok-guards +# goroutines +# concurrent-goroutines +# channels +# channel-buffering +# channel-directions +# synchronization +# select +# timeouts +# scatter-gather +# rate-limiting +# worker-pools +# non-blocking-channel-operations +# closing-channels +timers +tickers +# state-goroutine +# state-mutex +sorting +sorting-by-functions +# collection-functions +# string-functions +# string-formatting +# regexs +# bytes +# json +# time +# epochs +# elapsed-time +# random-numbers +# number-parsing +# urls +# sha1-hashes +# base64-encoding +# reading-files +# writing-files +line-filters +# command-line-arguments +# command-line-flags +# environment-variables +# spawning-processes +# execing-processes +# signals +# exit +# http-client +# https-client +# redis +# postgres +# hello-web +# responses +# request-routing +# request-logging +# static-content +# basic-authentication +# canonical-hosts +# middleware +# graceful-shutdown +# https-servers diff --git a/style/site.css b/style/site.css index cb7a6cc..9d66918 100644 --- a/style/site.css +++ b/style/site.css @@ -1,38 +1,21 @@ /* Layout and typography */ -@page { margin: 48px 0px 48px 0px } - body { font-family: 'Palatino Linotype'; - font-size: 12px; - line-height: 16px; + font-size: 16px; + line-height: 20px; color: #252519; margin: 0; padding: 0; } -a { - color: #261a3b; -} -a:visited { +a, a:visited { color: #261a3b; } p { margin: 0; } -h1, h2, h3, h4, h5, h6 { +h2 { margin: 24px 0 12px 0; font-weight: normal; } -div#title { - text-align: center; -} -div#title h1 { - font-size: 72px; - margin-top: 4em; -} -div#title h3 { - font-size: 24px; - margin-top: 4em; - margin-bottom: 18em; -} h2 { font-size: 24px; } @@ -48,26 +31,11 @@ div.chapter { margin-right: auto; margin-bottom: 32px; } -div#introduction, div#contents { +div#contents { width: 330px; min-width: 330px; max-width: 330px; } -div#title { - page-break-after: always; -} -div#contents { - page-break-after: always; -} -div#introduction { - page-break-after: always; -} -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; } @@ -78,9 +46,6 @@ div#contents ul { font-size: 18px; line-height: 24px; } -div#contents a:after { - content: leader(".") target-counter(attr(href, url), page); -} div#contents a { text-decoration: none; }