Difference between revisions of "Template:NCKU Tainan/overview"

 
(19 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<html>
 
<html>
 
<style>
 
<style>
 +
#paragraph p{
 +
  font-size:18px !important;
 +
  padding-left:0 !important;
 +
}
 +
 +
 
.timeline {
 
.timeline {
 
   display: flex;
 
   display: flex;
Line 10: Line 16:
 
   position: relative;
 
   position: relative;
 
}
 
}
 +
  
 
.timeline__content-desc {
 
.timeline__content-desc {
   margin: 15px;
+
   margin-top: 15px;
 +
  margin-bottom: 15px;
 
   font-size: 20px;
 
   font-size: 20px;
 
   box-sizing: border-box;
 
   box-sizing: border-box;
Line 21: Line 29:
 
   text-align: justify;
 
   text-align: justify;
 
}
 
}
 
 
.timeline:before {
 
.timeline:before {
 
   position: absolute;
 
   position: absolute;
Line 33: Line 40:
  
 
.timeline-item {
 
.timeline-item {
   padding: 40px 0;
+
   margin-top:10%;
 
   opacity: .3;
 
   opacity: .3;
 
   filter: blur(2px);
 
   filter: blur(2px);
Line 134: Line 141:
 
   font-weight: normal;
 
   font-weight: normal;
 
}
 
}
 +
 
@media only screen and (max-width: 1024px) {
 
@media only screen and (max-width: 1024px) {
 
   .timeline__content {
 
   .timeline__content {
 
     margin-top: 75px;
 
     margin-top: 75px;
   }
+
   }
 
   .timeline-item {
 
   .timeline-item {
 
     opacity: .3;
 
     opacity: .3;
Line 148: Line 156:
 
     transform: translateY(-80px);
 
     transform: translateY(-80px);
 
   }
 
   }
  .timeline-item:before {
+
.timeline-item:before {  
    content: attr(data-text) '\a' attr(title);
+
    white-space: pre-line
+
    letter-spacing: 3px;
+
    width: 100%;
+
    position: absolute;
+
    color: #3cbac8;
+
    font-size: 20px;
+
    font-family: 'Montserrat', sans-serif;
+
    border-left: 2px solid #f9cb8f;
+
    margin-top: 5%;
+
    right: 0;
+
    left: 10px;
+
    padding-left: 15px;
+
    opacity: 0;
+
  }
+
  .timeline-item:nth-child(even) {
+
    align-self: flex-start;
+
  }
+
  .timeline-item:nth-child(even):before {
+
    content: attr(data-text) '\a' attr(title);
+
    white-space: pre-line
+
    letter-spacing: 3px;
+
    width: 100%;
+
    position: absolute;
+
    color: #3cbac8;
+
    font-size: 20px;
+
    font-family: 'Montserrat', sans-serif;
+
    border-left: 2px solid #f9cb8f#;
+
    margin-top: 5%;
+
    right: 0;
+
    left: 10px;
+
    padding-left: 15px;
+
    opacity: 1;
+
    text-align: left;
+
  }
+
  .timeline-item.active:before {
+
 
     top: 0;
 
     top: 0;
  }
+
    left: 10px;   
 +
  }  
 +
.timeline-item:nth-child(even) {
 +
  align-self: flex-start;
 
}
 
}
#paragraph p{
+
.timeline-item:nth-child(even):before {
   font-size:16px !important;
+
   top: 0;
 +
  right:0;
 +
  left:auto;  
 
}
 
}
 +
.timeline-item.active:before {
 +
  top: 0;
 +
  transition: .1s all .1s;
 +
  opacity: 1;
 +
}
 +
}
 +
@media only screen and (max-width: 768px) {
 +
.timeline__img{
 +
    margin-top:10%;
 +
}
 +
.timeline-item:before {
 +
    font-size:16px;
 +
    top: -5%;     
 +
  }
 +
.timeline-item:nth-child(even):before {
 +
  font-size:16px;
 +
  top: -5%; 
 +
}
 +
.timeline-item:before {
 +
  font-size:16px;
  
 +
 +
}
 +
 +
}
  
  

Latest revision as of 13:24, 1 November 2017