CoreFiles by mySites.guru
switcher.css106 lines, 2,208 bytes, from Joomla_4.0.0-alpha12-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha11
md5
4b5e79e4ac93c84f827539a04841eaae
sha1
37a9137d88fffbfc35459202deeb17cca501912b
sha256
12987185ea5d5c4613cdb5caacc8f59f99d5d6f040300a00f9ec8eb984d5a83b
.switcher {
  position: relative;
  width: 18rem;
  height: 28px;
  float: left; }

.switcher input {
  position: absolute;
  top: 0;
  z-index: 2;
  opacity: 0;
  cursor: pointer;
  height: 28px;
  width: 62px;
  margin: 0;
  left: 0; }
  [dir=rtl] .switcher input {
    left: auto;
    right: 0; }

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

.switcher input:checked + label {
  opacity: 1; }

.switcher input:not(:checked) + label {
  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 {
  line-height: 28px;
  display: inline-block;
  width: auto;
  min-width: 6rem;
  height: 100%;
  margin-left: 70px;
  text-align: left;
  position: absolute;
  transition: opacity 0.25s ease;
  margin-bottom: 0;
  left: 0; }
  [dir=rtl] .switcher label {
    left: auto;
    right: 0;
    margin-left: 0;
    margin-right: 70px;
    text-align: right; }

.switcher .toggle-outside {
  height: 100%;
  overflow: hidden;
  transition: 0.2s ease all;
  background: lightgrey;
  position: absolute;
  width: 58px;
  box-sizing: border-box;
  border: 1px solid rgba(0, 0, 0, 0.18);
  left: 0; }
  [dir=rtl] .switcher .toggle-outside {
    left: auto;
    right: 0; }

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

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

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

.switcher__legend {
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 400;
  float: left;
  width: 220px;
  padding-top: 5px;
  padding-right: 5px;
  text-align: left; }
  [dir=rtl] .switcher__legend {
    padding-left: 5px;
    padding-right: 0;
    float: right;
    text-align: right; }

.col-md-9 .control-group .switcher__legend,
.col-md-12 .control-group .switcher__legend {
  margin-left: -220px; }
  [dir=rtl] .col-md-9 .control-group .switcher__legend, [dir=rtl]
  .col-md-12 .control-group .switcher__legend {
    margin-left: 0;
    float: right;
    text-align: right; }

.col-md-3 .switcher__legend {
  margin-left: 0; }

No other release has this exact content. See every version of this file.