Template:Timeline/styles.css: Difference between revisions

From wikilawschool.net. Wiki Law School does not provide legal advice. For educational purposes only.
No edit summary
No edit summary
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
.conference-timeline-content{
.timeline {
  width: 100%;
  height: 412px;
  padding: 20px;
  position:relative;
  box-sizing: border-box;
  background: #c8ccd1;
  overflow: auto;
   display: flex;
   display: flex;
  justify-content: space-between;
}
.main-timeline-section{
  position: relative;
  width: 100%; 
  margin:auto;
  height:300px;
  overflow-x:scroll;
  overflow-y:visible;
}
}
.main-timeline-section .timeline-start,
.timieline-title {
.main-timeline-section .timeline-end{
   font-size: 1.5em;
   position: absolute;
   font-weight: bold;  
  background: #c8ccd1;
  border: 3px solid #FFF;
  border-radius:100px;
  top:50%;
  transform: translateY(-50%);
  width:30px;
  height:30px;
   z-index: 10;
}
}
.main-timeline-section .timeline-end{
.timeline-content {
   right:0px;
  max-width: 300px;
  height: 125px;
  padding: 20px;
  flex-shrink: 0;
  flex-grow: 0;
  align-self: flex-start;
  background: #FFF;
  position: relative;
  border-radius: 10px;
   margin-right: 10px;
  box-shadow: 0px 0px 2px 2px rgba(0,0,0, 0.2);
}
}
.main-timeline-section .conference-center-line{
.timeline-content:before {
   position: absolute;
   position: absolute;
   width:100%;
   width: calc(100% + 14px);
   height:5px;
   height: 4px;
   top:50%;
   top: calc(100% + 10px);
  transform: translateY(-50%);
   background: #FFF;
   background: #c8ccd1;
  content: "";
}
  left: -7px;
.timeline-article{
  border-radius: 5px;
    width: 20%;
    position: relative;
    min-height: 300px;
    float:left;
}
}
.timeline-article .content-date {


    top: 30%;
.timeline-content:after {
    left: -30px;  
  position: absolute;
    font-size:18px;
  width: 4px;
  height: 25px;
  top: 100%;
  left: calc(50% - 10px);
  background: #FFF;
  content: "";
}
}
.timeline-article .meta-date {
.timeline-period {
 
  position: absolute;
    top: 50%;
  top: calc(100% + 25px);
    left: 0px;
  background: #FFF;
    transform: translateY(-80%);  
  padding: 10px;
    width:20px;
  width: 100px;
    height:20px;
  text-align:center;
    border-radius: 100%;
  border-radius: 10px;
    background: #c8ccd1;
  left: calc(50% - 70px);
    border:3px solid #FFF;
  box-shadow: 0px 0px 2px 2px rgba(0,0,0, 0.2);
}
}
.timeline-article .content-box {
.timeline-period:before {
/*   box-shadow: 2px 2px 4px 0px #888; */
   width: 15px;
   border: 3px solid #c8ccd1;
  height: 15px;
   border-radius: 5px;
   background: #FFF;
   background-color: #FFF;
   border-radius: 50%;
   width: 180px;
   content: "";
 
   position: absolute;
   top: 60%;
   top: -20px;
   left: -80px;
   left: calc(50% - 5.5px);
  padding:10px;
   z-index: 2;
  color: #1F1F1F;
   text-align: center;
}
}
.timeline-article-top .content-box:before {
  content: " ";


  left:50%;
.timeline-content:nth-child(even) {
  transform: translateX(-50%);
   align-self: flex-end;
   top:-20px;
  border:10px solid transparent;
  border-bottom-color: #c8ccd1;
}
}
.timeline-article-bottom .content-date {
.timeline-content:nth-child(even):before {
  top: 50%;
    top: -15px;  
}
}
.timeline-article-bottom .content-box {
.timeline-content:nth-child(even):after {
  top: 25%;
    top: -25px;
}
}
.timeline-article-bottom .content-box:before {
.timeline-content:nth-child(even) .timeline-period {
   content: " ";
   bottom: 115.25%;
 
   top: unset;
  left:50%;
   transform: translateX(-50%);
  bottom:-20px;
  border:10px solid transparent;
  border-top-color: #c8ccd1;
}
}
 
.timeline-content:nth-child(even) .timeline-period:before {
 
   top: calc(100% + 5px);
@media (max-width:460px){
   body{
    display: none;
  }
}
}

Latest revision as of 02:07, December 16, 2023

.timeline {
  width: 100%;
  height: 412px;
  padding: 20px;
  position:relative;
  box-sizing: border-box;
  background: #c8ccd1;
  overflow: auto;
  display: flex;
}
.timieline-title {
  font-size: 1.5em;
  font-weight: bold; 
}
.timeline-content {
  max-width: 300px;
  height: 125px;
  padding: 20px;
  flex-shrink: 0;
  flex-grow: 0;
  align-self: flex-start;
  background: #FFF;
  position: relative;
  border-radius: 10px;
  margin-right: 10px;
  box-shadow: 0px 0px 2px 2px rgba(0,0,0, 0.2);
}
.timeline-content:before {
  position: absolute;
  width: calc(100% + 14px);
  height: 4px;
  top: calc(100% + 10px);
  background: #FFF;
  content: "";
  left: -7px;
  border-radius: 5px;
}

.timeline-content:after {
  position: absolute;
  width: 4px;
  height: 25px;
  top: 100%;
  left: calc(50% - 10px);
  background: #FFF;
  content: "";
}
.timeline-period {
  position: absolute;
  top: calc(100% + 25px);
  background: #FFF;
  padding: 10px;
  width: 100px;
  text-align:center;
  border-radius: 10px;
  left: calc(50% - 70px);
  box-shadow: 0px 0px 2px 2px rgba(0,0,0, 0.2);
}
.timeline-period:before {
  width: 15px;
  height: 15px;
  background: #FFF;
  border-radius: 50%;
  content: "";
  position: absolute;
  top: -20px;
  left: calc(50% - 5.5px);
  z-index: 2;
}

.timeline-content:nth-child(even) {
  align-self: flex-end;
}
.timeline-content:nth-child(even):before {
    top: -15px; 
}
.timeline-content:nth-child(even):after {
    top: -25px;
}
.timeline-content:nth-child(even) .timeline-period {
  bottom: 115.25%;
  top: unset;
}
.timeline-content:nth-child(even) .timeline-period:before {
  top: calc(100% + 5px);
}