Skip to content

Commit 09cbda8

Browse files
author
Richard Jones
committed
default stylesheet turns off sidebar when printing
1 parent bc77302 commit 09cbda8

File tree

2 files changed

+104
-39
lines changed

2 files changed

+104
-39
lines changed

templates/classic/html/style.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,16 @@ table.body {
1515
border-collapse: separate;
1616
}
1717

18+
/* don't display the sidebar when printing */
19+
@media print {
20+
td.page-header-left {
21+
display: none;
22+
}
23+
td.sidebar {
24+
display: none;
25+
}
26+
}
27+
1828
td.page-header-left {
1929
padding: 5px;
2030
border-bottom: 1px solid #444444;

templates/minimal/html/style.css

Lines changed: 94 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
body.body {
33
font-family: sans-serif, Arial, Helvetica;
44
color: #333333;
5+
margin: 0px 0px 0px 0px;
56
}
67
a[href]:hover { color:blue; text-decoration: underline; }
78
a[href]:link { color:blue; text-decoration: none; }
@@ -14,6 +15,16 @@ table.body {
1415
border-collapse: separate;
1516
}
1617

18+
/* don't display the sidebar when printing */
19+
@media print {
20+
td.page-header-left {
21+
display: none;
22+
}
23+
td.sidebar {
24+
display: none;
25+
}
26+
}
27+
1728
td.page-header-left {
1829
padding: 5px;
1930
border-bottom: 1px solid #444444;
@@ -28,16 +39,19 @@ td.sidebar {
2839
padding: 1 0 0 1;
2940
white-space: nowrap;
3041
}
42+
td.sidebar form {
43+
margin: 0 0 0 0;
44+
}
3145

3246
td.sidebar p.classblock {
33-
padding: 0 5 0 5;
47+
padding: 2 5 2 5;
3448
margin: 1 1 1 1;
3549
border: 1px solid #444444;
3650
background-color: #eeeeee;
3751
}
3852

3953
td.sidebar p.userblock {
40-
padding: 0 5 0 5;
54+
padding: 2 5 2 5;
4155
margin: 1 1 1 1;
4256
border: 1px solid #444444;
4357
background-color: #eeeeff;
@@ -49,6 +63,10 @@ td.content {
4963
width: 100%;
5064
}
5165

66+
td.date, th.date {
67+
white-space: nowrap;
68+
}
69+
5270
p.ok-message {
5371
background-color: #22bb22;
5472
padding: 5 5 5 5;
@@ -71,19 +89,23 @@ table.form {
7189
}
7290

7391
table.form th {
74-
font-weight: bold;
7592
color: #333388;
7693
text-align: right;
7794
vertical-align: top;
95+
font-weight: normal;
96+
white-space: nowrap;
7897
}
7998

8099
table.form th.header {
81100
font-weight: bold;
82-
color: #333388;
83101
background-color: #eeeeff;
84102
text-align: left;
85103
}
86104

105+
table.form th.required {
106+
font-weight: bold;
107+
}
108+
87109
table.form td {
88110
color: #333333;
89111
empty-cells: show;
@@ -110,9 +132,7 @@ table.list th {
110132
padding: 0 4 0 4;
111133
color: #404070;
112134
background-color: #eeeeff;
113-
border-right: 1px solid #404070;
114-
border-top: 1px solid #404070;
115-
border-bottom: 1px solid #404070;
135+
border: 1px solid white;
116136
vertical-align: top;
117137
empty-cells: show;
118138
}
@@ -126,39 +146,27 @@ table.list th.group {
126146

127147
table.list td {
128148
padding: 0 4 0 4;
129-
border: 0 2 0 2;
130-
border-right: 1px solid #404070;
149+
border: 1px solid white;
131150
color: #404070;
132-
background-color: white;
151+
background-color: #efefef;
133152
vertical-align: top;
134153
empty-cells: show;
135154
}
136155

137-
table.list tr.normal td {
138-
background-color: white;
139-
}
140-
141-
table.list tr.alt td {
142-
background-color: #efefef;
143-
}
144-
145-
table.list td:first-child {
146-
border-left: 1px solid #404070;
147-
border-right: 1px solid #404070;
148-
}
149-
150-
table.list th:first-child {
151-
border-left: 1px solid #404070;
152-
border-right: 1px solid #404070;
153-
}
154-
155156
table.list tr.navigation th {
156-
text-align: right;
157+
width: 33%;
158+
border-style: hidden;
159+
text-align: center;
160+
}
161+
table.list tr.navigation td {
162+
border: none
157163
}
158164
table.list tr.navigation th:first-child {
159-
border-right: none;
160165
text-align: left;
161166
}
167+
table.list tr.navigation th:last-child {
168+
text-align: right;
169+
}
162170

163171

164172
/* style for message displays */
@@ -277,26 +285,73 @@ table.classlist th {
277285

278286

279287
/* style for class help display */
280-
table.classhelp {
281-
border-spacing: 0px;
282-
border-collapse: separate;
283-
width: 100%;
288+
table.classhelp { /* the table-layout: fixed; */
289+
table-layout: fixed; /* compromises quality for speed */
290+
overflow: hidden;
291+
font-size: .9em;
292+
padding-bottom: 3em;
284293
}
285294

286295
table.classhelp th {
287-
font-weight: bold;
296+
font-weight: normal;
288297
text-align: left;
289-
color: #707040;
298+
color: #444444;
299+
background-color: #efefef;
300+
border-bottom: 1px solid #afafaf;
301+
border-top: 1px solid #afafaf;
302+
text-transform: uppercase;
303+
vertical-align: middle;
304+
line-height:1.5em;
290305
}
291306

292307
table.classhelp td {
293-
padding: 2 2 2 2;
294-
border: 1px solid black;
308+
vertical-align: middle;
309+
padding-right: .2em;
310+
border-bottom: 1px solid #efefef;
311+
text-align: left;
312+
empty-cells: show;
313+
}
314+
315+
table.classhelp td {
316+
white-space: nowrap;
317+
vertical-align: middle;
318+
padding-right: .2em;
319+
border-bottom: 1px solid #efefef;
295320
text-align: left;
296-
vertical-align: top;
297321
empty-cells: show;
298322
}
299323

324+
table.classhelp tr:hover {
325+
background-color: #eeeeee;
326+
}
327+
328+
label.classhelp-label {
329+
cursor: pointer;
330+
}
331+
332+
#classhelp-controls {
333+
position: fixed;
334+
display: block;
335+
top: auto;
336+
right: 0;
337+
bottom: 0;
338+
left: 0;
339+
padding: .5em;
340+
border-top: 2px solid #444444;
341+
background-color: #eeeeee;
342+
}
343+
344+
#classhelp-controls input.apply {
345+
width: 7em;
346+
font-weight: bold;
347+
margin-right: 2em;
348+
margin-left: 2em;
349+
}
350+
351+
#classhelp-controls input.preview {
352+
margin-right: 3em;
353+
margin-left: 1em;
354+
}
300355

301356
/* style for "other" displays */
302357
table.otherinfo {

0 commit comments

Comments
 (0)