Difference between revisions of "Team:NJU-China/mdlib/calendarcss"

m
 
Line 24: Line 24:
 
     width: 3px;
 
     width: 3px;
 
     height: 100%;
 
     height: 100%;
     background: #ee4d4d;
+
     background: #ee8848;
 
     left: 50%;
 
     left: 50%;
 
     top: 0;
 
     top: 0;
Line 39: Line 39:
 
}
 
}
 
#timeline .timeline-item .timeline-icon {
 
#timeline .timeline-item .timeline-icon {
     background: #ee4d4d;
+
     background: #ee8848;
 
     width: 50px;
 
     width: 50px;
 
     height: 50px;
 
     height: 50px;
Line 76: Line 76:
 
     font-size: 1.5em;
 
     font-size: 1.5em;
 
     padding: 15px;
 
     padding: 15px;
     background: #ee4d4d;
+
     background: #ee8848;
 
     color: #fff;
 
     color: #fff;
 
     margin: -20px -20px 0 -20px;
 
     margin: -20px -20px 0 -20px;
Line 89: Line 89:
 
     border-top: 7px solid transparent;
 
     border-top: 7px solid transparent;
 
     border-bottom: 7px solid transparent;
 
     border-bottom: 7px solid transparent;
     border-left: 7px solid #ee4d4d;
+
     border-left: 7px solid #ee8848;
 
}
 
}
 
#timeline .timeline-item .timeline-content.right {
 
#timeline .timeline-item .timeline-content.right {
Line 99: Line 99:
 
     left: inherit;
 
     left: inherit;
 
     border-left: 0;
 
     border-left: 0;
     border-right: 7px solid #ee4d4d;
+
     border-right: 7px solid #ee8848;
 
}
 
}
  
Line 118: Line 118:
 
     margin-left: -6px;
 
     margin-left: -6px;
 
     border-left: 0;
 
     border-left: 0;
     border-right: 7px solid #ee4d4d;
+
     border-right: 7px solid #ee8848;
 
}
 
}
 
#timeline .timeline-item .timeline-icon {
 
#timeline .timeline-item .timeline-icon {

Latest revision as of 19:32, 30 November 2016

div.timeline-icon>i {

   margin-top: 12px;
   margin-left: 12px;
   color: white;

}

  1. timeline .timeline-item:after,#timeline .timeline-item:before {
   content: ;
   display: block;
   width: 100%;
   clear: both;

}

  1. timeline {
   width: 90%;
   margin: 30px auto;
   position: relative;
   -webkit-transition: all 0.4s ease;
   -moz-transition: all 0.4s ease;
   -ms-transition: all 0.4s ease;
   transition: all 0.4s ease;

}

  1. timeline:before {
   content: "";
   width: 3px;
   height: 100%;
   background: #ee8848;
   left: 50%;
   top: 0;
   position: absolute;

}

  1. timeline:after {
   content: "";
   clear: both;
   display: table;
   width: 100%}
  1. timeline .timeline-item {
   margin-bottom: 50px;
   position: relative;

}

  1. timeline .timeline-item .timeline-icon {
   background: #ee8848;
   width: 50px;
   height: 50px;
   position: absolute;
   top: 0;
   left: 50%;
   overflow: hidden;
   margin-left: -23px;
   -webkit-border-radius: 50%;
   -moz-border-radius: 50%;
   -ms-border-radius: 50%;
   border-radius: 50%}
  1. timeline .timeline-item .timeline-icon img {
   position: relative;
   top: 14px;
   left: 14px;

}

  1. timeline .timeline-item .timeline-content {
   width: 45%;
   background: #fff;
   padding: 20px;
   -webkit-box-shadow: 0 3px 0 rgba(0, 0, 0, 0.1);
   -moz-box-shadow: 0 3px 0 rgba(0, 0, 0, 0.1);
   -ms-box-shadow: 0 3px 0 rgba(0, 0, 0, 0.1);
   box-shadow: 0 3px 0 rgba(0, 0, 0, 0.1);
   -webkit-border-radius: 5px;
   -moz-border-radius: 5px;
   -ms-border-radius: 5px;
   border-radius: 5px;
   -webkit-transition: all 0.3s ease;
   -moz-transition: all 0.3s ease;
   -ms-transition: all 0.3s ease;
   transition: all 0.3s ease;

}

  1. timeline .timeline-item .timeline-content h4 {
   font-size: 1.5em;
   padding: 15px;
   background: #ee8848;
   color: #fff;
   margin: -20px -20px 0 -20px;

}

  1. timeline .timeline-item .timeline-content:before {
   content: ;
   position: absolute;
   left: 45%;
   top: 20px;
   width: 0;
   height: 0;
   border-top: 7px solid transparent;
   border-bottom: 7px solid transparent;
   border-left: 7px solid #ee8848;

}

  1. timeline .timeline-item .timeline-content.right {
   float: right;

}

  1. timeline .timeline-item .timeline-content.right:before {
   content: ;
   right: 45%;
   left: inherit;
   border-left: 0;
   border-right: 7px solid #ee8848;

}

@media screen and (max-width: 768px) {

   #timeline {
   margin: 30px;
   padding: 0;

}

  1. timeline:before {
   left: 0;

}

  1. timeline .timeline-item .timeline-content {
   width: 90%;
   float: right;

}

  1. timeline .timeline-item .timeline-content:before, #timeline .timeline-item .timeline-content.right:before {
   left: 10%;
   margin-left: -6px;
   border-left: 0;
   border-right: 7px solid #ee8848;

}

  1. timeline .timeline-item .timeline-icon {
   left: 0;

} }