tweak intro styling, fix css indentation

This commit is contained in:
Mark McGranaghan 2012-10-09 09:07:48 -07:00
parent fb76e45b2d
commit c597b89bf2
2 changed files with 39 additions and 27 deletions

View File

@ -44,16 +44,16 @@ table {
/* Layout and typography */ /* Layout and typography */
body { body {
font-family: 'Palatino Linotype'; font-family: 'Palatino Linotype';
font-size: 16px; font-size: 16px;
line-height: 20px; line-height: 20px;
color: #252519; color: #252519;
} }
em { em {
font-style: italic; font-style: italic;
} }
a, a:visited { a, a:visited {
color: #261a3b; color: #261a3b;
} }
h2 { h2 {
font-size: 32px; font-size: 32px;
@ -67,17 +67,27 @@ div.chapter {
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
} }
div#intro {
width: 400px;
min-width: 400px;
max-width: 400px;
margin-left: auto;
margin-right: auto;
}
div#intro ul {
padding-top: 5px;
}
table td { table td {
border: 0; border: 0;
outline: 0; outline: 0;
} }
td.docs { td.docs {
width: 400px; width: 400px;
max-width: 400px; max-width: 400px;
min-width: 400px; min-width: 400px;
min-height: 5px; min-height: 5px;
vertical-align: top; vertical-align: top;
text-align: left; text-align: left;
} }
td.docs p { td.docs p {
padding-right: 5px; padding-right: 5px;
@ -85,23 +95,23 @@ td.docs p {
padding-bottom: 15px; padding-bottom: 15px;
} }
td.code { td.code {
width: 400px; width: 400px;
max-width: 400px; max-width: 400px;
min-width: 400px; min-width: 400px;
padding-top: 5px; padding-top: 5px;
padding-right: 5px; padding-right: 5px;
padding-left: 5px; padding-left: 5px;
padding-bottom: 11px; padding-bottom: 11px;
vertical-align: top; vertical-align: top;
background: #f0f0f0; background: #f0f0f0;
} }
td.code.empty { td.code.empty {
border-left: none; border-left: none;
background: #ffffff; background: #ffffff;
} }
pre, code { pre, code {
font-size: 12px; line-height: 16px; font-size: 12px; line-height: 16px;
font-family: 'Monaco'; font-family: 'Monaco';
} }
/* Syntax highlighting */ /* Syntax highlighting */

View File

@ -206,7 +206,9 @@ func renderIndex(chapterIds []string) {
<link rel=stylesheet href="../style/site.css"> <link rel=stylesheet href="../style/site.css">
</head> </head>
<body> <body>
<div class="chapter" id="contents"><h2>Go by Example</h2><ul>`) <div id="intro">
<h2>Go by Example</h2>
<ul>`)
for _, chapterId := range chapterIds { for _, chapterId := range chapterIds {
chapterLines := readLines("src/" + chapterId + "/" + chapterId + ".go") chapterLines := readLines("src/" + chapterId + "/" + chapterId + ".go")