*, *::after, *::before {
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
html {
font-size: 62.5%;
}
body {
font-size: 13px;
font-family: "PT Sans";
color: #7f8c97;
background-color: #fff;
}
a {
color: #acb7c0;
text-decoration: none;
}
img {
max-width: 100%;
}
h1, h2 {
font-family: "PT Sans", sans-serif;
font-weight: bold;
} @media only screen and (min-width: 900px) {
.cd-is-hidden {
visibility: hidden;
}
} header {
height: 200px;
line-height: 200px;
text-align: center;
background: #303e49;
}
header h1 {
color: white;
font-size: 1.8rem;
}
@media only screen and (min-width: 900px) {
header {
height: 300px;
line-height: 300px;
}
header h1 {
font-size: 2.4rem;
}
}
.cd-timeline {
overflow: hidden;
margin: 2em auto;
}
.cd-timeline__container {
position: relative;
width: 90%;
max-width: 900px;
margin: 0 auto;
padding: 2em 0;
}
.cd-timeline__container::before { content: '';
position: absolute;
top: 0;
left: 18px;
height: 100%;
width: 2px;
background: #d7e4ed;
}
@media only screen and (min-width: 900px) {
.cd-timeline {
margin-top: 3em;
margin-bottom: 3em;
}
.cd-timeline__container::before {
left: 50%;
margin-left: -2px;
}
}
.cd-timeline__block {
position: relative;
margin: 2em 0;
}
.cd-timeline__block:after { content: "";
display: table;
clear: both;
}
.cd-timeline__block:first-child {
margin-top: 0;
}
.cd-timeline__block:last-child {
margin-bottom: 0;
}
@media only screen and (min-width: 900px) {
.cd-timeline__block {
margin: 4em 0;
}
}
.cd-timeline__img {
position: absolute;
top: 0;
left: 0;
width: 40px;
height: 40px;
border-radius: 50%; }
.cd-timeline__img img {
display: block;
width: 25px;
height: 25px;
position: relative;
left: 50%;
top: 50%;
margin-left: -13px;
margin-top: -12px;
}
.cd-timeline__img.cd-timeline__img--picture {
background: #eb690b;
}
.cd-timeline__img.cd-timeline__img--basic {
background: #efefef;
}
.cd-timeline__img.cd-timeline__img--movie {
background: #c03b44;
}
.cd-timeline__img.cd-timeline__img--location {
background: #eb690b;
}
@media only screen and (min-width: 900px) {
.cd-timeline__img {
width: 50px;
height: 50px;
left: 50%;
margin-left: -25px; -webkit-transform: translateZ(0);
transform: translateZ(0);
}
.cd-timeline__img.cd-timeline__img--bounce-in {
visibility: visible;
-webkit-animation: cd-bounce-1 0.6s;
animation: cd-bounce-1 0.6s;
}
.cd-shl.cd-shl--bounce-in {
visibility: visible;
-webkit-animation: cd-bounce-1 0.6s;
animation: cd-bounce-1 0.6s;
}
.cd-shr.cd-shr--bounce-in {
visibility: visible;
-webkit-animation: cd-bounce-1 0.6s;
animation: cd-bounce-1 0.6s;
}
}
@-webkit-keyframes cd-bounce-1 {
0% {
opacity: 0;
-webkit-transform: scale(0.5);
transform: scale(0.5);
}
60% {
opacity: 1;
-webkit-transform: scale(1.2);
transform: scale(1.2);
}
100% {
-webkit-transform: scale(1);
transform: scale(1);
}
}
@keyframes cd-bounce-1 {
0% {
opacity: 0;
-webkit-transform: scale(0.5);
transform: scale(0.5);
}
60% {
opacity: 1;
-webkit-transform: scale(1.2);
transform: scale(1.2);
}
100% {
-webkit-transform: scale(1);
transform: scale(1);
}
}
.cd-timeline__content {
min-height: 100px;
position: relative;
margin-left: 60px;
background: #efefef;
border-radius: 0.25em;
padding: 1em; }
.cd-timeline__content:after { content: "";
display: table;
clear: both;
}
.cd-timeline__content::before { content: '';
position: absolute;
top: 16px;
right: 100%;
height: 0;
width: 0;
border: 7px solid transparent;
border-right: 7px solid #efefef;
}
.cd-timeline__content h2 { color: #eb690b;
font-size: 2.2rem;
line-height: 1px;
}
}
.cd-timeline__content p,
.cd-timeline__read-more,
.cd-timeline__date {
font-size: 13px;
font-family: "PT Sans";
}
.cd-timeline__content p {
margin: 1em 0;
line-height: 1.3;
}
.cd-timeline__read-more,
.cd-timeline__date {
display: inline-block;
}
.cd-timeline__read-more {
float: right;
padding: 8px 15px 8px 15px;
background: #333333;
color: white !important;
border-radius: 0em;
border-radius: 3px;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
}
.cd-timeline__read-more:hover {
background-color: #eb690b;
color: #fff;
}
.cd-timeline__date {
float: left;
padding: .8em 0;
opacity: .7;
}
@media only screen and (min-width: 768px) {
.cd-timeline__content h2 {
font-size: 2.2rem;
}
.cd-timeline__content p,
.cd-timeline__read-more,
.cd-timeline__date {
font-size: 13px;
font-family: "PT Sans";
}
}
@media only screen and (min-width: 900px) {
.cd-timeline__content {
margin-left: 0;
padding: 1em;
width: 45%; -webkit-transform: translateZ(0);
transform: translateZ(0);
}
.cd-timeline__content::before {
top: 20px;
left: 100%;
border-color: transparent;
border-left-color: #efefef;
}
.cd-timeline__read-more {
float: left;
}
.cd-timeline__date {
position: absolute;
width: 100%;
left: 122%;
top: 11px;
font-size: 1.3rem;
}
.cd-timeline__block:nth-child(even) .cd-timeline__content {
float: right;
}
.cd-timeline__block:nth-child(even) .cd-timeline__content::before {
top: 20px;
left: auto;
right: 100%;
border-color: transparent;
border-right-color: #efefef;
}
.cd-timeline__block:nth-child(even) .cd-timeline__read-more {
float: right;
}
.cd-timeline__block:nth-child(even) .cd-timeline__date {
left: auto;
right: 122%;
text-align: right;
}
.cd-timeline__content.cd-timeline__content--bounce-in {
visibility: visible;
-webkit-animation: cd-bounce-2 0.6s;
animation: cd-bounce-2 0.6s;
}
}
@media only screen and (min-width: 900px) { .cd-timeline__block:nth-child(even) .cd-timeline__content.cd-timeline__content--bounce-in {
-webkit-animation: cd-bounce-2-inverse 0.6s;
animation: cd-bounce-2-inverse 0.6s;
}
}
@-webkit-keyframes cd-bounce-2 {
0% {
opacity: 0;
-webkit-transform: translateX(-100px);
transform: translateX(-100px);
}
60% {
opacity: 1;
-webkit-transform: translateX(20px);
transform: translateX(20px);
}
100% {
-webkit-transform: translateX(0);
transform: translateX(0);
}
}
@keyframes cd-bounce-2 {
0% {
opacity: 0;
-webkit-transform: translateX(-100px);
transform: translateX(-100px);
}
60% {
opacity: 1;
-webkit-transform: translateX(20px);
transform: translateX(20px);
}
100% {
-webkit-transform: translateX(0);
transform: translateX(0);
}
}
@-webkit-keyframes cd-bounce-2-inverse {
0% {
opacity: 0;
-webkit-transform: translateX(100px);
transform: translateX(100px);
}
60% {
opacity: 1;
-webkit-transform: translateX(-20px);
transform: translateX(-20px);
}
100% {
-webkit-transform: translateX(0);
transform: translateX(0);
}
}
@keyframes cd-bounce-2-inverse {
0% {
opacity: 0;
-webkit-transform: translateX(100px);
transform: translateX(100px);
}
60% {
opacity: 1;
-webkit-transform: translateX(-20px);
transform: translateX(-20px);
}
100% {
-webkit-transform: translateX(0);
transform: translateX(0);
}
} .cd-shl:before{
content:'';
z-index:-1;
width:200px;
position:absolute;
bottom:20px;
left:10px;
top:80%;
box-shadow:0 20px 15px #777;
transform:rotate(-5deg);
}
.cd-shr:after{
content:'';
z-index:-1;
width:200px;
position:absolute;
bottom:20px;
left:10px;
top:80%;
box-shadow:0 20px 15px #777;
transform:rotate(-5deg);
left:auto;
right:10px;
transform:rotate(5deg);
}
@media only screen and (max-width: 900px) {
.cd-timeline__content p,
.cd-timeline__read-more,
.cd-timeline__date {
font-size: 13px;
font-family: "PT Sans";
}
.cd-shl:before{ 
display: none; 
}
.cd-shl:after{
content:'';
z-index:-1;
width:300px;
position:absolute;
bottom:20px;
left:10px;
top:80%;
box-shadow:0 20px 15px #777;
transform:rotate(-5deg);
left:auto;
right:10px;
transform:rotate(5deg);
}
.cd-shr:after{
width:300px;
}
.cd-timeline__img img {
display: block;
width: 20px;
height: 20px;
position: relative;
left: 50%;
top: 50%;
margin-left: -10px;
margin-top: -10px;
}
}
@media only screen and (max-width: 540px) {
.cd-timeline__content p,
.cd-timeline__read-more,
.cd-timeline__date {
font-size: 13px;
font-family: "PT Sans";
}
.cd-shl:after { 
width:200px; 
}
.cd-shr:after { 
width:200px; 
}
}
@media only screen and (max-width: 340px) {
.cd-timeline__content p,
.cd-timeline__read-more,
.cd-timeline__date {
font-size: 13px;
font-family: "PT Sans";
}
.cd-shl:after { 
width:100px; 
}
.cd-shr:after { 
width:100px; 
}
}