-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtimeline.css
78 lines (65 loc) · 1.46 KB
/
timeline.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
@font-face {
font-family: 'Quicksand';
src: url("./fonts/Quicksand-Regular.ttf"); }
@font-face {
font-family: 'Quicksand-Bold';
src: url("./fonts/Quicksand-Bold.ttf"); }
:host {
font-family: 'Quicksand', arial;
font-size: 16px;
text-align: left;
width: 100%;
height: 150px;
padding-top: 150px;
display: flex;
justify-content: flex-start;
align-items: center;
flex-direction: column; }
#timeline {
display: flex; }
input {
width: 25px;
height: 25px;
background-color: #AEB6BF;
position: relative;
border-radius: 50%;
display: block;
-moz-appearance: none;
-webkit-appearance: none;
appearance: none;
z-index: 2;
cursor: pointer; }
input.active, input.active:before {
background-color: #2C3E50; }
input:focus {
outline: none; }
/* the lines */
input:before, input:last-of-type:after {
content: '';
display: block;
width: 89px;
height: 5px;
background: #AEB6BF;
z-index: 1;
transform: translate(-72px, 10px); }
input:last-of-type:after {
transform: translate(25px, 5px); }
/* year and label */
.dot-info {
position: relative; }
input + .dot-info .caption {
transform: translate(-50%, -70px) rotate(-45deg);
display: block;
max-width: 70px;
text-indent: -10px;
position: absolute;
top: 0;
left: 0; }
input + .dot-info .year {
width: 64px;
display: block;
transform: translate(-50%, 50px); }
input.current + .dot-info {
font-family: 'Quicksand-Bold'; }
#description {
margin-top: 70px; }