芝麻web文件管理V1.00
编辑当前文件:/home/pulsehostuk9/www/cloud.pulsehost.co.uk/modules/CoreWebclient/styles/common/checkbox.less
.custom_radio, .custom_checkbox { cursor: pointer; display: inline-block; font-size: 0; line-height: 1; margin-right: 4px; overflow: hidden; vertical-align: middle; & + label { vertical-align: middle; } html.rtl & { margin-left: 4px; margin-right: 0px; } .toolbar & { vertical-align: middle !important; } &.disabled, &.disabled { cursor: default; } input { .opacity(0); float: left; margin-right: -13px; // equals to icon width for fix androud native brauser margin-top: -30px; html.rtl & { float: right; } } .icon { background: #ffffff; border: 1px solid #b4b5b6; border-radius: 2px; color: #5a6269; display: inline-block; height: 13px !important; line-height: 13px !important; text-align: center; vertical-align: top; width: 13px !important; .init-icon-font(); &:before { display: inline-block; font-size: 10px; line-height: inherit; vertical-align: bottom; .toolbar & { font-size: 12px !important; height: 12px !important; width: 12px !important; } } // .message_list_scroll &, // .contact_list_scroll & { // width: 30px !important; // height: 30px !important; // background: #ccc; // border-radius: 100px; // border: 0px; // display: flex; // align-items: center; // justify-content: center; // } .disabled& { color: #cccccc; border: 1px solid #cccccc !important; background: #f5f5f5; } } // .message_list_scroll &, // .contact_list_scroll & { // .icon { // width: 30px !important; // height: 30px !important; // background: #ccc; // border-radius: 100px; // border: 0px; // box-shadow: none !important; // display: flex; // align-items: center; // justify-content: center; // color: #fff; // span { // display: none; // width: 100%; // height: 100%; // border-radius: 50px; // font-size: 20px; // font-family: Arial; // } // } // &.checked .icon { // background-color: desaturate(darken(@theme-list-checked-item-bg, 20%), 30%) !important; // } // &:not(.checked) { // .icon span { // display: inline-block; // } // } // } // .message_list_scroll .selected &, // .contact_list_scroll .selected & { // &.checked .icon { // background-color: desaturate(darken(@theme-list-selected-item-bg, 10%), 10%) !important; // } // } } .custom_checkbox.checked .icon:before { content: "\e61c"; } .custom_radio { .icon { border-radius: 50%; &:before { margin: -1px 0 0 -1px; } } &.checked .icon:before { content: "\e61b"; } } .custom_switcher { background: #ffffff; border: 1px solid #cccccc; border-radius: 3px; display: inline-block; font-size: 0px; .text { border-right: 1px solid #cccccc; display: inline-block !important; font-size: 9pt; padding: 5px 5px; } label { &.checked { background: #6fa8de; color: #ffffff; display: inline-block; } &:first-child .text { padding-left: 7px; html.rtl & { border: 0px; padding-right: 7px; } } &:last-child .text{ border: 0px; padding-right: 7px; html.rtl & { border-right: 1px solid #cccccc; padding-right: 5px; } } } input { display: none; } }