-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.scss
58 lines (50 loc) · 901 Bytes
/
style.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
body{
margin: 0;
padding: 0;
width: 8000px;
}
.unit{
$height: 100px;
$cardWidth: 80px;
margin: 0px;
width: 100%;
height: $height;
margin-bottom: 1px;
@for $i from 3 through 140 {
&:nth-child(#{$i}){
margin-left: ($cardWidth + 1) * $i - $cardWidth * 2 - 2;
}
}
&.time-line{
.card{
background-color: #0a9dc7;
}
}
&.learn{
height: $height/2;
.card:nth-child(1),
.card:nth-child(2),
.card:nth-child(4),
.card:nth-child(7),
.card:nth-child(15){
background-color: #b22933;
}
.card{
height: $height/2;
line-height: $height/2;
}
}
.card{
width: $cardWidth;
height: $height;
display: inline-block;
background-color: #1bc07d;
margin-left: 1px;
text-align: center;
line-height: $height;
color: #ffffff;
&.hot{
background-color: #0a9dc7;
}
}
}