![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/old/app/design/frontend/Cnc/default/web/scss/common/forms/ |
// ============================================== // FORMS - Checkbox // ============================================== // // Configuration // _____________________________________________ $checkbox-width: 12px; $checkbox-height: 12px; $checkbox-border-weight: 1px; $checkbox-border-color: #979797; .choice { input[type="checkbox"] { & + label { font-size: 1.4rem; } } .fieldset.create.account & { label { > span { &::after { content: '*'; } } + div.mage-error { margin-left: 12px; font-size: 12px; } } } } input[type="checkbox"] { @extend .visually-hidden; & + label { position: relative; display: inline-block; font-size: 1.4rem; line-height: 1.4; padding-top: 1px; padding-left: 27px; min-height: 24px; cursor: pointer; &::before, &::after { position: absolute; content: ""; cursor: pointer; transition: all .2s; margin-top: 2px; } // Fake checkbox &::before { left: 0; top: 0; width: $checkbox-width; height: $checkbox-height; border: $checkbox-border-weight solid $checkbox-border-color; border-radius: $radius-input / 2; background-color: $c-white; } // Check icon &::after { @extend %icon-icomoon; content: "\e92e"; left: calc(calc(#{$checkbox-width} - #{$checkbox-border-weight * 2 })); top: 5px; opacity: 0; font-size: 1.7rem; color: $c-blue; transform: scale(0.5) translate(-100%, -100%); } } &:hover { & + label { // Fake checkbox &::before { border-color: $c-blue; transition: all .2s; } } } &:checked { & + label { // Fake checkbox &::before { border-color: $c-blue; background-color: $c-white; transition: all .2s; } // Check icon &::after { opacity: 1; transform: scale(1) translate(-50%, -50%); transition: all .2s; } } } }