-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwebwork.css
323 lines (303 loc) · 10.7 KB
/
webwork.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
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
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
/*---- FONT ----*/
@font-face {
font-family: 'bebasregular';
src: url('../fonts/BEBAS___-webfont.eot');
src: url('../fonts/BEBAS___-webfont.eot?#iefix') format('embedded-opentype'),
url('../fonts/BEBAS___-webfont.woff') format('woff'),
url('../fonts/BEBAS___-webfont.ttf') format('truetype'),
url('../fonts/BEBAS___-webfont.svg#bebasregular') format('svg');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'swansearegular';
src: url('../fonts/swanse__-webfont.eot');
src: url('../fonts/swanse__-webfont.eot');
src: url('../fonts/swanse__-webfont.eot?#iefix') format('embedded-opentype'),
url('../fonts/swanse__-webfont.woff') format('woff'),
url('../fonts/swanse__-webfont.ttf') format('truetype'),
url('../fonts/swanse__-webfont.svg#swansearegular') format('svg');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'swanseabold';
src: url('../fonts/swanse_b-webfont.eot');
src: url('../fonts/swanse_b-webfont.eot?#iefix') format('embedded-opentype'),
url('../fonts/swanse_b-webfont.woff') format('woff'),
url('../fonts/swanse_b-webfont.ttf') format('truetype'),
url('../fonts/swanse_b-webfont.svg#swanseabold') format('svg');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'swansea_italic';
src: url('../fonts/swanse_i-webfont.eot');
src: url('../fonts/swanse_i-webfont.eot?#iefix') format('embedded-opentype'),
url('../fonts/swanse_i-webfont.woff') format('woff'),
url('../fonts/swanse_i-webfont.ttf') format('truetype'),
url('../fonts/swanse_i-webfont.svg#swansea_italic') format('svg');
font-weight: normal;
font-style: normal;
}
@charset "UTF-8";
/* v1.0 | 20080212 */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
margin: 0;
padding: 0;
border: 0;
outline: 0;
font-size: 100%;
vertical-align: baseline;
background: transparent;
}
body {
line-height: 1;
}
ol, ul {
list-style: none;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none;
}
/* remember to define focus styles! */
:focus {
outline: 0;
}
/* remember to highlight inserts somehow! */
ins {
text-decoration: none;
}
del {
text-decoration: line-through;
}
/* tables still need 'cellspacing="0"' in the markup */
table {
border-collapse: collapse;
border-spacing: 0;
}
html, body {
height: 100%;
margin-bottom: 1px;
}
body {
font: 100% Arial, Helvetica, sans-serif;
text-align: center; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */
color: #323232;
background: #ebf1f4 url(../images/header_tile.png) repeat-x;
}
/* Tips for Elastic layouts
1. Since the elastic layouts overall sizing is based on the user's default fonts size, they are more unpredictable. Used correctly, they are also more accessible for those that need larger fonts size since the line length remains proportionate.
2. Sizing of divs in this layout are based on the 100% font size in the body element. If you decrease the text size overall by using a font-size: 80% on the body element or the #container, remember that the entire layout will downsize proportionately. You may want to increase the widths of the various divs to compensate for this.
3. If font sizing is changed in differing amounts on each div instead of on the overall design (ie: #sidebar1 is given a 70% font size and #mainContent is given an 85% font size), this will proportionately change each of the divs overall size. You may want to adjust based on your final font sizing.
*/
#container {
width: 59.375em;
margin: 0 auto;
text-align: left; /* this overrides the text-align: center on the body element. */
font-size: 0.8em;
}
#container-content {
margin-top: 5.0em;
}
p {
font: 1em/1.5 Arial, Helvetica, sans-serif;
margin-top: 0.4em;
margin-bottom: 0.7em;
}
#header {
background: url(../images/CCSL_Logo_C.jpg) no-repeat left top;
padding: 0; /* this padding matches the left alignment of the elements in the divs that appear beneath it. If an image is used in the #header instead of text, you may want to remove the padding. */
height: 110px;
position: relative;
}
#header h1 {
position: absolute;
width: 80em;
left: -100em;
}
#header ul {
position: absolute;
right: 0px;
bottom: 35px;
}
#header li {
display: inline;
padding-right: 0.3em;
padding-left: .5em;
}
#header a:link , #header a:visited{
font: 1em/1.5 Arial, Helvetica, sans-serif;
color: #1047a1;
text-decoration: none;
}
#header a:hover, #header a:active, #header a:focus {
color: #24aaff;
text-decoration: none;
}
a:link, a:active, a:visited {
color: #1047a1;
text-decoration: none;
font-weight: bold;
-o-transition:color .2s ease-out, color 0.2s ease-in;
-ms-transition:color .2s ease-out, color 0.2s ease-in;
-moz-transition:color .2s ease-out, color 0.2s ease-in;
-webkit-transition:color .2s ease-out, color 0.2s ease-in;
transition:color .2s ease-out, color 0.2s ease-in;
}
a:hover{
color: #24aaff;
}
/* Tips for sidebar1:
1. Be aware that if you set a font-size value on this div, the overall width of the div will be adjusted accordingly.
2. Since we are working in ems, it's best not to use padding on the sidebar itself. It will be added to the width for standards compliant browsers creating an unknown actual width.
3. Space between the side of the div and the elements within it can be created by placing a left and right margin on those elements as seen in the " #sidebar1 p" rule.
*/
#sidebar1 {
float: left;
width: 13em; /* the background color will be displayed for the length of the content in the column, but no further */
padding: 0 0 1.5em; /* top and bottom padding create visual space within this div */
}
#sidebar1 li {
background: #FFF url('') repeat-x left bottom;
width: 100%;
margin-bottom: 0.2em;
}
#sidebar1 a, #sidebar1 a:link, #sidebar1 a:visited {
font: 1em 'bebasregular', Arial, Helvetica, sans-serif;
color: #f5f4f2;
text-decoration: none;
display: block;
padding: 0.5em 1em 0.5em 1.5em;
border: 0px solid #e6e6ff;
font-weight: normal;
margin-bottom: 0.5em;
background-color: #323232;
-o-transition:background-color .3s ease-out, color 0.3s ease-in;
-ms-transition:background-color .3s ease-out, color 0.3s ease-in;
-moz-transition:background-color .3s ease-out, color 0.3s ease-in;
-webkit-transition:background-color .3s ease-out, color 0.3s ease-in;
transition:background-color .3s ease-out, color 0.3s ease-in;
}
#sidebar1 li a:hover, #sidebar1 li a:active, #sidebar1 li a:focus {
color: #f5f4f2;
background-color: #1047a1;
}
#quotes {
padding: 2em 1em 1.5em 1.5em;
margin-top: 15px;
background: #FFF url('') repeat-x;
font-size: 0.9em;
border: 0px solid #e6e6ff;
}
#sidebar1 #quotes h3 {
font: normal 1.5em "bebasregular", Helvetica, Arial, sans-serif;
color: #1047a1;
}
blockquote {
margin-top: 1.5em;
}
cite, #quotes p cite {
color: #888888;
font-style: italic;
padding-bottom: 12px;
}
#quotes p {
margin: 0px;
color: #4fa2da;
}
#sidebar2 {
float: right;
width: 13em; /* the background color will be displayed for the length of the content in the column, but no further */
padding: 0.7em 0.8em 1em 1.5em; /* top and bottom padding create visual space within this div */
background: #FFF url('') repeat-x;
border: 0px solid #e6e6ff;
}
#sidebar2 h3 {
font: normal 1.5em "bebasregular", Helvetica, Arial, sans-serif;
color: #1047a1;
}
/* Tips for mainContent:
1. If you give this #mainContent div a font-size value different than the #sidebar1 div, the margins of the #mainContent div will be based on its font-size and the width of the #sidebar1 div will be based on its font-size. You may wish to adjust the values of these divs.
2. The space between the mainContent and sidebar1 is created with the left margin on the mainContent div. No matter how much content the sidebar1 div contains, the column space will remain. You can remove this left margin if you want the #mainContent div's text to fill the #sidebar1 space when the content in #sidebar1 ends.
3. To avoid float drop, you may need to test to determine the approximate maximum image/element size since this layout is based on the user's font sizing combined with the values you set. However, if the user has their browser font size set lower than normal, less space will be available in the #mainContent div than you may see on testing.
4. In the Internet Explorer Conditional Comment below, the zoom property is used to give the mainContent "hasLayout." This avoids several IE-specific bugs that may occur.
*/
#mainContent {
margin: 0 16.5em 1.5em 14em;
padding: 1em 2em;
background: #FFF url('') repeat-x;
border: 0px solid #e6e6ff;
}
#mainContent h1 {
font: normal 1.5em "bebasregular", Helvetica, Arial, sans-serif;
text-transform: none;
letter-spacing: 0px;
color: #323232;
text-align: left;
width: 900px;
height: 45px;
padding-left: 0px;
margin-bottom: -5px;
}
#mainContent h2 {
font: normal 1.5em "bebasregular", Helvetica, Arial, sans-serif;
padding-top: 0.7em;
}
#mainContent h3 {
font: normal 1.5em "bebasregular", Helvetica, Arial, sans-serif;
}
#footer {
padding: 0 10px; /* this padding matches the left alignment of the elements in the divs that appear above it. */
background:#090909;
}
#footer p {
margin: 0; /* zeroing the margins of the first element in the footer will avoid the possibility of margin collapse - a space between divs */
padding: 0.75em 0.5em 0.5em; /* padding on this element will create space, just as the the margin would have, without the margin collapse issue */
color: #f5f4f2;
font: normal 0.7em "swanseabold", Helvetica, Arial, sans-serif;
}
/* Miscellaneous classes for reuse */
.fltrt { /* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */
float: right;
margin-left: 8px;
}
.fltlft { /* this class can be used to float an element left in your page */
float: left;
margin-right: 8px;
}
.clearfloat { /* this class should be placed on a div or break element and should be the final element before the close of a container that should fully contain a float */
clear:both;
height:0;
font-size: 1px;
line-height: 0px;
}
#quotes {
padding: 2em 1em 1.5em 1.5em;
margin-top: 15px;
background: #FFF url('') repeat-x;
border: 0px solid #e6e6ff;
font-size: 0.9em;
}
.date {
color: #4fa2da;
margin-bottom: 0.2em;
}
.info {
margin-bottom: 1em;
padding-bottom: 1em;
border-bottom: 0px solid #00c0ff;
}