CoreFiles by mySites.guru
switcher.css83 lines, 1,500 bytes, from Joomla_4.2.5-Stable-Full_Package.zip
Raw History Compare with 4.2.4
md5
943ca0480012a659f7417172ccd50215
sha1
353b12d5d231c12b707f1edbcb7f2d6e4a1f1c64
sha256
2d3c2e5f10eaf1cfc04e59b2dc8dee617b0d511b15ee993d6a6ac5c695b2a1dd
.switcher {
  position: relative;
  width: 18rem;
  height: 28px;
  margin: 0;
}

.switcher input {
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  z-index: 2;
  width: 62px;
  height: 28px;
  margin: 0;
  cursor: pointer;
  opacity: 0;
}

.switcher input:checked {
  z-index: 1;
}

.switcher input:checked + label {
  z-index: 0;
  opacity: 1;
}

.switcher input:not(:checked) + label {
  z-index: 3;
  opacity: 0;
}

.switcher input:focus ~ .toggle-outside {
  border-color: var(--focus);
  box-shadow: 0 0 0 0.2rem rgba(26, 70, 107, 0.25);
}

.switcher label {
  position: absolute;
  inset-inline-start: 0;
  display: inline-block;
  width: auto;
  min-width: 6rem;
  height: 100%;
  margin-bottom: 0;
  -webkit-margin-start: 70px;
          margin-inline-start: 70px;
  line-height: 28px;
  text-align: start;
  transition: opacity 0.25s ease;
}

.switcher .toggle-outside {
  position: absolute;
  inset-inline-start: 0;
  box-sizing: border-box;
  width: 58px;
  height: 100%;
  overflow: hidden;
  background: #d3d3d3;
  border: 1px solid rgba(0, 0, 0, 0.18);
  transition: 0.2s ease all;
  -webkit-transform: translate3d(0, 0, 0);
          transform: translate3d(0, 0, 0);
}

.switcher input ~ input:checked ~ .toggle-outside {
  background: #2f7d32;
}

.switcher .toggle-inside {
  position: absolute;
  left: 0;
  width: 28px;
  height: 28px;
  background: #fff;
  transition: 0.4s ease all;
}

.switcher input ~ input:checked ~ .toggle-outside .toggle-inside {
  left: 30px;
}

The same content is in 46 releases, Joomla 4.0.5-rc1 to 4.3.0-alpha1. See them all, or every version of this file.