Jump to content

Template:CR Funds Timeline Horizontal/styles.css

From Meta, a Wikimedia project coordination wiki
.funds-timeline-steps {
    display: flex;
    flex-wrap: wrap
}

.funds-timeline-steps .funds-timeline-step  {
    align-items: center;
    display: flex;
    flex-direction: column;
    position: relative;
    margin: 1rem .5rem
}

@media (min-width:300px) {
    .funds-timeline-steps .funds-timeline-step:not(:last-child):after {
        content: "";
        display: block;
        border-top: 1px solid var(--border-color-muted, black);
        width: 3.46rem;
        position: absolute;
        left: 7.5rem;
        top: .4rem;
    }
    .funds-timeline-steps .funds-timeline-step:not(:first-child):before {
        content: "";
        display: block;
        border-top: 1px solid var(--border-color-muted, black);
        width: 3.8125rem;
        position: absolute;
        right: 7.5rem;
        top: .4rem
    }
}

 .funds-timeline-steps .funds-timeline-content {
    width: 9rem;
    text-align: center
}

.funds-timeline-steps .funds-timeline-content .inner-circle {
    border-radius: 1.5rem;
    height: 1rem;
    width: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.funds-timeline-date {
  padding: 6px;
  text-align: center;
  border-radius: 25px;
}

.start-circle {
    width: 5.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 120%;
    align-items: center;
    flex-direction: column;
    position: relative;
    margin: .1rem .1rem;
    border: 1px solid #EAECF0;
    border-radius: 25px;
    padding: .5rem;
}

@media (max-width: 800px) {
	   .funds-timeline-steps {
   		justify-content: center;
   }
}