| 1 |
body { |
| 2 |
color: #333; |
| 3 |
background: white; |
| 4 |
margin-left: +30%; |
| 5 |
width: 50%; /* body is 50% of screen width */ |
| 6 |
padding: 0.5em; /* this will make a difference if I decide to |
| 7 |
have the background a different colour */ |
| 8 |
/* I can't decide on font: Optima's always nice, but Gill looks |
| 9 |
agreeably intense. Helvetica's a decent fallback. */ |
| 10 |
font-family: "Helvetica Neue", Helvetica, "Gill Sans", gill, sans-serif; |
| 11 |
/* font-family: Optima, "Gill Sans", gill, Helvetica, sans-serif; */ |
| 12 |
/* font-family: "Gill Sans", gill, Helvetica, sans-serif; */ |
| 13 |
/* I seem to have used 11pt at some point in the past, but this |
| 14 |
is far too big -- did I ever have a reason for that, or is it |
| 15 |
just due to browser changes? */ |
| 16 |
font-size: 10pt; |
| 17 |
line-height: 150%; |
| 18 |
} |
| 19 |
|
| 20 |
/* adapt to wider screens */ |
| 21 |
@media screen and (min-width: 700pt) { |
| 22 |
body { |
| 23 |
margin-left: 210pt; |
| 24 |
width: 350pt; |
| 25 |
} |
| 26 |
} |
| 27 |
|
| 28 |
/* The following appears not to work in Safari or Chrome |
| 29 |
-- don't know why, yet. |
| 30 |
@media print { |
| 31 |
@page :right { |
| 32 |
size: auto; |
| 33 |
body { |
| 34 |
margin-top: 2cm; |
| 35 |
margin-bottom: 3cm; |
| 36 |
margin-left: 10%; |
| 37 |
width: 60%; |
| 38 |
margin-right: 30%; |
| 39 |
color: #d33; |
| 40 |
} |
| 41 |
} |
| 42 |
@page :left { |
| 43 |
size: auto; |
| 44 |
body { |
| 45 |
margin-top: 2cm; |
| 46 |
margin-bottom: 3cm; |
| 47 |
margin-left: 30%; |
| 48 |
width: 60%; |
| 49 |
margin-right: 10%; |
| 50 |
color: #33d; |
| 51 |
} |
| 52 |
} |
| 53 |
} |
| 54 |
*/ |
| 55 |
|
| 56 |
div.topsidebar { |
| 57 |
float: right; |
| 58 |
width: 50%; /* ...of the body width (ie, 50% x 50% of screen) */ |
| 59 |
font-size: smaller; |
| 60 |
margin-left: 1em; |
| 61 |
padding-left: 1em; |
| 62 |
border-left: solid thin #AAA; |
| 63 |
} |
| 64 |
|
| 65 |
/* On wider screens, move the sidebar out to the right hand side */ |
| 66 |
/* This uses CSS3 media queries: http://www.w3.org/TR/css3-mediaqueries/ */ |
| 67 |
@media screen and (min-width: 700pt) and (max-width: 850pt) { |
| 68 |
body { |
| 69 |
margin-left: 210pt; |
| 70 |
width: 350pt; /* 50% of 700pt */ |
| 71 |
margin-right: auto; |
| 72 |
} |
| 73 |
div.topsidebar { |
| 74 |
position: absolute; |
| 75 |
/* I feel this size should be 595pt (350 + 210 + 0.05*700), |
| 76 |
but that's clearly not right -- I don't think I understand what the -5% |
| 77 |
in the h1 spec below is actually 5% of! */ |
| 78 |
left: 570pt; |
| 79 |
width: auto; |
| 80 |
margin-left: 0pt; |
| 81 |
padding-left: 0pt; |
| 82 |
border: none; |
| 83 |
} |
| 84 |
} |
| 85 |
/* On still-wider screens, expand the left-margin, keeping the sidebar attached to the right-hand edge. |
| 86 |
When the screen is 850pt wide (expanding from the @media case above), |
| 87 |
the left margin will be 210pt, the width 350pt, and the right margin therefore 290pt.*/ |
| 88 |
@media screen and (min-width: 850pt) { |
| 89 |
body { |
| 90 |
margin-right: 290pt; /* 290 = 850-(210+350) */ |
| 91 |
width: 350pt; |
| 92 |
margin-left: auto; /* ...takes up the slack */ |
| 93 |
} |
| 94 |
div.topsidebar { |
| 95 |
position: absolute; |
| 96 |
width: 290pt; /* same 290pt as above */ |
| 97 |
left: auto; |
| 98 |
right: 0%; |
| 99 |
padding-left: 0pt; |
| 100 |
border: none; |
| 101 |
} |
| 102 |
} |
| 103 |
|
| 104 |
|
| 105 |
code, pre { |
| 106 |
font-family: Monaco, fixed; |
| 107 |
font-size: 9pt; |
| 108 |
} |
| 109 |
|
| 110 |
a { text-decoration: none; } |
| 111 |
a:link { color: #66C; } |
| 112 |
a:visited { color: #669; } |
| 113 |
a[href]:hover { background: #EEE; } |
| 114 |
|
| 115 |
div.abstract { |
| 116 |
font-style: oblique; |
| 117 |
text-align: left; |
| 118 |
} |
| 119 |
div.abstract em { font-style: normal; } |
| 120 |
div.abstract code { |
| 121 |
font-style: normal; |
| 122 |
font-size: 80%; |
| 123 |
} |
| 124 |
|
| 125 |
h1, h2, h3, h4, h5, h6 { |
| 126 |
color: #822; |
| 127 |
font-weight: 100; /* few fonts have ultra-light weights */ |
| 128 |
line-height: 100%; /* no need to spread out titles */ |
| 129 |
} |
| 130 |
h1 { |
| 131 |
margin-left: -40%; |
| 132 |
margin-right: -5%; |
| 133 |
padding: 0.5em; |
| 134 |
border: solid thin #666; |
| 135 |
text-align: right; |
| 136 |
} |
| 137 |
h2 { |
| 138 |
margin-left: -40%; |
| 139 |
margin-right: -5%; |
| 140 |
padding: 0.2em; |
| 141 |
border-top: solid thin #666; |
| 142 |
clear: both; |
| 143 |
} |
| 144 |
|
| 145 |
h2.appendices { |
| 146 |
margin-top: 10ex; |
| 147 |
border-top: double medium #666; |
| 148 |
} |
| 149 |
h3 { |
| 150 |
margin-left: -30%; |
| 151 |
float: left; |
| 152 |
width: 25%; |
| 153 |
display: block; |
| 154 |
text-align: right; |
| 155 |
vertical-align: bottom; |
| 156 |
padding-top: 0pt; |
| 157 |
padding-right: 0.5em; |
| 158 |
margin-top: 0pt; |
| 159 |
line-height: 120%; |
| 160 |
} |
| 161 |
|
| 162 |
/* |
| 163 |
h4 { |
| 164 |
color: #C66; |
| 165 |
} |
| 166 |
*/ |
| 167 |
|
| 168 |
pre, table { background: #dde; } |
| 169 |
|
| 170 |
pre { |
| 171 |
padding: 1em; |
| 172 |
line-height: 130%; |
| 173 |
} |
| 174 |
|
| 175 |
table { |
| 176 |
font-size: smaller; |
| 177 |
} |
| 178 |
td { |
| 179 |
padding: 0.5ex; |
| 180 |
} |
| 181 |
|
| 182 |
Q:before { content: "“"; } |
| 183 |
Q:after { content: "”"; } |
| 184 |
|
| 185 |
img.smallimage { |
| 186 |
float: right; |
| 187 |
margin: 24pt; |
| 188 |
margin-right: -30%; |
| 189 |
} |
| 190 |
|
| 191 |
div.signature { |
| 192 |
margin-left: -40%; |
| 193 |
margin-right: -5%; |
| 194 |
margin-top: 4ex; |
| 195 |
text-align: right; |
| 196 |
border: solid thin #666; |
| 197 |
padding: 0.3em; |
| 198 |
clear: both; |
| 199 |
} |
| 200 |
|
| 201 |
/* ============================================================ |
| 202 |
* Some other curiosities of my one-time formatting for web pages |
| 203 |
*/ |
| 204 |
.doc-history { |
| 205 |
font-size: xx-small; |
| 206 |
background: #eee; |
| 207 |
line-height: 100%; |
| 208 |
} |
| 209 |
|
| 210 |
div.subtoc, div.subsubtoc { display: none; } |
| 211 |
|
| 212 |
/* ============================================================ |
| 213 |
* Special formatting for ToC |
| 214 |
*/ |
| 215 |
|
| 216 |
/* |
| 217 |
If there's significant amount of text in front of the first subsection, |
| 218 |
then the following are good to put in the per-document stylesheet: |
| 219 |
width: 25%; |
| 220 |
float: right; |
| 221 |
*/ |
| 222 |
div#toc { |
| 223 |
color: #888; |
| 224 |
padding: 0; |
| 225 |
font-size: smaller; |
| 226 |
text-align: right; |
| 227 |
} |
| 228 |
div#toc a:link { color: #888; } |
| 229 |
div#toc > ul { |
| 230 |
padding: 0pt; |
| 231 |
margin: 0pt; |
| 232 |
list-style: none; |
| 233 |
} |
| 234 |
div#toc li { |
| 235 |
padding: 0pt; |
| 236 |
display: inline-block; |
| 237 |
} |
| 238 |
div#toc li:before { |
| 239 |
content: "§ "; |
| 240 |
margin-left: 1em; |
| 241 |
} |
| 242 |
/* the following elements aren't currently generated by structure.lx */ |
| 243 |
div#toc li ul { |
| 244 |
padding-left: 1em; |
| 245 |
margin-left: 0; |
| 246 |
font-style: italic; |
| 247 |
display: inline; |
| 248 |
} |
| 249 |
div#toc li ul:before { |
| 250 |
content: "( "; |
| 251 |
} |
| 252 |
div#toc li ul:after { |
| 253 |
content: " ) "; |
| 254 |
} |
| 255 |
div#toc li li { |
| 256 |
padding-left: 0pt; |
| 257 |
} |
| 258 |
div#toc li li:after { |
| 259 |
content: "; "; |
| 260 |
} |