The application CSS file (public/stylesheets/main.css)
body {
background: #999;
padding: 0 30px;
font-family: helvetica, arial, sans-serif;
}
#content {
background: #FFF;
border: 1px solid #FFF;
border-color: #CCC #333 #333 #CCC;
}
#header {
background: #5D8ED3;
padding: 1em;
color: #FFF;
font-family: georgia, serif;
position: relative;
}
#content h2, #content form, #content p, #content h3 {
margin: 1em 1em;
}
fieldset {
border: 0;
width: 50%;
}
#content h2 {
font-family: georgia, serif;
border-bottom: 1px solid #5D8ED3;
padding-bottom: 0.5em;
}
CHAPTER 9 n A DYNAMIC HELP SYSTEM 209
label {
display: block;
}
input, textarea {
width: 99%;
}
textarea {
height: 7em;
}
p.check label {
display: inline;
}
p.check input, p.submit input {
width: auto;
}
fieldset p {
padding: 0.7em 0;
margin: 1px;
}
p.submit input {
font-size: 1.3em;
}
#help {
display: none;
}
body.with-help {
margin-right: 350px;
}
body.with-help #help {
display: block;
background: #F4EEBC;
border: 1px solid #000;
border-color: #CCC #333 #333 #CCC;
width: 320px;
position: absolute;
CHAPTER 9 n A DYNAMIC HELP SYSTEM 210
top: 0;
right: 0;
margin: 8px 30px;
padding: 10px;
overflow: hidden;
}
#help p, #help h2 {
width: 300px;
}
#help p#close_help {
position: absolute;
top: 0;
right: 15px;
width: auto;
}
#close_help a {
color: black;
text-decoration: none;
font-weight: bold;
}
#loader {
position: absolute;
top: 10px;
right: 10px;
}
Listing 9-6.
Pages:
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293