choerodon-ui
Version:
An enterprise-class UI design language and React-based implementation
448 lines (447 loc) • 15 kB
CSS
/* 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 */
.c7n-pro-attachment-list-wrapper {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-flex: 1;
-ms-flex: 1;
flex: 1;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
max-width: 100%;
}
.c7n-pro-attachment-list-wrapper .c7n-pro-select-wrapper {
margin: unset;
border: unset;
}
.c7n-pro-attachment-list-wrapper .c7n-pro-attachment-list-no-card .c7n-pro-picture {
margin: unset;
}
.c7n-pro-attachment-list-wrapper .c7n-pro-attachment-list-no-card .c7n-pro-picture.c7n-pro-attachment-list-item-icon {
margin: unset;
}
.c7n-pro-attachment-header {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
}
.c7n-pro-attachment-header-divider {
width: 0.01rem;
height: 0.09rem;
margin: 0 0.07rem;
background-color: #e0e0e0;
}
.c7n-pro-attachment-header-buttons {
-webkit-box-flex: 1;
-ms-flex: 1;
flex: 1;
white-space: nowrap;
}
.c7n-pro-attachment-header-buttons .c7n-pro-btn {
height: 0.24rem;
}
.c7n-pro-attachment-list {
-webkit-box-flex: 1;
-ms-flex: 1;
flex: 1;
padding: 0.01rem 0;
overflow: auto;
}
.c7n-pro-attachment-list-item {
margin: 0.04rem 0;
padding: 0 0.1rem;
background-color: #f3f3f3;
border: unset;
}
.c7n-pro-attachment-list-item-container {
position: relative;
padding: 0.07rem 0;
}
.c7n-pro-attachment-list-item-content,
.c7n-pro-attachment-list-item-title,
.c7n-pro-attachment-list-item-error-content {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
}
.c7n-pro-attachment-list-item-title,
.c7n-pro-attachment-list-item-error-message {
-webkit-box-flex: 1;
-ms-flex: 1;
flex: 1;
padding: 0 0.1rem;
overflow: hidden;
white-space: nowrap;
}
.c7n-pro-attachment-list-item .c7n-pro-attachment-list-item-icon {
width: 0.14rem;
height: 0.14rem;
}
.c7n-pro-attachment-list-item .c7n-pro-attachment-list-item-icon .icon {
display: block;
font-size: 0.14rem;
line-height: 1;
}
.c7n-pro-attachment-list-item-name {
-ms-flex-preferred-size: auto;
flex-basis: auto;
-webkit-box-flex: 0;
-ms-flex-positive: 0;
flex-grow: 0;
-ms-flex-negative: 1;
flex-shrink: 1;
}
.c7n-pro-attachment-list-item-link {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
overflow: hidden;
color: inherit;
white-space: nowrap;
}
.c7n-pro-attachment-list-item-link:hover {
color: #3f51b5;
}
.c7n-pro-attachment-list-item-name,
.c7n-pro-attachment-list-item-error-message {
overflow: hidden;
text-overflow: ellipsis;
}
.c7n-pro-attachment-list-item-size {
margin-left: 0.02rem;
color: rgba(0, 0, 0, 0.45);
}
.c7n-pro-attachment-list-item-buttons {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
opacity: 0;
-webkit-transition: opacity 0.3s;
transition: opacity 0.3s;
}
.c7n-pro-attachment-list-item-buttons .c7n-pro-btn {
width: 0.18rem;
height: 0.18rem;
line-height: 0.18rem;
}
.c7n-pro-attachment-list-item-buttons .c7n-pro-btn .icon {
display: block;
font-size: 0.14rem;
line-height: 1;
}
.c7n-pro-attachment-list-item-buttons .c7n-progress-loading {
display: block;
}
.c7n-pro-attachment-list-item-progress {
position: absolute;
right: 0;
bottom: 0;
left: 0;
display: block;
width: auto;
}
.c7n-pro-attachment-list-item-progress .c7n-progress-outer,
.c7n-pro-attachment-list-item-progress .c7n-progress-inner {
display: block;
}
.c7n-pro-attachment-list-item-progress .c7n-progress-inner {
background-color: #d8d8d8;
}
.c7n-pro-attachment-list-item-progress .c7n-progress-bg {
background-image: -webkit-gradient(linear, left top, right top, color-stop(2%, #f3f3f3), to(#3f51b5));
background-image: linear-gradient(90deg, #f3f3f3 2%, #3f51b5 100%);
}
.c7n-pro-attachment-list-item-placeholder {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
color: #ffffff;
font-size: 0.32rem;
background-color: rgba(0, 0, 0, 0.65);
}
.c7n-pro-attachment-list-item-drag-icon {
margin-right: 0.08rem;
color: rgba(0, 0, 0, 0.45);
cursor: move;
}
.c7n-pro-attachment-list-item-buttons-visible,
.c7n-pro-attachment-list-item:hover .c7n-pro-attachment-list-item-buttons {
opacity: 1;
}
.c7n-pro-attachment-list-card {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
margin-top: 0.15rem;
}
.c7n-pro-attachment-list-card .c7n-pro-attachment-list-item {
display: inline-block;
margin-top: 0;
margin-right: 0.08rem;
margin-bottom: 0.08rem;
padding: 0;
text-align: center;
background-color: transparent;
}
.c7n-pro-attachment-list-card .c7n-pro-attachment-list-item-container {
padding: 0;
overflow: hidden;
background-color: #f8f8f8;
border-radius: 0.02rem;
}
.c7n-pro-attachment-list-card .c7n-pro-attachment-list-item-title {
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
}
.c7n-pro-attachment-list-card .c7n-pro-attachment-list-item-buttons {
position: absolute;
right: 0;
bottom: 0;
left: 0;
z-index: 1;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
background-color: rgba(0, 0, 0, 0.65);
border-radius: 0.02rem;
}
.c7n-pro-attachment-list-card .c7n-pro-attachment-list-item-buttons .c7n-pro-btn {
-webkit-box-flex: 1;
-ms-flex: 1;
flex: 1;
height: 0.3rem;
color: #ffffff;
}
.c7n-pro-attachment-list-card .c7n-pro-attachment-list-item-buttons .c7n-pro-btn .icon {
font-size: 0.14rem;
line-height: 0.3rem;
}
.c7n-pro-attachment-list-card .c7n-pro-attachment-list-item-buttons .c7n-pro-btn + .c7n-pro-btn {
margin-left: 0;
border-left: 0.01rem solid rgba(255, 255, 255, 0.65);
border-radius: 0;
}
.c7n-pro-attachment-list-card .c7n-pro-attachment-list-item-buttons .c7n-progress-loading circle {
stroke: #ffffff;
}
.c7n-pro-attachment-list-card .c7n-pro-attachment-list-item-error-content {
position: absolute;
right: 0;
bottom: 0;
left: 0;
padding: 0.1rem 0.05rem;
}
.c7n-pro-attachment-list-no-card .c7n-pro-attachment-list-item-error .c7n-pro-attachment-list-item-name,
.c7n-pro-attachment-list-no-card .c7n-pro-attachment-list-item-error .c7n-pro-attachment-list-item-ext,
.c7n-pro-attachment-list-no-card .c7n-pro-attachment-list-item-error .c7n-pro-attachment-list-item-size,
.c7n-pro-attachment-list-item-error-content {
color: #d50000;
}
.c7n-pro-attachment-list .c7n-pro-attachment-card-button {
line-height: unset;
background-color: #f8f8f8;
border: 0.01rem dashed #e0e0e0;
border-radius: 0.02rem;
}
.c7n-pro-attachment-list .c7n-pro-attachment-card-button .icon {
margin: 0 0 0.04rem 0;
font-size: 0.28rem;
}
.c7n-pro-attachment-list .c7n-pro-attachment-card-button.c7n-pro-btn-disabled,
.c7n-pro-attachment-list .c7n-pro-attachment-card-button .icon {
color: rgba(0, 0, 0, 0.25);
}
.c7n-pro-attachment-order-icon::before {
display: block;
width: 0.16rem;
height: 0.16rem;
background-image: -webkit-gradient(linear, left top, right top, color-stop(0, #000000), to(#000000)), -webkit-gradient(linear, left top, right top, color-stop(0, #000000), to(#000000)), -webkit-gradient(linear, left top, right top, color-stop(0, #000000), to(#000000)), -webkit-gradient(linear, left top, right bottom, color-stop(50%, transparent), color-stop(50%, #3f51b5)), -webkit-gradient(linear, right top, left bottom, color-stop(50%, transparent), color-stop(50%, #3f51b5)), -webkit-gradient(linear, left bottom, left top, color-stop(0, #3f51b5), to(#3f51b5));
background-image: linear-gradient(90deg, #000000 0, #000000 100%), linear-gradient(90deg, #000000 0, #000000 100%), linear-gradient(90deg, #000000 0, #000000 100%), linear-gradient(to bottom right, transparent 50%, #3f51b5 50%), linear-gradient(to bottom left, transparent 50%, #3f51b5 50%), linear-gradient(0deg, #3f51b5 0, #3f51b5 100%);
background-repeat: no-repeat;
background-position: 0.01rem 0.05rem, 0.01rem 0.08rem, 0.01rem 0.11rem, 0.08rem 0.04rem, 0.11rem 0.04rem, 0.1rem 0.08rem;
background-size: 0.05rem 0.02rem, 0.06rem 0.02rem, 0.07rem 0.02rem, 0.04rem 0.04rem, 0.04rem 0.04rem, 0.03rem 0.05rem;
content: '';
}
.c7n-pro-attachment-order-icon.desc::before {
background-image: -webkit-gradient(linear, left top, right top, color-stop(0, #000000), to(#000000)), -webkit-gradient(linear, left top, right top, color-stop(0, #000000), to(#000000)), -webkit-gradient(linear, left top, right top, color-stop(0, #000000), to(#000000)), -webkit-gradient(linear, left bottom, right top, color-stop(50%, transparent), color-stop(50%, #3f51b5)), -webkit-gradient(linear, right bottom, left top, color-stop(50%, transparent), color-stop(50%, #3f51b5)), -webkit-gradient(linear, left bottom, left top, color-stop(0, #3f51b5), to(#3f51b5));
background-image: linear-gradient(90deg, #000000 0, #000000 100%), linear-gradient(90deg, #000000 0, #000000 100%), linear-gradient(90deg, #000000 0, #000000 100%), linear-gradient(to top right, transparent 50%, #3f51b5 50%), linear-gradient(to top left, transparent 50%, #3f51b5 50%), linear-gradient(0deg, #3f51b5 0, #3f51b5 100%);
background-position: 0.01rem 0.05rem, 0.01rem 0.08rem, 0.01rem 0.11rem, 0.08rem 0.09rem, 0.11rem 0.09rem, 0.1rem 0.05rem;
}
.c7n-pro-attachment-validation-message {
padding: 0.04rem 0;
}
.c7n-pro-attachment-empty {
padding: 0.04rem 0;
text-align: center;
}
.c7n-pro-attachment-required::after {
display: inline-block;
width: 0.08rem;
margin-left: 0.04rem;
color: #d50000;
font-family: SimSun, sans-serif;
line-height: 1;
vertical-align: middle;
content: '*';
}
.c7n-pro-attachment.c7n-pro-field {
width: auto;
}
.c7n-pro-attachment .c7n-pro-field-help {
margin-top: 0.04rem;
}
.c7n-pro-form-horizontal .c7n-pro-attachment-list-wrapper *:first-child.c7n-pro-field-help {
line-height: 0.3rem;
}
.c7n-pro-form-horizontal .c7n-pro-attachment-list-wrapper *:first-child.c7n-pro-attachment-list-card {
margin-top: 0.08rem;
}
.c7n-pro-attachment-popup {
border-radius: 0.02rem;
}
.c7n-pro-attachment-popup.slide-up-enter.slide-up-enter-active.c7n-pro-attachment-popup-placement-bottomLeft,
.c7n-pro-attachment-popup.slide-up-enter.slide-up-enter-active.c7n-pro-attachment-popup-placement-bottomRight,
.c7n-pro-attachment-popup.slide-up-appear.slide-up-appear-active.c7n-pro-attachment-popup-placement-bottomLeft,
.c7n-pro-attachment-popup.slide-up-appear.slide-up-appear-active.c7n-pro-attachment-popup-placement-bottomRight {
-webkit-animation-name: antSlideUpIn;
animation-name: antSlideUpIn;
}
.c7n-pro-attachment-popup.slide-up-enter.slide-up-enter-active.c7n-pro-attachment-popup-placement-topLeft,
.c7n-pro-attachment-popup.slide-up-enter.slide-up-enter-active.c7n-pro-attachment-popup-placement-topRight,
.c7n-pro-attachment-popup.slide-up-appear.slide-up-appear-active.c7n-pro-attachment-popup-placement-topLeft,
.c7n-pro-attachment-popup.slide-up-appear.slide-up-appear-active.c7n-pro-attachment-popup-placement-topRight {
-webkit-animation-name: antSlideDownIn;
animation-name: antSlideDownIn;
}
.c7n-pro-attachment-popup.slide-up-leave.slide-up-leave-active.c7n-pro-attachment-popup-placement-bottomLeft,
.c7n-pro-attachment-popup.slide-up-leave.slide-up-leave-active.c7n-pro-attachment-popup-placement-bottomRight {
-webkit-animation-name: antSlideUpOut;
animation-name: antSlideUpOut;
}
.c7n-pro-attachment-popup.slide-up-leave.slide-up-leave-active.c7n-pro-attachment-popup-placement-topLeft,
.c7n-pro-attachment-popup.slide-up-leave.slide-up-leave-active.c7n-pro-attachment-popup-placement-topRight {
-webkit-animation-name: antSlideDownOut;
animation-name: antSlideDownOut;
}
.c7n-pro-attachment-popup-inner {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
}
.c7n-pro-attachment-popup-inner .c7n-pro-attachment-header {
padding: 0 0.15rem;
border-bottom: 0.01rem solid #e0e0e0;
}
.c7n-pro-attachment-popup-inner .c7n-pro-attachment-header-label {
padding: 0.1rem 0;
}
.c7n-pro-attachment-popup .c7n-pro-attachment-list-card {
padding-left: 0.08rem;
}
.c7n-pro-attachment-popup .c7n-pro-attachment-list-item {
background-color: transparent;
}
.c7n-pro-attachment-popup .c7n-pro-attachment-group,
.c7n-pro-attachment-popup-inner {
min-width: 3rem;
max-width: none;
max-height: 2.5rem;
}
.c7n-pro-attachment-popup .c7n-pro-attachment-group {
overflow: auto;
}
.c7n-pro-attachment-group .c7n-pro-attachment-header-label {
color: rgba(0, 0, 0, 0.45);
}
.c7n-pro-attachment-popup .c7n-pro-attachment-group .c7n-pro-attachment-header {
position: sticky;
top: 0;
z-index: 1;
padding: 0.05rem 0.1rem 0 0.1rem;
background-color: #fff;
}
.c7n-pro-attachment-drag {
position: relative;
width: 100%;
height: 100%;
text-align: center;
background: #FFF;
border: 0.01rem dashed #e0e0e0;
border-radius: 0.02rem;
cursor: pointer;
-webkit-transition: border-color 0.3s;
transition: border-color 0.3s;
}
.c7n-pro-attachment-drag-hover:not(.c7n-pro-attachment-disabled) {
border: 0.01rem dashed #1a2169;
}
.c7n-pro-attachment-drag-disabled {
background-color: #0000000a;
cursor: not-allowed;
}
.c7n-pro-attachment-drag .c7n-pro-attachment-btn {
height: 100%;
}
.c7n-pro-attachment-drag .c7n-pro-attachment-drag-container {
display: table-cell;
width: 5rem;
height: 2rem;
vertical-align: middle;
}
.c7n-pro-attachment-drag:not(.c7n-pro-attachment-disabled):not(.c7n-pro-attachment-drag-disabled):hover {
border-color: #6374c2;
}
.c7n-pro-attachment-drag-box {
padding: 0.16rem 0;
}
.c7n-pro-attachment-drag-box-icon {
margin-bottom: 0.09rem;
}
.c7n-pro-attachment-drag-box-icon .icon {
color: #6374c2;
font-size: 0.18rem;
}
.c7n-pro-attachment-drag-box-text {
margin: unset;
color: rgba(0, 0, 0, 0.85);
font-weight: 400;
font-size: 0.12rem;
line-height: 0.2rem;
}
.c7n-pro-attachment-drag-box-hint {
margin: unset;
color: rgba(0, 0, 0, 0.45);
font-size: 0.12rem;
}
.c7n-pro-attachment-drag-hover {
background-color: rgba(0, 0, 0, 0.04);
}