JSFiddle - React, Tailwind, and code Playground

by davehol

CSS

* {
  box-sizing: border-box;
}

.wFormContainer {
  margin-top: 50px;
}

/* Create three equal columns that floats next to each other */


.column {
  float: left;
  width: 33.33%;
  padding: 0px;
  height: 60px;
  /* Should be removed. Only for demonstration */
}

/* Clear floats after the columns */

.formrow:after {
  content: "";
  display: table;
  margin-left: 1px;
  clear: both;
}

/* Responsive layout - makes the three columns stack on top of each other instead of next to each other */

@media screen and (max-width:1000px) {
  .column {
    width: 100%;
  }
}

@media screen and (max-width:750px) {
  fieldset {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  legend {
    margin-left: 0 !important;
  }

  input[type=submit] {
    margin-right: 0 !important;
  }
}

.lbe_container {
  display: block;
  position: relative;
  padding-left: 40px;
  margin-bottom: 20px;
  cursor: pointer;
  font-family: HelveticaNeue;
  font-size: 24px;
  font-weight: normal;
  color: #333;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Hide the browser's default checkbox */

.lbe_container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

/* Create a custom checkbox */

.checkmark {
  position: absolute;
  top: 2px;
  left: 0;
  height: 20px;
  width: 20px;
  background-color: #f0f0f0;
  border-radius: 3px;
  border: solid 2px #646464;
}

/* On mouse-over, add a grey background color */

.lbe_container:hover input~.checkmark {
  background-color: #f0f0f0;
}

/* When the checkbox is checked, add a blue background */

.lbe_container input:checked~.checkmark {
  background-color: #f0f0f0;
}

/* Create the checkmark/indicator (hidden when not checked) */

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the checkmark when checked */

.lbe_container input:checked~.checkmark:after {
  display: block;
}

/* Style the checkmark/indicator...