toggle

by Michel Penke

HTML

<div id="input__select" class="flex__item">
        <span class="desc_1">Freiheitsboten</span>
          <input type="checkbox" id="ipt__toggle" class="ipt__toggle hide__dis">
          <label for="ipt__toggle" class="lbl__toggle"></label>
        <span class="desc_2">Eltern Stehen Auf</span>
      </div>

CSS

graphic-preview {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

.graphic-container {
    width: 100%;
    max-width: 500px;
}

/* TEXT SETTINGS ENTIRE GRAPHIC */

.graphic__text {
    font-family: Helvetica, Clean, sans-serif;
    display: block;
    text-align: center;
    justify-content: center;
    text-overflow: wrap;
    line-height: calc(var(--row-height)*0.45);
    color: #303030;
}

.title {
    font-size: 22px;
    line-height: calc(var(--row-height)*0.6);
    margin-bottom: 5px;
    font-weight: bold;
}

.subtitle {
    font-size: 13px;
    margin-top: 10px;
    margin-bottom: 10px;
    line-height: 16px;
}

.source {
    color: gray;
    font-size: 10px;
    margin-top: 5px;
    padding-top: 10px;
}

.input__select {
    font-size: 13px;
    margin-bottom: 20px;
}

.tooltip {
    font-size: 12px;
    text-align: enter;
    line-height: 15px;
    background-color: white;
    fill-opacity: 0.5;
    border-style: solid;
    border-radius: 3px;
    border-width: 2px;
    padding: 5px;
}

.circle {
    border-style: solid;
    fill-opacity: 0.5;
}

.eltern {
    fill: #ff5064;
    stroke: #ff5064;
}

.freiheitsboten {
    fill: #1e4664;
    stroke: #1e4664;
}

.eltern:hover {
    fill-opacity: 1;
    stroke: black;
}

.freiheitsboten:hover {
    fill-opacity: 1;
    stroke: white;
}

/* BUTTONS */

.flex__item * {
  margin: 10px;
}

.flex__item {
  align-items: baseline;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

/******************************************
**************** MECHANICS ****************
******************************************/

.hide__dis {
  display: none;
}

.hide__vis {
  visibility: hidden;
}

.hide__opa {
  opacity: 0
}

.hide__area {
  height: 0px;
  max-height: 0px;
  width: 0px;
  max-width: 0px;
}

.break {
  width: 100%;
  float: clear;
  height: 0px;
  display: block;
}

/******************************************
***************** COLORS...