103 lines
2.2 KiB
SCSS
Vendored
103 lines
2.2 KiB
SCSS
Vendored
.timeline {
|
|
position: relative;
|
|
max-width: 1200px;
|
|
margin: 4rem auto 0;
|
|
.year {
|
|
display: inline-block;
|
|
padding: 15px 30px;
|
|
margin-bottom: 10px;
|
|
font-size: 43px;
|
|
color: $color-light;
|
|
border-radius: 50px;
|
|
}
|
|
.step {
|
|
> img {
|
|
width: 50%;
|
|
}
|
|
&.is-flex {
|
|
width: 520px;
|
|
}
|
|
&.is-flex .year {
|
|
margin-right: 20px;
|
|
}
|
|
|
|
// &:last-child {
|
|
// padding-bottom: 150px;
|
|
// }
|
|
|
|
&.special > img {
|
|
display: block;
|
|
width: 60%;
|
|
margin-bottom: 20px;
|
|
margin-left: 30%;
|
|
}
|
|
.step_content {
|
|
background-color: #fff;
|
|
}
|
|
.step_title {
|
|
margin-bottom: 10px;
|
|
&:nth-child(odd) {
|
|
color: $color-second;
|
|
}
|
|
&:nth-child(even) {
|
|
color: $color-blue;
|
|
}
|
|
}
|
|
&:not(:last-child) {
|
|
margin-bottom: 2rem;
|
|
}
|
|
&:nth-child(odd) .step_title {
|
|
color: $color-second;
|
|
}
|
|
&:nth-child(even) .step_title {
|
|
color: $color-blue;
|
|
}
|
|
|
|
&:nth-child(odd) .year {
|
|
background-color: $color-second;
|
|
}
|
|
&:nth-child(even) .year {
|
|
background-color: $color-blue;
|
|
}
|
|
}
|
|
}
|
|
|
|
@media screen and (min-width: 800px) {
|
|
.timeline {
|
|
// background-image: url(~@/images/storyline.jpg);
|
|
// background-repeat: no-repeat;
|
|
// background-position: top 50px center;
|
|
z-index: 0;
|
|
#frise-autoscroll {
|
|
// text-align: center;
|
|
top: 3rem;
|
|
}
|
|
.step {
|
|
width: 400px;
|
|
&.is-flex {
|
|
width: 520px;
|
|
}
|
|
}
|
|
.left {
|
|
left: 0;
|
|
}
|
|
|
|
.right {
|
|
left: 50%;
|
|
}
|
|
}
|
|
}
|
|
|
|
@media screen and (max-width: 799px) {
|
|
.timeline {
|
|
#frise-autoscroll {
|
|
display: none;
|
|
}
|
|
.step {
|
|
width: 100%;
|
|
&.is-flex {
|
|
width: 100%;
|
|
}
|
|
}
|
|
}
|
|
}
|