public_html/layouts/basic/styles/components/_Checkbox.scss
/* {[The file is published on the basis of YetiForce Public License 6.5 that can be found in the following directory: licenses/LicenseEN.txt or yetiforce.com]} */
input[type="checkbox"] {
border: 1px solid rgba(0, 0, 0, 0.54);
width: 17px;
transition: 0.25s;
white-space: nowrap;
height: 17px;
min-height: 17px !important;
-webkit-appearance: none;
background: #fff;
border-radius: 3px;
border-color: #d7d7d7;
}
.relatedContents {
input[type="checkbox"] {
width: 20px;
height: 20px;
min-height: 20px !important;
}
input[type="checkbox"]:checked::after,
.checkbox input[type="checkbox"]:checked::after,
.checkbox-inline input[type="checkbox"]:checked::after {
height: 16px;
}
}
input[type="checkbox"]:checked::after,
.checkbox input[type="checkbox"]:checked::after,
.checkbox-inline input[type="checkbox"]:checked::after {
box-sizing: border-box;
-webkit-transform: rotate(45deg);
transform: rotate(45deg);
margin: 0 auto;
border-spacing: 0;
border-color: #fff;
top: 0;
display: table;
width: 5px;
height: 11px;
border-width: 2px;
border-style: solid;
border-top: 0;
border-left: 0;
content: "";
}
input[type="checkbox"]:checked {
background-color: #4a5364;
border-color: #384150;
}
.bootstrap-switch input[type="radio"],
.bootstrap-switch input[type="checkbox"] {
opacity: 0 !important;
}
input[type="checkbox"]:checked:disabled {
opacity: 0.35;
}
input[type="checkbox"]:focus {
box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.075), 0 0 2px #384150;
}
input[type="radio"] {
position: relative;
width: 16px;
height: 16px;
background-clip: border-box;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
vertical-align: text-bottom;
border-radius: 50%;
background-color: #fff;
border: 2px solid #d7d7d7;
}
input[type="radio"]:disabled {
background-color: #e6e6e6;
}
input[type="radio"]:checked:disabled {
opacity: 0.6;
}
input[type="radio"]:before {
margin: 6px 0 0 6px;
content: "";
display: block;
height: 0;
width: 0;
border-radius: 50%;
-webkit-transition: all 0.25s;
transition: all 0.25s;
}
input[type="radio"]:focus {
outline: none;
box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.075), 0 0 2px #404958;
}
input[type="radio"]:checked {
border: 2px solid #4a5364;
}
input[type="radio"]:checked:before {
margin: 3px 0 0 3px;
height: 6px;
width: 6px;
background-color: #4a5364;
}
// switch in marketplace
.c-checkbox-input {
position: fixed;
visibility: hidden;
}
.c-checkbox-slider {
position: relative;
display: block;
width: 5.5em;
height: 1em;
cursor: pointer;
border-radius: 1.5em;
transition: 350ms;
}
.c-checkbox-slider::after {
position: absolute;
content: "";
width: 1.5em;
height: 1.5em;
top: -0.3em;
left: -0.3em;
border-radius: 50%;
transition: 250ms ease-in-out;
background: linear-gradient(#f5f5f5 10%, #eee);
box-shadow: 0 0.1em 0.15em -0.05em rgba(#fff, 0.9) inset, 0 0.2em 0.2em -0.12em rgba(#000, 0.5);
}
.c-checkbox-slider::before {
position: absolute;
content: "";
width: 4em;
height: 1em;
border-radius: 0.75em;
transition: 250ms ease-in-out;
background: linear-gradient(rgba(#000, 0.07), rgba(#fff, 0.1)), #d0d0d0;
}
.c-checkbox-input:checked + .c-checkbox-slider::before {
box-shadow: 0 0.08em 0.15em -0.1em rgba(#000, 0.5) inset, 0 0.05em 0.08em -0.01em rgba(#fff, 0.7),
3em 0 0 0 rgba(#4c6, 0.7) inset;
}
.c-checkbox-input:checked + .c-checkbox-slider::after {
left: 3em;
}
@media (max-width: 400px) {
.c-checkbox-slider {
width: 2em;
}
.c-checkbox-slider::before {
width: 2em;
}
.c-checkbox-input:checked + .c-checkbox-slider::after {
left: 1em;
}
}