unneeded for web

This commit is contained in:
Mark McGranaghan 2012-10-09 08:39:22 -07:00
parent bf370a0434
commit 35cf73b12f
2 changed files with 89 additions and 40 deletions

84
meta/chapters.txt Normal file
View File

@ -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

View File

@ -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;
}