-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
129 lines (129 loc) · 2.73 KB
/
Copy pathstyle.css
File metadata and controls
129 lines (129 loc) · 2.73 KB
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
:root{
--primary-color:#425b84;
--secondary-color:#5b7bb4;
--max-width:1100px;
}
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
body{
font: normal 1rem/1.5 'Arial',sans-serif;
background-color: var(--primary-color);
color: white;
overflow-x: hidden;
padding-bottom: 50px;
}
#main-header{
background-color: var(--secondary-color);
padding: 4rem 0;
}
.container{
max-width: var(--max-width);
margin: 0 auto;
text-align: center;
}
h1{
font-size: 2.3rem;
}
#timeline ul{
background-color: var(--primary-color);
padding: 50px;
}
/* create line */
#timeline ul li {
list-style: none;
position: relative;
width: 6px;
margin: 0 auto;
padding-top: 50px ;
background-color: white;
}
/* boxes */
#timeline ul li div{
position: relative;
bottom: 0;
width: 400px;
padding: 1rem;
background-color: var(--secondary-color);
transition: all 0.5s ease-in-out;
visibility: hidden;
opacity: 0;
}
/* right side */
#timeline ul li:nth-child(odd) div{
left: 40px;
transform: translate(200px , 0);
}
/* left side */
#timeline ul li:nth-child(even) div{
left: -434px;
transform: translate(-200px , 0);
}
/* dots */
#timeline ul li:after{
content: '';
position:absolute;
width: 25px;
height: 25px;
border-radius: 50%;
background-color: white;
left: 50%;
bottom: 0;
transform: translateX(-50%);
transition: background 0.5s ease-in-out;
}
/* arrows base */
#timeline div::before{
content: '';
position: absolute;
bottom: 5px;
width: 0;
height: 0;
border-style: solid;
}
/* right arrows */
#timeline ul li:nth-child(odd) div::before{
left: -15px;
border-width: 8px 16px 8px 0;
border-color: transparent var(--secondary-color) transparent transparent;
}
#timeline ul li:nth-child(even) div::before{
right: -15px;
border-width: 8px 0px 8px 16px;
border-color: transparent transparent transparent var(--secondary-color);
}
@media(max-width: 900px)and(min-width:600px){
#timeline ul li div{
width: 250px;
}
#timeline ul li:nth-child(even) div{
left: -284px;
}
}
@media(max-width:600px){
#timeline ul li{
margin-left: 20px;
}
#timeline ul li div{
width: calc(100vw-90px);
}
#timeline ul li:nth-child(even) div{
left: 40px;
}
#timeline ul li:nth-child(even) div::before{
left: -15px;
border-width: 8px 16px 8px 0;
border-color: transparent var(--secondary-color) transparent transparent;
}
}
/* show boxes */
#timeline ul li.show div{
transform: none;
visibility: visible;
opacity: 1;
}
#timeline ul li.show::after{
background-color: var(--secondary-color);
}