Skip to content
Snippets Groups Projects
App.css 38.1 KiB
Newer Older
Liliana Sanfilippo's avatar
Liliana Sanfilippo committed
  
    .timeline-item-content a {
      text-decoration: underline;
    }
  
    .timeline-item-content a::after {
      display: none;
    }
  }
  
  
  /* Horizontal */
  
  
  .timeline {
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
  }
  
  .timelineol {
    font-size: 0;
    width: 100vw;
    padding: 250px 0;
    transition: all 1s;
  }
  
  .t-tag {
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
    padding: 5px;
    margin-bottom: 10px;
    text-transform: uppercase;
    width: fit-content !important;
  }
  
  .All {
    background-color: white;
  }
  
  button.tabbutton.Patient.active, button.tabbutton.All.active, 
  button.tabbutton.Industry.active, button.tabbutton.Academia.active, 
  button.tabbutton.Medical.active {
    border-color: black;
  }
  
  .Patient {
    background-color: var(--accen-secondary);
  }
  
  .Medical {
    background-color: var(--accent-primary);
  }
  
  .Academia {
    background-color: var(--lightblue);
  }
  
  .Industry {
    background-color: var(--mediumpurple);
  }
  
  .timelineolli {
    position: relative;
    display: inline-block;
    list-style-type: none;
    width: 160px;
    height: 5px;
  /* background-image: url("../components/data/stroke.svg");
    background-size: auto 100%;
    background-repeat: round;
    background-position: 0em; */
     
  
   
    background: var(--text-primary);
  }
  
  .timeline ol li:last-child {
    width: 280px;
  }
  
  .timeline ol li:not(:first-child) {
    margin-left: 14px;
  }
  
  .timeline ol li:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    left: calc(100% + 1px);
    bottom: 0;
    width: 12px;
    height: 12px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: var(--text-primary);
  }
  
  .timeline ol li .timeline-item {
    min-height: 310%;
    position: absolute;
    left: calc(100% + 7px);
    width: 280px;
    padding: 15px;
    font-size: 1rem;
    white-space: normal;
    color: black;
    background: white;
  }
  
  .timeline ol li:nth-child(2n+1) .moretop {
    top: -30px !important;
  }
  
  .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 {
    top: -16px;
    transform: translateY(-100%);
    box-shadow: 0 4px 6px 0 hsla(0, 0%, 0%, 0.2);
  }
  
  .timeline ol li:nth-child(even) .timeline-item {
    box-shadow: 0 4px 6px 0 hsla(0, 0%, 0%, 0.2);
    top: calc(100% + 16px);
  }
  
  .timeline ol li:nth-child(odd) .timeline-item::before {
    top: 100%;
    border-width: 8px 8px 0 0;
    border-color: white transparent transparent transparent;
  }
  
  .timeline ol li:nth-child(even) .timeline-item::before {
    top: -8px;
    border-width: 8px 0 0 8px;
    border-color: transparent transparent transparent white;
  }
  
  .timeline {
    background-color: inherit;
    font-size: 1rem;
  }
  
  .card {
    border-radius: 4px;
    background-color: #fff;
    color: #333;
    padding: 10px;
    box-shadow: 0 4px 6px 0 hsla(0, 0%, 0%, 0.2);
    width: 100%;
    max-width: 560px;
  }
  
  .date {
    background-color: var(--text-primary) !important;
    padding: 4px !important;
    color: #fff !important;
    border-radius: 4px !important;
    font-weight: 500;
    font-size: .85rem;
  }
Liliana Sanfilippo's avatar
Liliana Sanfilippo committed
  .events {
    padding: 10px
  }
  
  .event {
    margin-bottom: 20px
  }
  
  
  .card-col {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex-basis: 50%;
    flex-grow: 1;
    align-items: flex-end;
  }
  
  .img-text {
    margin-bottom: 10px;
    font-size: 1rem;
  }
  
  .img-credit {
    margin-top: 10px;
    font-size: 0.85rem;
Liliana Sanfilippo's avatar
Liliana Sanfilippo committed
  }
  
  .event {
    position: relative;
    display: flex;
    margin-top: 20px;
  }
  
  .img-timeline {
    overflow: hidden;
    object-fit: cover;
    width: 100%;
    max-height: 400px;
  }
  
  
  
  
  /*PDF*/
  
  
  .download-butt {
    background-color: var(--text-primary);
    padding: 0.5vw;
    border-radius: 5px;
    margin: auto !important;
    width: fit-content !important;
  }
  
  .download-col {
    height: 5vw !important;
    display: flex;
    align-items: center !important;
  }
  
  .small-i {
    width: 80%;
  }
  
  
  
  
  /* SHAPES */
  
  
  .circle {
    display: flex;
    width: 10vw;
    height: 10vw;
    background-color: var(--lightblue) !important;
    box-shadow: 3px 3px 10px black !important;
    border-radius: 50%;
    margin: 1vw;
  }
  
  .shape-text {
    margin: auto;
    text-align: center;
  }
  
  
  
  
  /*collapsible*/
  
   
  
  .collapse-card {
    border-radius: 4px;
    background-color: #fff;
    color: #333;
    padding: 10px;
    box-shadow: 0 4px 6px 0 hsla(0, 0%, 0%, 0.2);
    width: 100%;
  }
  
  
  
  
  /*boxes*/
  
  
Liliana Sanfilippo's avatar
Liliana Sanfilippo committed
    position: relative;
    transition: background var(--vp-ct),border-color var(--vp-ct),color var(--vp-ct)
  }
  
  @media print {
    .hint-container {
      page-break-inside: avoid
    }
  }
  
  .hint-container .hint-container-title {
    position: relative;
    font-weight: 600;
    line-height: 1.25
  }
  
  .hint-container.info,
  .hint-container.note,
  .hint-container.tip,
  .hint-container.warning,
  .hint-container.danger {
Liliana Sanfilippo's avatar
Liliana Sanfilippo committed
    margin: 1rem 0;
    padding: .25rem 1rem;
    border-inline-start-width: .3rem;
    border-inline-start-style: solid;
    border-radius: .5rem;
    color: inherit
  }
  
  @media (max-width: 419px) {
    .hint-container.info,
    .hint-container.note,
    .hint-container.tip,
    .hint-container.warning,
    .hint-container.danger {
      margin-inline: -.75rem
    }
  }
  
  .hint-container.info .hint-container-title,
  .hint-container.note .hint-container-title,
  .hint-container.tip .hint-container-title,
  .hint-container.warning .hint-container-title,
  .hint-container.danger .hint-container-title {
Liliana Sanfilippo's avatar
Liliana Sanfilippo committed
    padding-inline-start: 1.75rem
  }
  
  @media print {
    .hint-container.info .hint-container-title,
    .hint-container.note .hint-container-title,
    .hint-container.tip .hint-container-title,
    .hint-container.warning .hint-container-title,
    .hint-container.danger .hint-container-title {
      padding-inline-start: 0
    }
  }
  
  .hint-container.info .hint-container-title:before,
  .hint-container.note .hint-container-title:before,
  .hint-container.tip .hint-container-title:before,
  .hint-container.warning .hint-container-title:before,
  .hint-container.danger .hint-container-title:before {
Liliana Sanfilippo's avatar
Liliana Sanfilippo committed
    content: " ";
    position: absolute;
    top: calc(50% - .6125em);
    left: 0;
    width: 1.25em;
    height: 1.25em;
    background-position: left;
    background-repeat: no-repeat
  }
  
  @media print {
    .hint-container.info .hint-container-title:before,
    .hint-container.note .hint-container-title:before,
    .hint-container.tip .hint-container-title:before,
    .hint-container.warning .hint-container-title:before,
    .hint-container.danger .hint-container-title:before {
      display: none
    }
  }
  
  html[dir=rtl] .hint-container.info .hint-container-title:before,
  html[dir=rtl] .hint-container.note .hint-container-title:before,
  html[dir=rtl] .hint-container.tip .hint-container-title:before,
  html[dir=rtl] .hint-container.warning .hint-container-title:before,
  html[dir=rtl] .hint-container.danger .hint-container-title:before {
    right: 0;
    left: unset
  }
  
  .hint-container.info p,
  .hint-container.note p,
  .hint-container.tip p,
  .hint-container.warning p,
  .hint-container.danger p {
    line-height: 1.5
  }
  
  .hint-container.info a,
  .hint-container.note a,
  .hint-container.tip a,
  .hint-container.warning a,
  .hint-container.danger a {
    color: var(--vp-tc)
  }
  
  .hint-container.info {
    border-color: var(--info-border-color);
    background: var(--info-bg-color)
  }
  
  .hint-container.info>.hint-container-title {
    color: var(--info-title-color)
  }
  
  .hint-container.info>.hint-container-title:before {
    background-image: url("https://static.igem.wiki/teams/5247/design/icons/info-filled-small.png")
  }
  
  .hint-container.info code {
    background: var(--info-code-bg-color)
  }
  
  
  
  
  /*POPUP*/
  
  
  .popup {
    position: relative;
    display: inline-block;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }
  
  
  
  /* The actual popup */
  
  
  .popup .popuptext {
    visibility: hidden;
    min-width: 50vw;
    min-height: 20vw;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    z-index: 1;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
  }
  
  
  
  /* Toggle this class - hide and show the popup */
  
  
  .popup .show {
    visibility: visible;
    -webkit-animation: fadeIn 1s;
    animation: fadeIn 1s;
  }
  
  .tl-butt img:hover {
    cursor: pointer;
    box-shadow: 3px 3px 10px black;
  }
  
  
  /* Add animation (fade in the popup) */
  
  
  @-webkit-keyframes fadeIn {
    from {opacity: 0;
  }
  
  to {
    opacity: 1;
  }
  }
  
  @keyframes fadeIn {
    from {
      opacity: 0;
    }
  
    to {
      opacity: 1;
    }
  }
  
  .tabcontent {
    display: none;
    padding: 6px 12px;
  }
  
  
  
  
  /*GALLERY*/
  
  
  .gall {
    --s: 150px;
  /* control the size */
  
    --g: 10px;
  /* control the gap */
Liliana Sanfilippo's avatar
Liliana Sanfilippo committed

Liliana Sanfilippo's avatar
Liliana Sanfilippo committed
  
  
    display: grid;
    margin: calc(var(--s) + var(--g));
  }
  
  .gall > img {
    grid-area: 1/1;
    width: var(--s);
    aspect-ratio: 1.15;
    object-fit: cover;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%,75% 100%,25% 100%,0 50%);
    transform: translate(var(--_x,0),var(--_y,0)) scale(var(--_t,1));
    cursor: pointer;
    filter: grayscale(80%);
    transition: .2s linear;
  }
  
  .gall > img:hover {
    filter: grayscale(0);
    z-index: 1;
    --_t: 1.2;
  }
  
  .gall > img:nth-child(1) {
    --_y: calc(-100% - var(--g))
  }
  
  .gall > img:nth-child(7) {
    --_y: calc( 100% + var(--g))
  }
  
  .gall > img:nth-child(3), .gall > img:nth-child(5) {
    --_x: calc(-75% - .87*var(--g))
  }
  
  .gall > img:nth-child(4), .gall > img:nth-child(6) {
    --_x: calc( 75% + .87*var(--g))
  }
  
  .gall > img:nth-child(3),.gall > img:nth-child(4) {
    --_y: calc(-50% - .5*var(--g))
  }
  
  .gall > img:nth-child(5), .gall > img:nth-child(6) {
    --_y: calc( 50% + .5*var(--g))
  }
  
  .wrapper {
    width: 500px;
    height: 100%;
    background: #fff;
    margin: 15px auto 0;
  }
  
Liliana Sanfilippo's avatar
Liliana Sanfilippo committed
  .gall-a {
    --s: 200px;
  /* control the size */
     
  
  
    --g: 8px;
  /* control the gap */
     
  
  
    
    display: grid;
    grid: auto-flow var(--s)/repeat(2,var(--s));
    gap: var(--g);
  }
  
  .gall-a > span {
    width: 100%;
    aspect-ratio: 1;
    z-index: 0;
    position: relative;
    transition: .25s,z-index 0s .25s;
    background-color: lightgray;
  }
  
  .gall-b:hover {
    background-color: var(--ourbeige);
  }
  
  .bg-act {
    background-color: var(--background)!important;
  }
  
  .gall-a > span > div > img {
    width: 8rem;
    position: absolute;
    cursor: pointer;
  }
  
  .gall-a > span:nth-child(1) > div > img {
    bottom: 0.5rem;
    right: 1rem;
  }
  
  .gall-a > span:nth-child(2) > div > img {
    bottom: 0.5rem;
    left: 1rem;
  }
  
  .gall-a > span:nth-child(3) >  div > img {
    top: 0.5rem;
    right: 1rem;
  }
  
  .gall-a > span:nth-child(4) > div > img {
    top: 0.5rem;
    left: 1rem;
  }
  
  .gall-a > span:nth-child(1) {
    clip-path: circle(var(--_c,70% at 70% 70%));
    place-self: start;
  }
  
  .gall-a > span:nth-child(2) {
    clip-path: circle(var(--_c,70% at 30% 70%));
    place-self: start end;
  }
  
  .gall-a > span:nth-child(3) {
    clip-path: circle(var(--_c,70% at 70% 30%));
    place-self: end start;
  }
  
  .gall-a > span:nth-child(4) {
    clip-path: circle(var(--_c,70% at 30% 30%));
    place-self: end;
  }
  
  .buffer {
    height: 5vw;
  }
  
  .explore {
    position: absolute;
    right: -4vw;
    bottom: 8vw;
    z-index: 1;
    transform: rotate(-35deg);
    font-size: xx-large;
  }
  
  
  
  
  /* TEAM */
  
  
  .lnp {
    background-image: url("https://static.igem.wiki/teams/5247/scientific-figures/lnp.png");
    height: 12rem;
    width: 12rem;
    background-size: 11.8rem;
    background-repeat: no-repeat;
    background-position: center;
    align-items: center;
  }
  
  .lnp > img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 16rem !important;
    max-width: 66% !important;
    transition: all 1s ease;
    border: 5px solid var(--text-primary);
  }
  
  .lnp:hover > img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 100% !important;
    max-width: 100% !important;
  }
  
  
  
  
  /* datawrapper */
  
  
        .chart.vis-d3-maps-choropleth {
    overflow: hidden;
    position: relative
  }
Liliana Sanfilippo's avatar
Liliana Sanfilippo committed
  .chart.vis-d3-maps-choropleth .inset-map-container svg {
    overflow: visible
  }
  
  .chart.vis-d3-maps-choropleth .inset-map-container path.view {
    fill: none
  }
  
  .chart.vis-d3-maps-choropleth .inset-map-container circle.view {
    stroke: none
  }
  
Liliana Sanfilippo's avatar
Liliana Sanfilippo committed
  .chart.vis-d3-maps-choropleth .inset-map-container div.label {
    position: absolute;
    text-align: center
  }
  
  .chart.vis-d3-maps-choropleth .inset-map-container div.label.outline {
    opacity: .5
  }
  
  .chart.vis-d3-maps-choropleth .inset-map-container div.label:not(.outline) span {
    text-shadow: none
  }
  
Liliana Sanfilippo's avatar
Liliana Sanfilippo committed
  .chart.vis-d3-maps-choropleth .legend-combined {
    gap: 10px
  }
  
  
  .chart.vis-d3-maps-choropleth .map-key.mobile {
    background: #0000;
    position: static!important
  }
  
  .chart.vis-d3-maps-choropleth .map-key.mobile .legend-categories {
    display: inline-block!important
  }
  
  .chart.vis-d3-maps-choropleth .map-key.mobile .category-legend.horizontal {
    height: auto!important;
    width: auto!important
  }
  
  .chart.vis-d3-maps-choropleth .map-key.mobile .title br {
    display: none
  }
  
  .chart.vis-d3-maps-choropleth .map-key.map-key-mb,
        .chart.vis-d3-maps-choropleth .map-key.map-key-mt,
        .chart.vis-d3-maps-choropleth .map-key.mobile {
    background: #0000;
    padding: 0;
    position: static!important
  }
  
  .chart.vis-d3-maps-choropleth .map-key.map-key-mb .legend-categories,
        .chart.vis-d3-maps-choropleth .map-key.map-key-mt .legend-categories,
        .chart.vis-d3-maps-choropleth .map-key.mobile .legend-categories {
    display: inline-block!important
  }
  
  .chart.vis-d3-maps-choropleth .map-key.map-key-mb .category-legend.horizontal,
        .chart.vis-d3-maps-choropleth .map-key.map-key-mt .category-legend.horizontal,
        .chart.vis-d3-maps-choropleth .map-key.mobile .category-legend.horizontal {
    height: auto!important;
    width: auto!important
  }
  
  .chart.vis-d3-maps-choropleth .map-key svg {
    display: block
  }
  
  .chart.vis-d3-maps-choropleth .category-legend {
    border-radius: 4px
  }
  
  .chart.vis-d3-maps-choropleth .color-legend {
    border-radius: 0
  }
  
  .chart.vis-d3-maps-choropleth .dw-tooltip {
    background: #fff;
    border: 1px solid #f5f5f5;
    box-shadow: 3px 3px 3px #0000001a;
    font-size: 11px;
    max-width: 200px;
    padding: 10px;
    position: absolute;
    visibility: hidden;
    z-index: 100
  }
  
  .chart.vis-d3-maps-choropleth .dw-tooltip h2 {
    font-size: 13px;
    margin-top: 0
  }
  
  .chart.vis-d3-maps-choropleth .dw-tooltip table {
    border-spacing: 0;
    color: inherit;
    font-size: inherit;
    font-style: inherit;
    font-variant: inherit;
    font-weight: inherit;
    line-height: inherit;
    text-align: inherit;
    white-space: inherit
  }
  
  .chart.vis-d3-maps-choropleth .dw-tooltip td,
        .chart.vis-d3-maps-choropleth .dw-tooltip th {
    padding: 0 5px 3px 0;
    text-align: left
  }
  
  .chart.vis-d3-maps-choropleth .dw-tooltip ol,
        .chart.vis-d3-maps-choropleth .dw-tooltip ul {
    padding-left: 15px
  }
  
  .chart.vis-d3-maps-choropleth .dw-tooltip ol li,
        .chart.vis-d3-maps-choropleth .dw-tooltip ul li {
    margin-bottom: 2px
  }
  
  .chart.vis-d3-maps-choropleth .dw-tooltip hr {
    border: 0;
    border-top: 1px solid #777
  }
  
  .chart.vis-d3-maps-choropleth .dw-tooltip big {
    font-size: 120%
  }
  
  .chart.vis-d3-maps-choropleth .dw-tooltip small {
    font-size: 95%
  }
  
  .chart.vis-d3-maps-choropleth .dw-tooltip .tooltip-warning {
    background-color: #f2dede;
    border: 1px solid #eed3d7;
    border-radius: 4px;
    color: #b94a48;
    font-family: roboto;
    font-weight: 700;
    padding: 8px 35px 8px 14px;
    position: relative;
    text-shadow: 0 1px 0 #ffffff80
  }
  
  .chart.vis-d3-maps-choropleth .dw-tooltip .tooltip-warning table {
    background: #fff;
    border-radius: 1px;
    display: block;
    font-weight: 400;
    margin-top: 10px;
    padding: 1px 4px
  }
  
  .chart.vis-d3-maps-choropleth .dw-tooltip .tooltip-warning table td {
    padding: 0;
    vertical-align: top
  }
  
  .chart.vis-d3-maps-choropleth .dw-tooltip .tooltip-warning table td.arrow {
    padding-right: 2px
  }
  
  .chart.vis-d3-maps-choropleth .dw-tooltip .dw-tooltip-close {
    color: #a7a7a7;
    float: right;
    font-size: 17px;
    height: 17px;
    line-height: 17px;
    transform: translate(7px, -5px);
    width: 17px
  }
  
  .chart.vis-d3-maps-choropleth .dw-tooltip {
    left: 0;
    padding-right: 20px;
    pointer-events: none;
    top: 0
  }
  
  .chart.vis-d3-maps-choropleth .dw-tooltip.sticky {
    pointer-events: all
  }
  
  .chart.vis-d3-maps-choropleth .dw-tooltip .dw-tooltip-close {
    color: #d8d8d8;
    cursor: pointer;
    font-size: 14px;
    height: 14px;
    line-height: 14px;
    position: absolute;
    right: 2px;
Liliana Sanfilippo's avatar
Liliana Sanfilippo committed
    text-align: center;
Liliana Sanfilippo's avatar
Liliana Sanfilippo committed
    top: 2px;
    transform: none;
    width: 14px
  }
  
  @media (max-device-width:600px) {
    .chart.vis-d3-maps-choropleth .dw-tooltip .dw-tooltip-close {
      font-size: 17px;
      height: 17px;
      line-height: 17px;
      padding: 4px;
      width: 17px
    }
  }
  
  .chart.vis-d3-maps-choropleth rect.background {
    fill: none;
    pointer-events: all
  }
  
  .chart.vis-d3-maps-choropleth svg.svg-main {
    display: block
  }
  
  .chart.vis-d3-maps-choropleth .label {
    pointer-events: none
  }
  
  .chart.vis-d3-maps-choropleth .map-outer {
    position: relative
  }
  
  .chart.vis-d3-maps-choropleth .annotations,
        .chart.vis-d3-maps-choropleth .map-outer canvas {
    left: 0;
    pointer-events: none;
    position: absolute;
    top: 0
  }
  
  .chart.vis-d3-maps-choropleth .annotations {
    height: 99%;
    width: 100%
  }
  
  .chart.vis-d3-maps-choropleth .d3-maps-zoomed-in .annotations {
    overflow: hidden
  }
  
  .chart.vis-d3-maps-choropleth .editing-annotations .zoom-buttons,
        .chart.vis-d3-maps-choropleth .editing-annotations svg {
    pointer-events: none
  }
  
  .chart.vis-d3-maps-choropleth .inset-map-container {
    opacity: 1;
    pointer-events: none;
    position: absolute;
    transition: opacity .1s ease-in-out
  }
  
  .chart.vis-d3-maps-choropleth .dw-chart-body-content.inset-map-zoom-only:not(.inset-map-show) .inset-map-container {
    opacity: 0
  }
  
  .chart.vis-d3-maps-choropleth path.region {
    fill: #bebcba
  }
  
  .chart.vis-d3-maps-choropleth .lbl-hidden {
    pointer-events: none;
    visibility: hidden
  }
  
  .chart.vis-d3-maps-choropleth path.borders {
    fill: none;
    stroke-linejoin: round;
    stroke-linecap: round;
    pointer-events: none
  }
  
  .d3-maps-zoomed-in .annotations {
    overflow: hidden
  }
  
  .chart.dir-rtl .dw-chart-body.svelte-9ysojt {
    direction: rtl
  }
  
  .chart.js.svelte-9ysojt .noscript {
    display: none
  }
  
  .chart .hidden {
    display: none
  }
  
  a img {
    border: 0px
  }
  
  b,
        strong {