[ Mini Kiebo ]
Server: Windows NT DESKTOP-5B8S0D4 6.2 build 9200 (Windows 8 Professional Edition) i586
Path:
D:
/
xampp182
/
htdocs
/
siami
/
scss
/
components
/
forms
/
[
Home
]
File: _form-checkbox.scss
@import "../../abstracts/variable"; input[type="checkbox"] { &:after{ content: ''; display: block; width: 1rem; height: 1rem; margin-top: 0px; margin-left: -1px; border: 1px solid transparent; border-radius: 3px; background: #d4d7da; line-height: 1.3; } &:checked:after{ width: 1rem; height: 1rem; display: block; content: "\f00c"; font-family: 'FontAwesome'; color: $white; font-weight: 100; font-size: 12px; text-align: center; border-radius: 3px; background: $primary; } } .form-check-label{ margin-left: 5px; margin-top: 3px; } .form-check-inline { .form-check-input { margin-right: 0.625rem; } } .custom-control-label{ &:before, &:after{ top:2px; width: 1.25rem; height: 1.25rem; border-color: #e7e7e7; } } .rtl .custom-control-label{ &:before, &:after{ right: -1.5rem !important; left: inherit; } } .custom-control { line-height: normal; } // CheckBox .custom-control-input:focus ~ .custom-control-label::before{ box-shadow:none !important; } .custom-control-label::before{ background-color: transparent; border-color: #e8e8e8; border-width: 2px; border-radius: 0.25rem !important; @at-root [data-theme-version="dark"] & { background-color: transparent; border-color: $d-border; } } .check-xs{ .custom-control-label:before, .custom-control-label:after{ width: 18px; height: 18px; } } .check-lg{ .custom-control-label:before, .custom-control-label:after{ width: 24px; height: 24px; } } .check-xl{ .custom-control-label:before, .custom-control-label:after{ width: 28px; height: 28px; } } .checkbox{ &-info{ .custom-control-label::before{ background-color: transparent; border-color: $info-light; @at-root [data-theme-version="dark"] & { background-color: $info-opacity; border-color: transparent; } } .custom-control-input:checked ~ .custom-control-label::before{ background-color: $info; border-color: $info; } } &-danger { .custom-control-label::before{ background-color: transparent; border-color: $danger-light; @at-root [data-theme-version="dark"] & { background-color: $danger-opacity; border-color: transparent; } } .custom-control-input:checked ~ .custom-control-label::before{ background-color: $danger; border-color: $danger; } } &-success{ .custom-control-label::before{ background-color: transparent; border-color: $success-light; @at-root [data-theme-version="dark"] & { background-color: $success-opacity; border-color: transparent; } } .custom-control-input:checked ~ .custom-control-label::before{ background-color: $success; border-color: $success; } } &-warning{ .custom-control-label::before{ background-color: transparent; border-color: $warning-light; @at-root [data-theme-version="dark"] & { background-color: $warning-opacity; border-color: transparent; } } .custom-control-input:checked ~ .custom-control-label::before{ background-color: $warning; border-color: $warning; } } &-secondary{ .custom-control-label::before{ background-color: transparent; border-color: $secondary-light; @at-root [data-theme-version="dark"] & { background-color: $secondary-opacity; border-color: transparent; } } .custom-control-input:checked ~ .custom-control-label::before{ background-color: $secondary; border-color: $secondary; } } }