Skip to content

Commit

Permalink
Update Haiku Book CSS
Browse files Browse the repository at this point in the history
* Update headers to match User Guide better for font and spacing.
* 14.4px is the default font size (matching user guide).
* because we use em's for page width this makes the text area a bit narrower.
* Make note, warning, stop, remark notifications font size smaller to make
  them stand out a bit less and better matches the User Guide.
  • Loading branch information
jscipione committed Jan 16, 2013
1 parent 75dde2c commit 4aae53f
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions docs/user/book.css
Expand Up @@ -26,13 +26,14 @@ body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,
body {
color: #333333; /* mine shaft */
background-color: white;
font-size: 14.4px;
font-family: "DejaVu Sans", Arial, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
color: #0c3762; /* madison */
margin-top: 0.5em;
margin-bottom: 0.5em;
margin-top: 1em;
margin-bottom: 1em;
}

h1 {
Expand Down Expand Up @@ -64,7 +65,6 @@ h5, h6 {
}

p {
font-size: 14.4px;
margin-top: 0.5em;
margin-bottom: 0.5em;
}
Expand All @@ -78,7 +78,6 @@ td, th {
vertical-align: top;
text-align: left;
padding: 4px;
font-size: 14.4px;
}

caption {
Expand Down Expand Up @@ -165,16 +164,16 @@ div.summary {
}

div.headertitle {
margin: 0 auto;
width: 59em;
}

div.headertitle div.title {
color: #0c3762; /* madison */
font-size: 1.2em;
font-size: 1.3em;
font-weight: bold;
margin-top: 0.5em;
margin-bottom: 0.5em;
border-bottom: dotted thin #c0c0c0; /* silver */
margin-top: 1em;
margin-bottom: 1em;
}

.ingroups {
Expand Down Expand Up @@ -252,7 +251,6 @@ div.contents {
}

div.contents ul, div.contents ol {
font-size: 14.4px;
line-height: 1.3;
}

Expand Down Expand Up @@ -295,7 +293,6 @@ div.contents span.keycap, div.contents span.keysym {
}

div.contents div.textblock {
width: 95%;
margin-bottom: 20px;
}

Expand All @@ -313,7 +310,7 @@ div.contents li {
}

div.contents dd {
font-size: 14.4px;
font-size: 12px;
}

div.contents dt {
Expand All @@ -323,13 +320,12 @@ div.contents dt {

/* The boxes from the userguide */
dl.note, dl.remark, dl.warning, dl.attention {
width: 100%;
border-style: solid;
border-width: 2px;
margin-top: 24px;
margin-bottom: 24px;
padding: 4px;
min-height: 64px;
min-height: 48px;
}

dl.note {
Expand Down

0 comments on commit 4aae53f

Please sign in to comment.