93 lines
1.7 KiB
CSS
93 lines
1.7 KiB
CSS
.timestamp {
|
|
flex: 1 1 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 50px;
|
|
position: relative;
|
|
opacity: 0;
|
|
animation: fade-in 200ms forwards calc(var(--index) * 200ms) ease-out;
|
|
|
|
h2 {
|
|
font-size: 20px;
|
|
margin: 0;
|
|
font-weight: normal;
|
|
}
|
|
|
|
span {
|
|
box-sizing: border-box;
|
|
color: var(--desc-color);
|
|
font-size: 14px;
|
|
padding-right: 10px;
|
|
}
|
|
|
|
&:after {
|
|
content: '';
|
|
width: 15px;
|
|
height: 15px;
|
|
background: var(--gradient-angled);
|
|
border-radius: 50%;
|
|
box-shadow: 0 3px 10px 1px var(--primary-muted);
|
|
|
|
position: absolute;
|
|
top: 45px;
|
|
}
|
|
|
|
&:before {
|
|
content: '';
|
|
width: 0;
|
|
height: 3px;
|
|
background-color: #FFF;
|
|
top: 51px;
|
|
position: absolute;
|
|
display: var(--show-bar, block);
|
|
animation: timestamp-in 500ms forwards calc((var(--index) + 1) * 200ms) ease-in-out;
|
|
}
|
|
}
|
|
|
|
@media screen and (max-width: 1200px) {
|
|
.timestamp {
|
|
gap: 15px;
|
|
padding-left: 30px;
|
|
box-sizing: border-box;
|
|
animation: none !important;
|
|
opacity: 1;
|
|
|
|
span {
|
|
margin-bottom: 50px;
|
|
}
|
|
|
|
&:after {
|
|
top: 5px;
|
|
left: -5px;
|
|
}
|
|
|
|
&:before {
|
|
top: 5px;
|
|
left: 1px;
|
|
width: 3px;
|
|
height: 100%;
|
|
animation: none !important;
|
|
}
|
|
}
|
|
}
|
|
|
|
@keyframes fade-in {
|
|
from {
|
|
opacity: 0;
|
|
}
|
|
|
|
to {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
@keyframes timestamp-in {
|
|
from {
|
|
width: 0;
|
|
}
|
|
|
|
to {
|
|
width: 100%;
|
|
}
|
|
}
|