/* * * * * * * * * * * */ /* Horizontal Timeline */ /* * * * * * * * * * * */ /* This is the timeline container */ .timeline { white-space: nowrap; min-height: 700px; width: 75vw; overflow-x: auto !important; max-width: inherit !important; overflow-y: hidden !important; width: 100%; background-color: inherit; /* align items center */ align-items: center !important; /* row */ --bs-gutter-x: 1.5rem; --bs-gutter-y: 0; display: flex; flex-wrap: wrap; margin-top: calc(-1 * var(--bs-gutter-y)); margin-right: calc(-.5 * var(--bs-gutter-x)); margin-left: calc(-.5 * var(--bs-gutter-x)); } /* This is the timeline list container */ .timelineol { font-size: 0; width: 100vw; padding: 250px 0; transition: all 1s; } /* Positioning of the upper timeline cards */ .timeline ol li:nth-child(2n+1) .time-meta::before{ top: 100%; left: 8px !important; border-color: white transparent transparent transparent !important; } .timeline ol li:nth-child(2n+1) .moretop{ top: -40px !important; } .timeline ol li:nth-child(odd) .timeline-item { top: -16px; transform: translateY(-100%); box-shadow: 0 4px 6px 0 hsla(0, 0%, 0%, 0.2); } /* Positioning for the lower timeline cards */ .timeline ol li:nth-child(2n) .time-meta::before{ top: 100%; left: 8px !important; border-color: transparent transparent transparent white !important; } .timeline ol li:nth-child(2n) .moretop{ top: 50px !important; } .timeline ol li:nth-child(even) .timeline-item { box-shadow: 0 4px 6px 0 hsla(0, 0%, 0%, 0.2); top: calc(100% + 16px); } /* The DNA Strang of the timeline */ .timelineolli { position: relative; display: inline-block; list-style-type: none; width: 250px; height: 20px; background-image: url("https://static.igem.wiki/teams/5247/design/icons/dna-strang-schmal-fatter.svg"); background-size: 100% 120%; } /* Timeline Pointers outline and form */ .timeline ol li .timeline-item::before { content: ''; position: absolute; top: 100%; left: 0; width: 0; height: 0; border-style: solid; } .timeline ol li:nth-child(odd) .timeline-item::before { top: 100%; border-width: 20px 8px 0 0; border-color: var(--ourbeige) transparent transparent transparent; } .timeline ol li:nth-child(even) .timeline-item::before { top: -20px; border-width: 20px 0 0 8px; border-color: transparent transparent transparent white; } /* To extend the line at the end */ .timelineolli:last-child{ background-size: 65% 120%; } .timeline ol li:last-child { width: 300px; } /* For the points */ .timeline ol li:not(:last-child)::after { content: ''; position: absolute; top: 50%; left: calc(98%); bottom: 0; z-index: 4; width: 40px; height: 40px; transform: translateY(-50%); border-radius: 50%; background: var(--text-primary); } /* Card layout */ .timeline ol li .timeline-item { height: 250px; min-height: 310%; position: absolute; left: calc(100% + 7px); width: 350px; padding: 15px; font-size: 0.9rem; white-space: normal; color: var(--offblack); background: white; /* Soll white bleiben! */ } /* Layout for meta timeline cards */ .time-meta{ border-radius: 10px; } /* Tags */ .t-tag{ box-shadow: 0 4px 6px 0 hsla(0, 0%, 0%, 0.2); color: var(--ourbeige); font-size: 12px; font-weight: bold; letter-spacing: 1px; padding: 5px; margin-bottom: 10px; text-transform: uppercase; width: fit-content !important; } button.tabbutton.Patient.active, button.tabbutton.All.active, button.tabbutton.Industry.active, button.tabbutton.Academia.active, button.tabbutton.Medical.active, .modulators.active, .inhalations.active{ border-color: var(--offblack); } /* and buttons */ button.tabbutton:nth-child(1), button.tabbutton:nth-child(6){ background-color: white; /* soll whit ebleiben! */ } .Patient, button.tabbutton:nth-child(2), .button.tabbutton:nth-child(7), .skin{ background-color: var(--accen-secondary) !important; } .Medical, button.tabbutton:nth-child(3), .button.tabbutton:nth-child(8), .mucosa{ background-color: var(--accent-primary); } .Academia, .Research, button.tabbutton:nth-child(4), button.tabbutton:nth-child(9){ background-color: var(--lightblue); } .Industry, button.tabbutton:nth-child(5){ background-color: var(--mediumpurple); } .Activist, .Milestone{ background-color: var(--igemmediumgreen) !important; } .Education, .Outreach{ background-color: var(--igemlightgreen); } .Other{ background-color: var(--offblack); } /* * * * * * * */ /* TIMELINE BFH*/ /* * * * * * * */ /* Container */ .timeline-container { display: flex; flex-direction: column; position: relative; margin: 40px 0; } /* Line */ .timeline-container::after { background-color: var(--text-primary); position: absolute; left: calc(50% - 2px); content: ""; width: 4px; height: 100%; z-index: 0; } /* Cards */ .timeline-item { min-width: 100px; /* display: flex; */ justify-content: flex-end; padding-right: 30px; position: relative; margin: 10px 0; width: 50%; } .timeline-item-content { box-shadow: 0 0 5px rgba(0, 0, 0, 0.3); border-radius: 5px; background-color: white; /* Soll white bleiben! */ display: flex; flex-direction: column; align-items: flex-end; padding: 15px; position: relative; text-align: right; } /* Accomodate for alteration in card design */ .timeline-item:nth-child(odd) .timeline-item-content { text-align: left; align-items: flex-start; } /* Tags */ .timeline-item-content .tag { color: var(--ourbeige); font-size: 12px; font-weight: bold; top: 5px; left: 5px; letter-spacing: 1px; padding: 5px; margin-top: 5px; margin-left: 5px; position: absolute; text-transform: uppercase; } .timeline-item:nth-child(odd) .timeline-item-content .tag { left: auto; right: 5px; margin-right: 5px; } /* Title design */ .timeline-item-content time { color: var(--offblack); font-size: 16px; font-weight: bold; } /* To create alternation */ .timeline-item:nth-child(odd) { align-self: flex-end; justify-content: flex-start; padding-left: 30px; padding-right: 0; } /* To create bigger first and final cards */ .timeline-end{ box-shadow: 0 0 5px rgba(0, 0, 0, 0.3); border-radius: 5px; background-color: white; /* soll white bleiben */ padding: 15px; position: relative; text-align: center; z-index: 1; margin-top: 8vw; } .timeline-begin{ box-shadow: 0 0 5px rgba(0, 0, 0, 0.3); border-radius: 5px; background-color: white; /* soll white bleiben */ padding: 15px; position: relative; text-align: center; z-index: 1; margin-bottom: 8vw; } /* Make short description on card bigger */ .timeline-item-content span{ font-size: 18px; } /* Make links on Cards fat */ .timeline-item-content a { font-weight: bold; } /* Circle */ .timeline-item-content .circle { background-color: var(--ourbeige) !important; border: 3px solid var(--text-primary); border-radius: 50%; position: absolute; top: calc(50% - 10px); right: -54px !important; width: 20px; height: 20px; z-index: 100; } .timeline-item:nth-child(odd) .timeline-item-content .circle { right: auto; left: -53px; } */ .hpbuttonrow { display: flex; /* Flex-Layout für die untere Reihe */ margin-top: auto; /* Schiebt diese Reihe nach unten */ align-items: center; /* Vertikale Zentrierung */ } .fillup { flex: 1; display: flex; /* Flex-Layout aktivieren */ align-items: center; /* Vertikale Zentrierung */ justify-content: center; /* Horizontale Zentrierung */ } .timeline-item .row:first-child { flex: 1; /* Füllt den verbleibenden Raum aus */ display: flex; /* Flex-Layout aktivieren */ align-items: center; /* Vertikale Zentrierung */ } /* Untere Reihe */ .timeline-item .row:last-child { margin-top: auto; /* Schiebt die letzte Reihe nach unten */ } .fillup-wrapper{ display: flex; } .timeline-item figcaption{ background-color: var(--ourbeige) !important; } .timeline-item figcaption, .timeline-item figure, .timeline-item figcaption h3 { background-color: white !important; } .timeline-item .img-cube{ height: 120px; max-height: 13vh; object-fit: cover !important; }