UNPKG

choerodon-ui

Version:

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

300 lines (299 loc) 8.13 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 */ .c7n-pro-btn { position: relative; display: inline-block; height: 0.3rem; padding: 0 0.1rem; line-height: 1.5; text-align: center; vertical-align: middle; background-color: transparent; border: none; border-radius: 0.02rem; outline: none; -webkit-box-shadow: 0 0.03rem 0.01rem -0.02rem rgba(0, 0, 0, 0.2), 0 0.02rem 0.02rem 0 rgba(0, 0, 0, 0.14), 0 0.01rem 0.05rem 0 rgba(0, 0, 0, 0.12); box-shadow: 0 0.03rem 0.01rem -0.02rem rgba(0, 0, 0, 0.2), 0 0.02rem 0.02rem 0 rgba(0, 0, 0, 0.14), 0 0.01rem 0.05rem 0 rgba(0, 0, 0, 0.12); cursor: pointer; -webkit-transition: all 0.3s ease-out; transition: all 0.3s ease-out; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } .c7n-pro-btn:focus { -webkit-box-shadow: 0 0.04rem 0.03rem -0.02rem rgba(0, 0, 0, 0.2), 0 0.03rem 0.03rem 0 rgba(0, 0, 0, 0.14), 0 0.03rem 0.08rem 0 rgba(0, 0, 0, 0.12); box-shadow: 0 0.04rem 0.03rem -0.02rem rgba(0, 0, 0, 0.2), 0 0.03rem 0.03rem 0 rgba(0, 0, 0, 0.14), 0 0.03rem 0.08rem 0 rgba(0, 0, 0, 0.12); } .c7n-pro-btn[href] { line-height: 0.3rem; } .c7n-pro-btn:enabled:active { -webkit-box-shadow: 0 0.05rem 0.05rem -0.03rem rgba(0, 0, 0, 0.2), 0 0.08rem 0.1rem 0.01rem rgba(0, 0, 0, 0.14), 0 0.03rem 0.14rem 0.02rem rgba(0, 0, 0, 0.12); box-shadow: 0 0.05rem 0.05rem -0.03rem rgba(0, 0, 0, 0.2), 0 0.08rem 0.1rem 0.01rem rgba(0, 0, 0, 0.14), 0 0.03rem 0.14rem 0.02rem rgba(0, 0, 0, 0.12); } .c7n-pro-btn > .icon { margin-right: 0.05rem; font-size: 0.14rem; } .c7n-pro-btn::-moz-focus-inner { padding: 0; border: 0; } .c7n-pro-btn-lg { height: 0.4rem; padding: 0 0.1rem; font-size: 0.16rem; } .c7n-pro-btn-lg .c7n-pro-icon { font-size: 0.16rem; } .c7n-pro-btn-lg[href] { line-height: 0.4rem; } .c7n-pro-btn-sm { height: 0.24rem; padding: 0.01rem 0.06rem; font-size: 0.12rem; } .c7n-pro-btn-sm[href] { line-height: 0.24rem; } .c7n-pro-btn-sm .c7n-pro-icon { font-size: 0.12rem; } .c7n-pro-btn-flat { background: transparent; -webkit-box-shadow: none; box-shadow: none; } .c7n-pro-btn-flat:enabled:hover, .c7n-pro-btn-flat:enabled:focus { background-color: rgba(0, 0, 0, 0.08); -webkit-box-shadow: none; box-shadow: none; } .c7n-pro-btn-flat:enabled:active { -webkit-box-shadow: none; box-shadow: none; } .c7n-pro-btn-raised, .c7n-pro-btn-raised:disabled { color: #fff; } .c7n-pro-btn-raised .c7n-progress circle, .c7n-pro-btn-raised:disabled .c7n-progress circle { stroke: #fff; } .c7n-pro-btn:disabled { cursor: not-allowed; } .c7n-pro-btn:disabled::before { position: absolute; top: -0.01rem; right: -0.01rem; bottom: -0.01rem; left: -0.01rem; z-index: 1; background: #fff; border-radius: inherit; opacity: 0.35; -webkit-transition: opacity 0.2s; transition: opacity 0.2s; content: ''; pointer-events: none; } .c7n-pro-btn-primary.c7n-pro-btn-raised { background-color: #3f51b5; } .c7n-pro-btn-primary.c7n-pro-btn-raised:enabled:hover, .c7n-pro-btn-primary.c7n-pro-btn-raised:enabled:focus { background-color: #2b378f; } .c7n-pro-btn-primary.c7n-pro-btn-raised .c7n-pro-ripple { background-color: rgba(255, 255, 255, 0.1); } .c7n-pro-btn-primary.c7n-pro-btn-flat { color: #3f51b5; } .c7n-pro-btn-primary.c7n-pro-btn-flat .c7n-progress circle { stroke: #3f51b5; } .c7n-pro-btn-gray.c7n-pro-btn-raised { color: #000000; background-color: #f5f5f5; } .c7n-pro-btn-gray.c7n-pro-btn-raised:enabled:hover, .c7n-pro-btn-gray.c7n-pro-btn-raised:enabled:focus { background-color: #e6e6e6; } .c7n-pro-btn-gray.c7n-pro-btn-raised:disabled { color: rgba(0, 0, 0, 0.25); } .c7n-pro-btn-gray.c7n-pro-btn-flat { color: #d0d0d0; } .c7n-pro-btn-gray.c7n-pro-btn-flat .c7n-progress circle { stroke: #d0d0d0; } .c7n-pro-btn-blue.c7n-pro-btn-raised { background-color: #3f51b5; } .c7n-pro-btn-blue.c7n-pro-btn-raised:enabled:hover, .c7n-pro-btn-blue.c7n-pro-btn-raised:enabled:focus { background-color: #2b378f; } .c7n-pro-btn-blue.c7n-pro-btn-raised .c7n-pro-ripple { background-color: rgba(255, 255, 255, 0.1); } .c7n-pro-btn-blue.c7n-pro-btn-flat { color: #3f51b5; } .c7n-pro-btn-blue.c7n-pro-btn-flat .c7n-progress circle { stroke: #3f51b5; } .c7n-pro-btn-green.c7n-pro-btn-raised { background-color: #00bf96; } .c7n-pro-btn-green.c7n-pro-btn-raised:enabled:hover, .c7n-pro-btn-green.c7n-pro-btn-raised:enabled:focus { background-color: #00997d; } .c7n-pro-btn-green.c7n-pro-btn-raised .c7n-pro-ripple { background-color: rgba(255, 255, 255, 0.1); } .c7n-pro-btn-green.c7n-pro-btn-flat { color: #00bf96; } .c7n-pro-btn-green.c7n-pro-btn-flat .c7n-progress circle { stroke: #00bf96; } .c7n-pro-btn-red.c7n-pro-btn-raised { background-color: #d50000; } .c7n-pro-btn-red.c7n-pro-btn-raised:enabled:hover, .c7n-pro-btn-red.c7n-pro-btn-raised:enabled:focus { background-color: #b00006; } .c7n-pro-btn-red.c7n-pro-btn-raised .c7n-pro-ripple { background-color: rgba(255, 255, 255, 0.1); } .c7n-pro-btn-red.c7n-pro-btn-flat { color: #d50000; } .c7n-pro-btn-red.c7n-pro-btn-flat .c7n-progress circle { stroke: #d50000; } .c7n-pro-btn-yellow.c7n-pro-btn-raised { background-color: #fadb14; } .c7n-pro-btn-yellow.c7n-pro-btn-raised:enabled:hover, .c7n-pro-btn-yellow.c7n-pro-btn-raised:enabled:focus { background-color: #d4b106; } .c7n-pro-btn-yellow.c7n-pro-btn-raised .c7n-pro-ripple { background-color: rgba(255, 255, 255, 0.1); } .c7n-pro-btn-yellow.c7n-pro-btn-flat { color: #fadb14; } .c7n-pro-btn-yellow.c7n-pro-btn-flat .c7n-progress circle { stroke: #fadb14; } .c7n-pro-btn-purple.c7n-pro-btn-raised { background-color: #8e44ad; } .c7n-pro-btn-purple.c7n-pro-btn-raised:enabled:hover, .c7n-pro-btn-purple.c7n-pro-btn-raised:enabled:focus { background-color: #692e87; } .c7n-pro-btn-purple.c7n-pro-btn-raised .c7n-pro-ripple { background-color: rgba(255, 255, 255, 0.1); } .c7n-pro-btn-purple.c7n-pro-btn-flat { color: #8e44ad; } .c7n-pro-btn-purple.c7n-pro-btn-flat .c7n-progress circle { stroke: #8e44ad; } .c7n-pro-btn-dark.c7n-pro-btn-raised { background-color: #4f5254; } .c7n-pro-btn-dark.c7n-pro-btn-raised:enabled:hover, .c7n-pro-btn-dark.c7n-pro-btn-raised:enabled:focus { background-color: #434547; } .c7n-pro-btn-dark.c7n-pro-btn-raised .c7n-pro-ripple { background-color: rgba(255, 255, 255, 0.1); } .c7n-pro-btn-dark.c7n-pro-btn-flat { color: #2f353b; } .c7n-pro-btn-dark.c7n-pro-btn-flat .c7n-progress circle { stroke: #2f353b; } .c7n-pro-btn-default { color: #000000; } .c7n-pro-btn-default .c7n-progress circle { stroke: #000000; } .c7n-pro-btn-default.c7n-pro-btn-raised:disabled { color: rgba(0, 0, 0, 0.25); } .c7n-pro-btn-default.c7n-pro-btn-raised:disabled .c7n-progress circle { stroke: rgba(0, 0, 0, 0.25); } .c7n-pro-btn-default:focus { color: #3f51b5; } .c7n-pro-btn-icon-only { width: 0.3rem; height: 0.3rem; padding: 0; border-radius: 50%; } .c7n-pro-btn-icon-only > .icon { margin-right: 0; font-size: 0.2rem; line-height: 1.5; } .c7n-pro-btn-icon-only.c7n-pro-btn-sm { width: 0.24rem; height: 0.24rem; padding: 0; } .c7n-pro-btn-icon-only.c7n-pro-btn-sm > .icon { font-size: 0.14rem; } .c7n-pro-btn-icon-only.c7n-pro-btn-lg { width: 0.4rem; height: 0.4rem; padding: 0; } .c7n-pro-btn-icon-only.c7n-pro-btn-lg > .icon { font-size: 0.24rem; } .c7n-pro-btn-icon-only:disabled::before { opacity: 0.5; } .c7n-pro-btn .c7n-progress.c7n-progress-loading { margin-right: 0.01rem; line-height: 1; } .c7n-pro-btn .c7n-progress.c7n-progress-loading + span { margin-left: 0.05rem; } .c7n-pro-btn .c7n-progress.c7n-progress-loading .c7n-progress-inner { width: 0.15rem; height: 0.15rem; } .c7n-pro-btn + .c7n-pro-btn { margin-left: 0.1rem; } .c7n-pro-btn > * { vertical-align: middle; }