nunta/scss/_timeline.scss

179 lines
3.4 KiB
SCSS
Raw Normal View History

// Styling for the timeline section
.timeline {
2017-08-11 21:12:34 +02:00
position: relative;
padding: 0;
list-style: none;
&:before {
position: absolute;
top: 0;
bottom: 0;
left: 40px;
width: 2px;
margin-left: -1.5px;
content: '';
background-color: $gray-200;
2017-08-11 21:12:34 +02:00
}
> li {
position: relative;
2017-08-11 21:12:34 +02:00
min-height: 50px;
margin-bottom: 50px;
&:after,
&:before {
2017-08-11 21:12:34 +02:00
display: table;
content: ' ';
}
2017-08-11 21:12:34 +02:00
&:after {
clear: both;
}
2017-08-11 21:12:34 +02:00
.timeline-panel {
position: relative;
float: right;
width: 100%;
padding: 0 20px 0 100px;
text-align: left;
&:before {
right: auto;
left: -15px;
border-right-width: 15px;
border-left-width: 0;
}
&:after {
right: auto;
left: -14px;
border-right-width: 14px;
border-left-width: 0;
}
}
2017-08-11 21:12:34 +02:00
.timeline-image {
position: absolute;
z-index: 100;
left: 0;
width: 80px;
height: 80px;
margin-left: 0;
text-align: center;
color: white;
border: 7px solid $gray-200;
2017-08-11 21:12:34 +02:00
border-radius: 100%;
background-color: $primary;
2017-08-11 21:12:34 +02:00
h4 {
font-size: 10px;
line-height: 14px;
margin-top: 12px;
}
}
&.timeline-inverted > .timeline-panel {
float: right;
padding: 0 20px 0 100px;
text-align: left;
&:before {
right: auto;
left: -15px;
border-right-width: 15px;
border-left-width: 0;
}
&:after {
right: auto;
left: -14px;
border-right-width: 14px;
border-left-width: 0;
}
}
&:last-child {
margin-bottom: 0;
}
2017-08-11 21:12:34 +02:00
}
.timeline-heading {
h4 {
margin-top: 0;
color: inherit;
&.subheading {
text-transform: none;
}
}
}
.timeline-body {
> ul,
> p {
margin-bottom: 0;
}
}
}
@media(min-width:768px) {
2017-08-11 21:12:34 +02:00
.timeline {
&:before {
left: 50%;
}
> li {
min-height: 100px;
margin-bottom: 100px;
.timeline-panel {
float: left;
width: 41%;
padding: 0 20px 20px 30px;
text-align: right;
}
.timeline-image {
left: 50%;
width: 100px;
height: 100px;
margin-left: -50px;
h4 {
font-size: 13px;
line-height: 18px;
margin-top: 16px;
}
2017-08-11 21:12:34 +02:00
}
&.timeline-inverted > .timeline-panel {
float: right;
padding: 0 30px 20px 20px;
text-align: left;
}
}
2017-08-11 21:12:34 +02:00
}
}
@media(min-width:992px) {
2017-08-11 21:12:34 +02:00
.timeline {
> li {
min-height: 150px;
.timeline-panel {
padding: 0 20px 20px;
}
.timeline-image {
width: 150px;
height: 150px;
margin-left: -75px;
h4 {
font-size: 18px;
line-height: 26px;
margin-top: 30px;
}
2017-08-11 21:12:34 +02:00
}
&.timeline-inverted > .timeline-panel {
padding: 0 20px 20px;
}
}
2017-08-11 21:12:34 +02:00
}
}
@media(min-width:1200px) {
2017-08-11 21:12:34 +02:00
.timeline {
> li {
min-height: 170px;
.timeline-panel {
padding: 0 20px 20px 100px;
}
.timeline-image {
width: 170px;
height: 170px;
margin-left: -85px;
h4 {
margin-top: 40px;
}
2017-08-11 21:12:34 +02:00
}
&.timeline-inverted > .timeline-panel {
padding: 0 100px 20px 20px;
}
}
2017-08-11 21:12:34 +02:00
}
}