UNPKG

@nutui/nutui-react-taro

Version:

京东风格的轻量级移动端 React 组件库,支持一套代码生成 H5 和小程序

171 lines (169 loc) 3.68 kB
/* #ifdef harmony */ /* #endif */ /* #ifndef harmony */ /* #endif */ .nut-checkbox { display: flex; align-items: center; } .nut-checkbox-icon { color: #c2c4cc; font-size: 16px; flex-shrink: 0; } .nut-checkbox-icon-wrap { font-size: 0px; line-height: 0px; border-radius: 50%; box-shadow: 0px 2px 4px 0px rgba(255, 15, 35, 0.2); } .nut-checkbox-icon-checked { color: #ff0f23; transition-duration: 0.3s; transition-property: color, border-color, background-color; border-radius: 50%; } .nut-checkbox-icon-checked.nut-checkbox-icon-disabled { color: #ffadbe; } .nut-checkbox-label { margin-left: 4px; font-size: 12px; color: #1a1a1a; flex-shrink: 0; } .nut-checkbox-label-disabled { color: #c2c4cc; } .nut-checkbox-icon-indeterminate { color: #ff0f23; box-shadow: 0px 2px 4px 0px rgba(255, 15, 35, 0.2); border-radius: 50%; } .nut-checkbox-icon-indeterminate.nut-checkbox-icon-disabled { color: #ffadbe; } .nut-checkbox-icon-disabled { color: #c2c4cc; box-shadow: none; } .nut-checkbox-reverse { flex-direction: row-reverse; } .nut-checkbox-reverse .nut-checkbox-label { margin-right: 4px; margin-left: 0; } .nut-checkbox-button { position: relative; display: inline-flex; align-items: center; min-height: 32px; padding: 5px 18px; font-size: 12px; background: #f2f3f5; border-radius: 15px; color: #1a1a1a; box-sizing: border-box; border: 1px solid #f2f3f5; overflow: hidden; } .nut-checkbox-button-active { background: #ffebf1; color: #ff0f23; border: 1px solid #ff0f23; } .nut-checkbox-button-disabled { color: #c2c4cc; border: 1px solid #f2f3f5; } .nut-checkbox-button-icon { position: absolute; right: 0; bottom: 0; width: 0; height: 0; border-top: 10px solid transparent; border-left: 10px solid transparent; border-bottom: 10px solid #ff0f23; border-right: 10px solid #ff0f23; display: flex; align-items: flex-end; justify-content: flex-end; } .nut-checkbox-button .nut-checkbox-button-icon-checked { width: 12px; height: 12px; position: absolute; color: #ffffff; right: 0; bottom: 0; transform: translate(-1px, -2px); } .nut-checkbox-button .nut-icon { position: absolute; font-size: 12px; width: 12px; height: 12px; } .nut-checkbox-button .nut-icon:before { top: auto; bottom: -22px; margin-left: 6px; } .nut-checkbox .nut-checkbox-button-active.nut-checkbox-button-disabled { background: #c2c4cc; color: #ffffff; border: 1px solid #c2c4cc; } .nut-checkbox-list-item { display: flex; justify-content: space-between; padding: 12px 12px 12px 0; border-top: 1px solid rgba(0, 0, 0, 0.06); } .nut-checkbox-list-item .nut-checkbox-label { flex: none; } .nut-checkbox-list-item .nut-icon { flex: none; } [dir=rtl] .nut-checkbox-label { margin-left: 0; margin-right: 4px; } .nut-rtl .nut-checkbox-label { margin-left: 0; margin-right: 4px; } [dir=rtl] .nut-checkbox-reverse .nut-checkbox-label { margin-left: 4px; margin-right: 0; } .nut-rtl .nut-checkbox-reverse .nut-checkbox-label { margin-left: 4px; margin-right: 0; } [dir=rtl] .nut-checkbox-button-icon { right: auto; left: 0; border-right: 10px solid transparent; border-left: 10px solid #ff0f23; } .nut-rtl .nut-checkbox-button-icon { right: auto; left: 0; border-right: 10px solid transparent; border-left: 10px solid #ff0f23; } [dir=rtl] .nut-checkbox-button-icon-checked, .nut-rtl .nut-checkbox-button-icon-checked { left: auto; right: 50%; transform: translate(3px, -3px); } [dir=rtl] .nut-checkbox-button-icon .nut-icon:before, .nut-rtl .nut-checkbox-button-icon .nut-icon:before { margin-left: 0; margin-right: 6px; }