Replace hard-coded colors with variables.
darkmorford -
9ecc5ebca9fd
Not Reviewed
Show More
Add another comment
TODOs: 0 unresolved 0 Resolved
COMMENTS: 0 General 0 Inline
@@ -0,0 +1,5
1 @charset "utf-8";
2
3 $font-stack: Verdana, Arial, Helvetica, sans-serif;
4 $banner-font: monospace;
5 $credits-font: Arial, Helvetica, sans-serif;
@@ -1,9 +1,17
1 $background: #4C565E;
1 @charset "utf-8";
2 $foreground: #757B81;
2
3 $infobox: #23272B;
3 $background: #4C565E;
4 $foreground: #757B81;
5 $infobox: #23272B;
6
7 $nl-background: #000000;
8 $comic-background: #FFFFFF;
9
10 $percent-border: #556677;
4
11
5 $text-normal: #B7BFC7;
12 $text-normal: #B7BFC7;
6 $text-accent: #F6B33D;
13 $text-accent: #F6B33D;
14 $text-credits: #E4E4D6;
7
15
8 $link-normal: #FF6600;
16 $link-normal: #FF6600;
9 $link-hover: #EB5252;
17 $link-hover: #EB5252;
@@ -1,16 +1,27
1 @charset "utf-8";
2 @import "palette";
3
1 .content ol {
4 .content ol {
2 padding: 1ex 3em;
5 padding: 1ex 3em;
3 background-color: #757b81;
6 background-color: $foreground;
4 margin: 0px;
7 margin: 0;
5 }
8 }
6
9
7 .content ul {
10 .content ul {
8 list-style-type: none;
11 list-style-type: none;
9 padding: 1ex 2em;
12 padding: 1ex 2em;
10 background-color: #757b81;
13 background-color: $foreground;
11 margin: 0px;
14 margin: 0;
15 }
16
17 .content a {
18 color: $text-accent;
12 }
19 }
13
20
14 .content a { color: #f6b33d; }
21 .content a:visited {
15 .content a:visited { color:#ececa3; }
22 color: $link-visited;
16 .content a:hover { color:#eb5252; }
23 }
24
25 .content a:hover {
26 color: $link-hover;
27 }
@@ -1,8 +1,11
1 @charset "utf-8";
2 @import "palette";
3
1 h2,
4 h2,
2 h3 a {
5 h3 a {
3 margin: 0px;
6 margin: 0px;
4 padding: 0px;
7 padding: 0px;
5 color: #f6b33d;
8 color: $text-accent;
6 }
9 }
7
10
8 .content .column { width:330px }
11 .content .column { width:330px }
@@ -18,9 +21,9 h3 a {
18 #comic .nl {
21 #comic .nl {
19 padding-top: 5px;
22 padding-top: 5px;
20 padding-bottom: 5px;
23 padding-bottom: 5px;
21 background-color: black;
24 background-color: $nl-background;
22 margin: -5em auto 0px;
25 margin: -5em auto 0px;
23 border-top: solid 5em #b7bfc7;
26 border-top: solid 5em $text-normal;
24 width: 700px;
27 width: 700px;
25 text-align: center;
28 text-align: center;
26 }
29 }
@@ -176,14 +179,14 h3 a {
176 }
179 }
177
180
178 /* Make the archive link stand out */
181 /* Make the archive link stand out */
179 #comic #archivelink { background-color:#b7bfc7 }
182 #comic #archivelink { background-color: $text-normal; }
180 #comic #archivelink a { color:black }
183 #comic #archivelink a { color: $nl-background; }
181 #comic #archivelink a:hover { color:#eb5252 }
184 #comic #archivelink a:hover { color: $link-hover; }
182
185
183 /* Boxes between the comic and the rants */
186 /* Boxes between the comic and the rants */
184 #megagear { text-align:center }
187 #megagear { text-align:center }
185
188
186 #newsbox a { color:#f6b33d }
189 #newsbox a { color: $text-accent; }
187 #newsbox ul {
190 #newsbox ul {
188 margin-left: 3ex;
191 margin-left: 3ex;
189 padding-left: 0px;
192 padding-left: 0px;
@@ -203,13 +206,13 h3 a {
203
206
204 #status dd {
207 #status dd {
205 margin-left: 7em;
208 margin-left: 7em;
206 color: #f6b33d;
209 color: $text-accent;
207 }
210 }
208
211
209 #status dd div#percentbox {
212 #status dd div#percentbox {
210 padding: 1px;
213 padding: 1px;
211 width: 90%;
214 width: 90%;
212 border: 1px solid #567;
215 border: 1px solid $percent-border;
213 margin: 0px;
216 margin: 0px;
214 }
217 }
215
218
@@ -218,7 +221,7 h3 a {
218 border-bottom:none;
221 border-bottom:none;
219 margin:0;
222 margin:0;
220 padding:0;
223 padding:0;
221 background: url(../parts/twitter-seperator.png) 6px 0 #23272B;
224 background: url(../parts/twitter-seperator.png) 6px 0 $infobox;
222 }
225 }
223
226
224 /* Fix a bug caused by OpenAds injecting a <div> into the status area which
227 /* Fix a bug caused by OpenAds injecting a <div> into the status area which
@@ -234,7 +237,7 h3 a {
234 .content div#status,
237 .content div#status,
235 .content div#fred_twitter { border: none; background: none; }
238 .content div#fred_twitter { border: none; background: none; }
236
239
237 #support { border-bottom: 5px solid black; }
240 #support { border-bottom: 5px solid $nl-background; }
238
241
239 #status ul, #fred_twitter ul { margin-top:0px }
242 #status ul, #fred_twitter ul { margin-top:0px }
240
243
@@ -287,7 +290,7 h3 a {
287 z-index: 1;
290 z-index: 1;
288 border: solid 5px black;
291 border: solid 5px black;
289 width: 400px;
292 width: 400px;
290 background: #4c565e;
293 background: $background;
291 text-align: left;
294 text-align: left;
292 }
295 }
293
296
@@ -295,7 +298,7 h3 a {
295 display: inline-block;
298 display: inline-block;
296 margin: 0px;
299 margin: 0px;
297 padding: 7.5px 4px;
300 padding: 7.5px 4px;
298 color: #B7BFC7;
301 color: $text-normal;
299 }
302 }
300
303
301 #blogbits a.rightcol img,
304 #blogbits a.rightcol img,
@@ -353,7 +356,7 h3 a {
353 }
356 }
354
357
355 #newsbox .adinfo a, #support .adinfo a {
358 #newsbox .adinfo a, #support .adinfo a {
356 color: #f6b33d;
359 color: $text-accent;
357 font-size: 11px;
360 font-size: 11px;
358 }
361 }
359
362
@@ -368,9 +371,9 h3 a {
368
371
369 #console h3 {
372 #console h3 {
370 padding: 0.75ex;
373 padding: 0.75ex;
371 background-color: #757b81;
374 background-color: $foreground;
372
375
373 font-family: monospace;
376 font-family: $banner-font;
374 font-size: xx-large;
377 font-size: xx-large;
375 text-align: center;
378 text-align: center;
376 }
379 }
@@ -384,7 +387,7 h3 a {
384
387
385 #feed-list h4 {
388 #feed-list h4 {
386 margin: auto;
389 margin: auto;
387 color: #F6B33D;
390 color: $text-accent;
388 text-align: center;
391 text-align: center;
389 font-size: medium;
392 font-size: medium;
390 width: 400px;
393 width: 400px;
@@ -395,14 +398,14 h3 a {
395 padding: 0.75ex 0px;
398 padding: 0.75ex 0px;
396 width: 330px;
399 width: 330px;
397
400
398 background-color: #757b81;
401 background-color: $foreground;
399 color: #F6B33D;
402 color: $text-accent;
400
403
401 text-align: center;
404 text-align: center;
402 font-size: medium;
405 font-size: medium;
403 }
406 }
404
407
405 #console h4 a {color:#f6b33d}
408 #console h4 a {color: $text-accent;}
406
409
407 #console .rantbody {
410 #console .rantbody {
408 margin-top: 0px;
411 margin-top: 0px;
@@ -418,12 +421,12 h3 a {
418
421
419 #console .leftcol {
422 #console .leftcol {
420 width: 350px;
423 width: 350px;
421 color: #b7bfc7;
424 color: $text-normal;
422 }
425 }
423
426
424 #console .rightcol {
427 #console .rightcol {
425 width: 350px;
428 width: 350px;
426 color: #f6b33D;
429 color: $text-accent;
427 }
430 }
428
431
429 #console .rantimage {
432 #console .rantimage {
@@ -466,7 +469,7 h3 a {
466 }
469 }
467
470
468 #console .nameplate {
471 #console .nameplate {
469 background-color: #757B81;
472 background-color: $foreground;
470 width: 350px
473 width: 350px
471 }
474 }
472
475
@@ -483,7 +486,7 h3 a {
483
486
484 #console .oldrant {
487 #console .oldrant {
485 margin-top: 1.5em;
488 margin-top: 1.5em;
486 border-top: medium solid #B7BFC7;
489 border-top: medium solid $text-normal;
487 padding-top: 1em;
490 padding-top: 1em;
488 width: 345px;
491 width: 345px;
489 }
492 }
@@ -513,7 +516,7 h3 a {
513 height: 123px;
516 height: 123px;
514 }
517 }
515
518
516 #console .oldrant .rantimage p,
519 #console .oldrant .rantimage p,
517 #console .oldrant .rantimage p img {
520 #console .oldrant .rantimage p img {
518 float: none;
521 float: none;
519 width: 150px;
522 width: 150px;
@@ -525,7 +528,7 h3 a {
525
528
526 #console .oldrant .nameplate {
529 #console .oldrant .nameplate {
527 margin-top: 43px;
530 margin-top: 43px;
528 background-color: #757B81;
531 background-color: $foreground;
529 width: 150px;
532 width: 150px;
530 float: right;
533 float: right;
531 }
534 }
@@ -554,7 +557,7 h3 a {
554
557
555 div#strip {
558 div#strip {
556 width:700px;
559 width:700px;
557 background-color: white;
560 background-color: $comic-background;
558 }
561 }
559
562
560 #strip-tl {
563 #strip-tl {
@@ -1,13 +1,16
1 @charset "utf-8";
2 @import "palette";
3
1 /* Set basic element styles */
4 /* Set basic element styles */
2 img { border:none }
5 img { border: none; }
3
6
4 a {
7 a {
5 text-decoration: none;
8 text-decoration: none;
6 color: #f60;
9 color: $link-normal;
7 }
10 }
8
11
9 a:visited { color:#ececa3; }
12 a:visited { color: $link-visited; }
10 a:hover { color:#eb5252; }
13 a:hover { color: $link-hover; }
11
14
12 body {
15 body {
13 position: relative; /* Make IE not hate positioned elements */
16 position: relative; /* Make IE not hate positioned elements */
@@ -15,10 +18,10 body {
15 margin: auto;
18 margin: auto;
16 padding: 14px;
19 padding: 14px;
17
20
18 background-color: #4c565e;
21 background-color: $background;
19
22
20 font-size: 0.8em;
23 font-size: 0.8em;
21 font-family: Verdana, Arial, Helvetica, sans-serif;
24 font-family: $font-stack;
22 }
25 }
23
26
24 /* Set default widths for page boxes */
27 /* Set default widths for page boxes */
@@ -27,21 +30,21 body div {
27 margin: auto;
30 margin: auto;
28 width: 700px;
31 width: 700px;
29 }
32 }
30 body div div { width:auto }
33 body div div { width: auto; }
31
34
32 /* Make the headers look nice */
35 /* Make the headers look nice */
33 h1 { margin:0px }
36 h1 { margin: 0; }
34
37
35 h2 {
38 h2 {
36 text-align: left;
39 text-align: left;
37 color: #f6b33d;
40 color: $text-accent;
38 }
41 }
39
42
40 /* Create special elements and classes */
43 /* Create special elements and classes */
41 h2, .blackbar {
44 h2, .blackbar {
42 height: 18px; /* Take that, old gecko! */
45 height: 18px; /* Take that, old gecko! */
43 margin: 0px;
46 margin: 0;
44 padding: 0px 1ex;
47 padding: 0 1ex;
45
48
46 overflow: hidden;
49 overflow: hidden;
47 background-color: black;
50 background-color: black;
@@ -58,16 +61,16 h2 span, .blackbar span {
58 height: 100%;
61 height: 100%;
59 }
62 }
60
63
61 .clearer { clear:both }
64 .clearer { clear: both; }
62 br.clearer { line-height:0px }
65 br.clearer { line-height: 0; }
63 .leftcol { float:left }
66 .leftcol { float: left }
64 .rightcol { float:right }
67 .rightcol { float: right }
65
68
66 .nl {
69 .nl {
67 margin: 0px;
70 margin: 0;
68 padding: 0px;
71 padding: 0;
69
72
70 background-color: black;
73 background-color: $nl-background;
71 text-align: center;
74 text-align: center;
72
75
73 list-style-type: none;
76 list-style-type: none;
@@ -77,18 +80,18 br.clearer { line-height:0px }
77 display: inline;
80 display: inline;
78 margin: 0px;
81 margin: 0px;
79 padding: 0em 0.5ex;
82 padding: 0em 0.5ex;
80 color: #B7BFC7;
83 color: $text-normal;
81 }
84 }
82
85
83 .nl a { color:#b7bfc7; text-decoration:none }
86 .nl a { color: $text-normal; text-decoration: none; }
84 .nl a:link, .nl a:visited { color:#b7bfc7 }
87 .nl a:link, .nl a:visited { color: $text-normal; }
85 .nl a:hover { color:#eb5252 }
88 .nl a:hover { color: $link-hover; }
86
89
87 .content {
90 .content {
88 margin-top: 1em;
91 margin-top: 1em;
89 margin-bottom: 1em;
92 margin-bottom: 1em;
90 background-color: black;
93 background-color: $nl-background;
91 color: #b7bfc7;
94 color: $text-normal;
92 }
95 }
93
96
94 .content div {
97 .content div {
@@ -96,8 +99,8 br.clearer { line-height:0px }
96 overflow: hidden;
99 overflow: hidden;
97 height: 100%;
100 height: 100%;
98
101
99 border: solid 5px black;
102 border: solid 5px $nl-background;
100 background-color: #23272b;
103 background-color: $infobox;
101 padding: 5px;
104 padding: 5px;
102 }
105 }
103
106
@@ -141,19 +144,19 br.clearer { line-height:0px }
141 width: 468px;
144 width: 468px;
142 margin-left: -246px;
145 margin-left: -246px;
143
146
144 background-image:url(parts/banner_bg.gif);
147 background-image: url(../parts/banner_bg.gif);
145 padding: 14px 12px;
148 padding: 14px 12px;
146 }
149 }
147
150
148 /* Style the top banner */
151 /* Style the top banner */
149 #banner {
152 #banner {
150 background-color: black;
153 background-color: $nl-background;
151 text-align: center;
154 text-align: center;
152 }
155 }
153
156
154 #banner h2 {
157 #banner h2 {
155 color: #b7bfc7;
158 color: $text-normal;
156 font-family: monospace;
159 font-family: $banner-font;
157 }
160 }
158
161
159 #banner .nl {
162 #banner .nl {
@@ -163,8 +166,8 br.clearer { line-height:0px }
163
166
164 /* Style the footer */
167 /* Style the footer */
165 #credits {
168 #credits {
166 background-color: #757b81;
169 background-color: $foreground;
167 color: #e4e4d6;
170 color: $text-credits;
168 padding-bottom: 0.5ex;
171 padding-bottom: 0.5ex;
169 margin-top: 1em;
172 margin-top: 1em;
170 }
173 }
@@ -173,10 +176,10 br.clearer { line-height:0px }
173 margin: 0px;
176 margin: 0px;
174 text-align: center;
177 text-align: center;
175 padding: 0.5ex;
178 padding: 0.5ex;
176 font-family: Arial, helvetica, sans-serif;
179 font-family: $credits-font;
177 font-size: x-small;
180 font-size: x-small;
178 }
181 }
179
182
180 /* Overload header texts */
183 /* Overload header texts */
181 #banner .blackbar span { background: url(../parts/mt3-bar-comic.gif) no-repeat }
184 #banner .blackbar span { background: url(../parts/mt3-bar-comic.gif) no-repeat }
182 #credits h2 span { background: url(../parts/mt-blk_bar-credits.png) no-repeat } No newline at end of file
185 #credits h2 span { background: url(../parts/mt-blk_bar-credits.png) no-repeat }
@@ -1,3 +1,6
1 @charset "utf-8";
2 @import "palette";
3
1 .search {
4 .search {
2 margin: 10px;
5 margin: 10px;
3 }
6 }
@@ -7,20 +10,20
7 }
10 }
8
11
9 .results {
12 .results {
10 margin: 0px;
13 margin: 0;
11 padding: 1ex 2em;
14 padding: 1ex 2em;
12 background-color: #757b81;
15 background-color: $foreground;
13 }
16 }
14
17
15 .results, .results a { color: #f6b33d; }
18 .results, .results a { color: $text-accent; }
16 .results a:visited { color:#ececa3; }
19 .results a:visited { color: $link-visited; }
17 .results a:hover { color:#eb5252; }
20 .results a:hover { color: $link-hover; }
18
21
19 #syntax code { color:#f6b33d }
22 #syntax code { color: $text-accent; }
20 #syntax form { margin:0px }
23 #syntax form { margin: 0; }
21
24
22 dt {
25 dt {
23 font-size:larger;
26 font-size: larger;
24 }
27 }
25
28
26 ol {
29 ol {
@@ -28,4 +31,4 ol {
28 }
31 }
29
32
30 /* Overload header texts */
33 /* Overload header texts */
31 #syntax h2 span { background:url(parts/mt-blk_bar-search_syntax.png) no-repeat }
34 #syntax h2 span { background:url(../parts/mt-blk_bar-search_syntax.png) no-repeat }
@@ -1,1 +1,6
1 h3, h4, h5, h6 { color:#f6b33d }
1 @charset "utf-8";
2 @import "palette";
3
4 h3, h4, h5, h6 {
5 color: $text-accent;
6 }
@@ -1,19 +1,22
1 @charset "utf-8";
2 @import "palette";
3
1 #inner {
4 #inner {
2 /* Satisfy internal floated elements */
5 // Satisfy internal floated elements
3 overflow: hidden;
6 overflow: hidden;
4 height: 100%;
7 height: 100%;
5 border: none;
8 border: none;
6 margin: 0em 1em;
9 margin: 0 1em;
7 }
10 }
8
11
9 #inner img
12 #inner img
10 {
13 {
11 display: block;
14 display: block;
12 margin-left: auto;
15 margin-left: auto;
13 margin-right: auto
16 margin-right: auto;
14 }
17 }
15
18
16 #inner h3
19 #inner h3
17 {
20 {
18 color:#F6B33D;
21 color: $text-accent;
19 } No newline at end of file
22 }
Comments 0
You need to be logged in to leave comments. Login now