-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.styl
288 lines (223 loc) · 4.45 KB
/
index.styl
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
@import "jeet"
@import "rupture"
@import url('http://fonts.googleapis.com/css?family=Open+Sans:300,400,700');
// edit()
// color pallete
color-bg-edx = #D6D6D6
color-bg-card = #FFF
color-text-title = #3C3C3C
color-text-content = #666
color-primary = #1D9DD9
color-secondary = #BC2A6C
color-success = #A0D468
color-error = #D9321D
color-warning = #FFCE54
// helpers
addborder(suffix)
border{suffix} 1px solid #AAA
boxshadow()
box-shadow 0 1px 2px rgba(0, 0, 0, 0.1)
unselectable()
-webkit-touch-callout none
-webkit-user-select none
-khtml-user-select none
-moz-user-select none
-ms-user-select none
user-select none
labeltext()
text-align center
font-size 14px
color color-text-content
// main
*
box-sizing border-box
margin 0
padding 0
body
background-color color-bg-edx
font-family 'Open Sans', Verdana, Geneva, sans-serif
font-size 14px
text-align left
// fake edX main navbar
header
height 60px
width 100%
padding 10px
background-color color-bg-card
overflow hidden
addborder('-bottom')
boxshadow()
.nav
center(1200px)
font-size 14px
height 40px
line-height 40px
.nav-logo
padding 0 15px 0 15px
.nav-provider
padding-left 15px
addborder('-left')
color color-text-title
font-weight bold
vertical-align text-bottom
.nav-hide-on-small
+below(550px)
display none
.nav-float-right
float right
padding-right 15px
.nav-text
color color-text-content
vertical-align text-bottom
.nav-course
center(1200px)
height 60px
font-weight 700
line-height 14px
color color-text-title
padding 23px 0 0 23px
span
padding 8px 15px 8px 15px
.tab-active
color color-bg-card
text-shadow 0px 1px 0px rgba(0, 0, 0, 0.4)
border-radius 3px
box-shadow 0px 1px 0px rgba(255, 255, 255, 0.5), 0px 1px 1px rgba(0, 0, 0, 0.3) inset
background-image linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.25))
// content
.content
center(1180px)
padding-bottom 60px
+below(1000px)
center(600px)
#rcol, #lcol
col(1/2)
+below(1000px)
stack()
#lcol + #rcol
+below(1000px)
margin-top 25px
.card
center()
border-radius 3px
background-color color-bg-card
addborder('')
boxshadow()
padding 20px
.card + .card
margin-top 25px
.card-header
addborder('-bottom')
color color-text-title
font-weight 300
margin 0 0 10px 0
.card-content
color color-text-content
.chart-options
center()
labeltext()
select
labeltext()
border none
addborder('-bottom')
margin-bottom 10px
appearance none
-webkit-appearance none
-moz-appearance none
unselectable()
cursor pointer
svg
center()
unselectable()
// progress chart
#progress
svg
cursor pointer
text
text-anchor middle
dominant-baseline middle
.arc-bg
stroke color-bg-card
fill color-bg-edx
.arc-comparison
stroke color-bg-card
.back-button
font-size 36px
font-weight 700
.report-title
font-size 22px
fill color-text-content
.percentage
font-size 52px
.category-problem
fill color-primary
.category-video
fill color-secondary
// timeline chart
.curtain
fill color-bg-card
.tl-active
fill color-success
.tl-inactive
fill color-bg-edx
.problem-line, .video-line
fill none
stroke-width 2
.problem-line
stroke color-primary
.video-line
stroke color-secondary
.reference-line
stroke color-bg-edx
.certificate-line
stroke color-success
stroke-dasharray 10,10
.certificate-text, .reference-text
dominant-baseline hanging
font-size 10px
.reference-text
fill color-bg-edx
.certificate-text
fill color-success
.reference-line, .certificate-line, .reference-text, .certificate-text
opacity 0.7
.tooltip
background-color color-bg-card
font-size 12px
color color-text-content
width 95px
height 75px
padding 3px
position absolute
z-index 1001
boxshadow()
.tooltip-active
color color-success
.tooltip-inactive
color color-bg-edx
.tooltip-video
color color-secondary
.tooltip-problem
color color-primary
// leaderboard chart
#leaderboard
table
font-size 12px
.text-scores
color color-bg-card
.text-student-names
text-align center
.text-ranks
text-align right
.lb-oneself
font-weight 700
.lb-top10-problem, .lb-top10-video, .lb-top10-active, .lb-top10-timespent
padding-left 10px
.lb-top10-problem
background-color color-primary
.lb-top10-video
background-color color-secondary
.lb-top10-active
background-color color-success
.lb-top10-timespent
background-color color-warning