forked from kokonior/CSS-Projects
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcustome.css
67 lines (58 loc) · 1.38 KB
/
custome.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
body{
background-color: #00ffff;
background-image: linear-gradient(90deg, #FF69B4 0%, #faa6bb 65%, #00ffff 200%);
}
.container{
padding-left: 4vw;
}
.container .timeline{
border-left: 4px solid #FF00BF;
padding: 0.5EM 2em;
cursor: pointer;
position: relative;
}
.container .timeline .timeline-content{
margin: 1.5em;
box-shadow: 0px 3px 6px -2px rgba(0, 0, 0, 0.2);
max-width: 40vw;
padding: 0.5em;
}
.container .timeline .timeline-content h1{
border-bottom: 1px solid #FF00BF;
font-size: 2rem;
color: rgb(3, 44, 121);
}
.container .timeline::before{
content: " ";
height: 1em;
width: 1em;
border: 2px solid #FF00BF;
position: absolute;
left: -0.6em;
border-radius: 50%;
top: 50%;
/* transform: translateY(50%); */
background: #FF69B4;
transition: all 0.5s;
}
.container .timeline .timeline-content:hover{
box-shadow: 0 3px 16px 1px rgba(0, 0, 0, 0.1);
}
.container .timeline:hover::before{
background: aquamarine;
}
.container .timeline .timeline-date{
position: absolute;
left: -4em;
top: 48%;
/* transform: translateY(50%); */
}
@media(max-width:900px){
body{
background-color: #00ffff;
background-image: linear-gradient(90deg, #FF69B4 0%, #FF69B4 65%, #FF69B4 200%);
}
.container .timeline .timeline-content{
max-width: 100%;
}
}