jeudi 14 décembre 2017

Mozilla doesn't display checkbox same as Chrome

I have created stylish checkbox which looks perfect to me on Google Chrome, but then I open same page on Mozilla or Explorer it looks just simple without any style. On chorme it looks like this: http://ift.tt/2zbBchz, On Mozilla: http://ift.tt/2kruI5u On Explorer: http://ift.tt/2zbELnH

HTML

<label>Visable level <input type="checkbox" id="show_level" 
name="show_level" form="options"</label>

CSS

    input#show_level:focus,
select:focus,
textarea:focus,
button:focus {
  outline: none;
}

input#show_level[type=checkbox] {
  appearance: none;
  -webkit-appearance: none;
  border-radius: 150px !important;
  background-color: transparent;
  border: 2px solid $melynas-fonas; /* Isjungto filto spalva */
  display: inline-block;
  width: 50px;
  height: 33px;
  position: relative;
  cursor: pointer;

  -webkit-transition: all .3s ease-out .1s;
  -moz-transition: all .3s ease-out .1s;
  -o-transition: all .3s ease-out .1s;
  -ms-transition: all .3s ease-out .1s;
  transition: all .3s ease-out .1s;

  -webkit-transform: scale(1);
  -moz-transform: scale(1);
  -o-transform: scale(1);
  -ms-transform: scale(1);
  transform: scale(1);
}

input#show_level[type=checkbox]:after {
  content: '';
  position: absolute;
  width: 29px;
  height: 29px;
  border-radius: 150px;
  cursor: pointer;
  background-color: $melynas-fonas;
  left: -2px;

  -webkit-transition: all .1s ease-in .1s;
  -moz-transition: all .1s ease-in .1s;
  -o-transition: all .1s ease-in .1s;
  -ms-transition: all .1s ease-in .1s;
  transition: all .1s ease-in .1s;
}

input#show_level[type=checkbox]:checked {
  -webkit-box-shadow: inset 0px 0px 0px 20px #transparent;
  box-shadow: inset 0px 0px 0px 20px transparent;
  border: 2px solid $zalias-fonas; 
}

input#show_level[type="checkbox"]:checked:after {
  left: 20px;
  background-color: $zalias-fonas; 
}




Aucun commentaire:

Enregistrer un commentaire