- md5
- 04dbf2d03baa4158a4767a5a464a6e43
- sha1
- 4dd4248b7729c3f44c66616a16fb9f3682e56db0
- sha256
- 5b8e01cdde9d12e3143aec15e9f7399868e8a674ddcd70e7bb00e4e4475fba42
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
.switcher {
position: relative;
width: 18rem;
height: 28px;
margin: 0;
}
.switcher input {
position: absolute;
top: 0;
left: 0;
z-index: 2;
width: 62px;
height: 28px;
margin: 0;
cursor: pointer;
opacity: 0;
}
[dir=rtl] .switcher input {
right: 0;
left: auto;
}
.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;
left: 0;
display: inline-block;
width: auto;
min-width: 6rem;
height: 100%;
margin-bottom: 0;
margin-left: 70px;
line-height: 28px;
text-align: left;
transition: opacity 0.25s ease;
}
[dir=rtl] .switcher label {
right: 0;
left: auto;
margin-right: 70px;
margin-left: 0;
text-align: right;
}
.switcher .toggle-outside {
position: absolute;
left: 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);
}
[dir=rtl] .switcher .toggle-outside {
right: 0;
left: auto;
}
.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 16 releases, Joomla 4.0.0-rc1 to 4.1.0-alpha3. See them all, or every version of this file.