UNPKG

ui-vue-antd

Version:

An enterprise-class UI design language and Vue-based implementation

182 lines (181 loc) 4.72 kB
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */ /* stylelint-disable no-duplicate-selectors */ /* stylelint-disable declaration-bang-space-before,no-duplicate-selectors */ /* stylelint-disable declaration-bang-space-before,no-duplicate-selectors */ @keyframes antCheckboxEffect { 0% { transform: scale(1); opacity: 0.5; } 100% { transform: scale(1.6); opacity: 0; } } .ant-checkbox { font-family: "Microsoft YaHei", "Monospaced Number", "Microsoft YaHei", "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.5; color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; list-style: none; white-space: nowrap; cursor: pointer; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; top: -0.09em; } .ant-checkbox:hover .ant-checkbox-inner { border-color: #00be7b; } .ant-checkbox-checked:after { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 8px; border: 2px solid #00be7b; content: ""; animation: antCheckboxEffect 0.36s ease-in-out; animation-fill-mode: both; visibility: hidden; } .ant-checkbox:hover:after, .ant-checkbox-wrapper:hover .ant-checkbox:after { visibility: visible; } .ant-checkbox-inner { position: relative; top: 0; left: 0; display: block; width: 18px; height: 18px; border: 2px solid #e4ebf1; border-radius: 4px; background-color: #fff; transition: all 0.3s; } .ant-checkbox-inner:after { transform: rotate(45deg) scale(0); position: absolute; left: 4.14285714px; top: 0.28571429px; display: table; width: 6.42857143px; height: 10.28571429px; border: 2px solid #fff; border-top: 0; border-left: 0; content: " "; transition: all 0.1s cubic-bezier(0.71, -0.46, 0.88, 0.6); } .ant-checkbox-input { position: absolute; left: 0; z-index: 1; cursor: pointer; opacity: 0; top: 0; bottom: 0; right: 0; width: 100%; height: 100%; } .ant-checkbox-indeterminate .ant-checkbox-inner:after { content: " "; transform: scale(1); position: absolute; left: 2.35714286px; top: 6.35714286px; width: 10.28571429px; height: 1.28571429px; } .ant-checkbox-indeterminate.ant-checkbox-disabled .ant-checkbox-inner:after { border-color: rgba(0, 0, 0, 0.25); } .ant-checkbox-checked .ant-checkbox-inner:after { transform: rotate(45deg) scale(1); position: absolute; display: table; border: 2px solid #fff; border-top: 0; border-left: 0; content: " "; transition: all 0.2s cubic-bezier(0.12, 0.4, 0.29, 1.46) 0.1s; } .ant-checkbox-checked .ant-checkbox-inner, .ant-checkbox-indeterminate .ant-checkbox-inner { background-color: #00be7b; border-color: #00be7b; } .ant-checkbox-disabled { cursor: not-allowed; } .ant-checkbox-disabled.ant-checkbox-checked .ant-checkbox-inner:after { animation-name: none; border-color: rgba(0, 0, 0, 0.25); } .ant-checkbox-disabled .ant-checkbox-input { cursor: not-allowed; } .ant-checkbox-disabled .ant-checkbox-inner { border-color: #e4ebf1 !important; background-color: #e4ebf1; } .ant-checkbox-disabled .ant-checkbox-inner:after { animation-name: none; border-color: #e4ebf1; } .ant-checkbox-disabled + span { color: rgba(0, 0, 0, 0.25); cursor: not-allowed; } .ant-checkbox-wrapper { font-family: "Microsoft YaHei", "Monospaced Number", "Microsoft YaHei", "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.5; color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; list-style: none; line-height: unset; cursor: pointer; display: inline-block; } .ant-checkbox-wrapper + .ant-checkbox-wrapper { margin-left: 8px; } .ant-checkbox-wrapper + span, .ant-checkbox + span { padding-left: 8px; padding-right: 8px; } .ant-checkbox-group { font-family: "Microsoft YaHei", "Monospaced Number", "Microsoft YaHei", "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.5; color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; list-style: none; display: inline-block; } .ant-checkbox-group-item { display: inline-block; margin-right: 8px; } .ant-checkbox-group-item:last-child { margin-right: 0; } .ant-checkbox-group-item + .ant-checkbox-group-item { margin-left: 0; }