// === @Checkbox === .checkbox { display: inline-block; vertical-align: top; position: relative; &__icon { top: 0; left: 0; width: 20px; height: 20px; border: 2px solid rgba(34, 42, 52, 0.3); background: rgba(255, 255, 255, 0.1); position: absolute; transition: background-color 0.2s ease-out, border-color 0.3s ease-out; vertical-align: middle; display: inline-block; overflow: hidden; border-radius: 3px; user-select: none; &::before { content: ' '; top: 0; right: 0; width: 10px; height: 5px; border-top: 3px solid #fff; border-right: 3px solid #fff; opacity: 0; transition: opacity ease-out 0.2s, transform ease-out 0.3s; position: absolute; -webkit-transform: translate3d(-1px, -4px, 0) rotate(135deg); -ms-transform: translate3d(-1px, -4px, 0) rotate(135deg); transform: translate3d(-1px, -4px, 0) rotate(135deg); } } &:active &__icon { transform: translate3d(0, 0, 0) scale(0.9); } &__input { top: 20px; left: 10px; width: 1px; height: 1px; opacity: 0.01; position: absolute; z-index: -777; &:checked + .checkbox__icon { background: #4f98e1; border-color: #4f98e1; } &:checked + .checkbox__icon::before { opacity: 1; -webkit-transform: translate3d(-1px, 2px, 0) rotate(135deg); -ms-transform: translate3d(-1px, 2px, 0) rotate(135deg); transform: translate3d(-1px, 2px, 0) rotate(135deg); } } &__text { padding: 2px 0 0 34px; text-align: left; font-size: 16px; line-height: 18px; vertical-align: top; display: inline-block; user-select: none; } } // === [ Adaptive ] === // === Desktop === @media (max-width: 1280px) { // } @media (min-width: 1024px) { // } // === Tablet && Desktop === @media (min-width: 768px) { // } // === Tablet === @media (max-width: 1024px) { // } // === Mobile === @media (max-width: 768px) { // } @media (max-width: 425px) { // }