/
application.scss
97 lines (88 loc) · 1.67 KB
/
application.scss
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
/* Import from Google Webfonts */
@import url(http://fonts.googleapis.com/css?family=Rokkitt:400,700|Graduate);
@mixin primary-font {
font-family: 'Rokkitt', serif;
}
@mixin clock-font {
font-family: 'Graduate', cursive;
}
$text: #ececec;
$background: #444444;
$green: #7dfb5b;
$blue: #62e7ef;
$pink: #fb5bf9;
$yellow: #fbf95b;
html { background-color: $background; }
body {
color: $text;
width: 730px;
margin: 0 auto;
@include primary-font;
}
header { text-align: center; }
footer { text-align: center; }
#clock {
@include clock-font;
}
a { color: $text }
/* Style the selection list */
ul.selections {
list-style: none;
padding-left: 0;
li {
a { text-decoration: none; }
}
}
/* Set up a mixin for colorizing selections */
@mixin colorize($color) {
color: $color;
a { color: $color; }
.progress {
.outline {
background-color: $color;
}
.bar {
background-color: $color;
}
}
}
/* Set the base attributes for a selection */
.progress { position: relative; height: 15px; }
.outline {
filter: alpha(opacity=15);
-moz-opacity: 0.15;
-khtml-opacity: 0.15;
opacity: 0.15;
width: 100%;
height: 15px;
position: absolute;
top: 0;
left: 0;
}
.bar {
width: 0;
height: 15px;
position: absolute;
top: 0;
left: 0;
}
/* actually colorize selections */
ul.selections{
li:nth-child(1) { @include colorize($green) }
li:nth-child(2) { @include colorize($blue) }
li:nth-child(3) { @include colorize($pink) }
li:nth-child(4) { @include colorize($yellow) }
}
/* Just so we can get some easy classes... */
.green {
@include colorize($green);
}
.blue {
@include colorize($blue);
}
.pink {
@include colorize($pink);
}
.yellow {
@include colorize($yellow);
}