UNPKG

choerodon-ui

Version:

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

228 lines (227 loc) 6.53 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 */ /* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */ @-webkit-keyframes antCheckboxEffect { 0% { -webkit-transform: scale(1); transform: scale(1); opacity: 0.5; } 100% { -webkit-transform: scale(1.6); transform: scale(1.6); opacity: 0; } } @keyframes antCheckboxEffect { 0% { -webkit-transform: scale(1); transform: scale(1); opacity: 0.5; } 100% { -webkit-transform: scale(1.6); transform: scale(1.6); opacity: 0; } } .c7n-checkbox { -webkit-box-sizing: border-box; box-sizing: border-box; margin: 0; padding: 0; list-style: none; position: relative; top: -0.09em; display: inline-block; line-height: 1; white-space: nowrap; vertical-align: middle; outline: none; cursor: pointer; } .c7n-checkbox-wrapper:hover .c7n-checkbox-input:not(:disabled):not(:checked) + .c7n-checkbox-inner { border-color: #3f51b5; } .c7n-checkbox-checked::after { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 0.02rem; content: ''; } .c7n-checkbox:hover::after, .c7n-checkbox-wrapper:hover .c7n-checkbox::after { visibility: visible; } .c7n-checkbox-inner { position: relative; top: 0; left: 0; display: block; width: 0.16rem; height: 0.16rem; background-color: #fff; border: 0.02rem solid rgba(0, 0, 0, 0.65); border-radius: 0.02rem; -webkit-transition: border-color 90ms cubic-bezier(0, 0, 0.2, 0.1), background-color 90ms cubic-bezier(0, 0, 0.2, 0.1); transition: border-color 90ms cubic-bezier(0, 0, 0.2, 0.1), background-color 90ms cubic-bezier(0, 0, 0.2, 0.1); } .c7n-checkbox-inner::after { position: absolute; top: calc((0.16rem - calc((0.16rem / 14) * 10)) / 2 - calc((0.16rem / 14) * 10) * 0.3); left: calc((0.16rem - calc((0.16rem / 14) * 5)) / 2 - calc((0.16rem / 14) * 5) * 0.3); display: table; width: calc((0.16rem / 14) * 5); height: calc((0.16rem / 14) * 10); border: 0.02rem solid #fff; border-top: 0; border-left: 0; border-spacing: 0; -webkit-transform: rotate(45deg) scale(0); -ms-transform: rotate(45deg) scale(0); transform: rotate(45deg) scale(0); -webkit-transition: all 0.1s cubic-bezier(0.71, -0.46, 0.88, 0.6); transition: all 0.1s cubic-bezier(0.71, -0.46, 0.88, 0.6); content: ' '; } .c7n-checkbox-input { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 1; width: 100%; height: 100%; cursor: pointer; opacity: 0; } .c7n-checkbox-checked .c7n-checkbox-inner::after { position: absolute; display: table; border: 0.02rem solid #fff; border-top: 0; border-left: 0; -webkit-transform: rotate(45deg) scale(1); -ms-transform: rotate(45deg) scale(1); transform: rotate(45deg) scale(1); -webkit-transition: all 0.2s cubic-bezier(0.12, 0.4, 0.29, 1.46) 0.1s; transition: all 0.2s cubic-bezier(0.12, 0.4, 0.29, 1.46) 0.1s; content: ' '; } .c7n-checkbox-checked .c7n-checkbox-inner, .c7n-checkbox-indeterminate .c7n-checkbox-inner { background-color: #3f51b5; border-color: #3f51b5; } .c7n-checkbox-checked.c7n-checkbox.c7n-checkbox-disabled .c7n-checkbox-inner, .c7n-checkbox-indeterminate.c7n-checkbox.c7n-checkbox-disabled .c7n-checkbox-inner { background-color: #f5f5f5 !important; border-color: #e0e0e0 !important; } .c7n-checkbox-checked.c7n-checkbox.c7n-checkbox-disabled .c7n-checkbox-inner::after, .c7n-checkbox-indeterminate.c7n-checkbox.c7n-checkbox-disabled .c7n-checkbox-inner::after { border-color: rgba(0, 0, 0, 0.25); } .c7n-checkbox-disabled { cursor: not-allowed; } .c7n-checkbox-disabled.c7n-checkbox-checked .c7n-checkbox-inner::after { border-color: rgba(0, 0, 0, 0.25); -webkit-animation-name: none; animation-name: none; } .c7n-checkbox-disabled .c7n-checkbox-input { cursor: not-allowed; } .c7n-checkbox-disabled .c7n-checkbox-inner { background-color: #f5f5f5 !important; border-color: #e0e0e0 !important; } .c7n-checkbox-disabled .c7n-checkbox-inner::after { border-color: #f5f5f5; -webkit-animation-name: none; animation-name: none; } .c7n-checkbox-disabled + span { color: rgba(0, 0, 0, 0.54); cursor: not-allowed; } .c7n-checkbox-wrapper { -webkit-box-sizing: border-box; box-sizing: border-box; margin: 0; padding: 0; list-style: none; display: inline-block; line-height: unset; cursor: pointer; } .c7n-checkbox-wrapper + .c7n-checkbox-wrapper { margin-left: 0.08rem; } .c7n-checkbox-wrapper + span, .c7n-checkbox + span { padding-right: 0.08rem; padding-left: 0.08rem; } .c7n-checkbox-group { display: inline-block; } .c7n-checkbox-group-item { display: inline-block; margin-right: 0.08rem; } .c7n-checkbox-group-item:last-child { margin-right: 0; } .c7n-checkbox-group-item + .c7n-checkbox-group-item { margin-left: 0; } .c7n-checkbox-group-wrapper { -webkit-box-sizing: border-box; box-sizing: border-box; margin: 0; padding: 0; list-style: none; display: inline-block; } .c7n-checkbox-group-wrapper.c7n-checkbox-group-has-label { position: relative; } .c7n-checkbox-group-wrapper.c7n-checkbox-group-has-label .c7n-checkbox-group { padding-top: 0.17rem; } .c7n-checkbox-group-wrapper .c7n-checkbox-group-label.label-disabled { color: rgba(0, 0, 0, 0.54); } .c7n-checkbox-group-wrapper .c7n-checkbox-group-label { position: absolute; left: 0; width: 100%; color: rgba(0, 0, 0, 0.6); -webkit-transform: scale(0.75) translateY(0) translateZ(0.00001rem); transform: scale(0.75) translateY(0) translateZ(0.00001rem); -webkit-transform-origin: 0 0; -ms-transform-origin: 0 0; transform-origin: 0 0; } .c7n-checkbox-indeterminate .c7n-checkbox-inner::after { position: absolute; top: calc((0.16rem - 0.04rem - calc(0.16rem / 14)) / 2); left: calc((0.16rem - 0.03rem - calc((0.16rem / 14) * 8)) / 2); width: calc((0.16rem / 14) * 8); height: calc(0.16rem / 14); -webkit-transform: scale(1); -ms-transform: scale(1); transform: scale(1); content: ' '; } .c7n-checkbox-indeterminate.c7n-checkbox-disabled .c7n-checkbox-inner::after { border-color: rgba(0, 0, 0, 0.25); }