@cmstops/pro-compo
Version:
[物料平台文档中心](https://arco.design/docs/material/guide)
356 lines (355 loc) • 8.26 kB
CSS
.list-panel-wrapper {
width: 420px;
padding: 0 ;
overflow: hidden;
border: none;
border-radius: 4px;
box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.1);
}
.list-panel-wrapper * {
user-select: none;
}
.list-panel-wrapper *::selection {
display: none;
}
.list-panel-wrapper .arco-popover-content {
display: flex;
flex-direction: column;
height: 100%;
max-height: 600px;
margin-top: 0;
overflow: hidden;
}
.list-panel-wrapper .list-panel-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 11px 15px;
color: white;
font-weight: 500;
background-color: #165dff;
}
.list-panel-wrapper .list-panel-header .header-options {
display: flex;
gap: 12px;
align-items: center;
}
.list-panel-wrapper .list-panel-header .header-options div {
cursor: pointer;
}
.list-panel-wrapper .list-panel-header .header-options div:hover {
opacity: 0.8;
}
.list-panel-wrapper .list-selected-record {
flex: 1;
overflow-y: scroll;
}
.list-panel-wrapper .list-selected-record::-webkit-scrollbar {
width: 6px;
}
.list-panel-wrapper .list-selected-record::-webkit-scrollbar-thumb {
background-color: #ececec;
-webkit-border-radius: 6px;
opacity: 0.5;
}
.list-panel-wrapper .list-selected-record .list-selected-item {
display: flex;
gap: 12px;
align-items: center;
padding: 9px 16px;
overflow: hidden;
}
.list-panel-wrapper .list-selected-record .list-selected-item .item-thumb {
position: relative;
width: 50px;
height: 38px;
overflow: hidden;
}
.list-panel-wrapper .list-selected-record .list-selected-item .item-thumb .item-tag {
position: absolute;
top: 50%;
left: 50%;
color: white;
transform: translate(-50%, -50%);
}
.list-panel-wrapper .list-selected-record .list-selected-item .item-alias {
flex: 1;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.card-wrapper-image {
position: relative;
overflow: hidden;
user-select: none;
-webkit-user-drag: none;
}
.card-wrapper-image .card-wrapper {
position: relative;
overflow: hidden;
border-radius: 2px;
transition: all 0.3s ease-in-out;
aspect-ratio: 4 / 3;
}
.card-wrapper-image .card-wrapper.disable:not(.active) .thumb-image {
cursor: not-allowed;
opacity: 0.4;
}
.card-wrapper-image .card-wrapper.disable:not(.active) .thumb-upload-loading {
cursor: not-allowed;
}
.card-wrapper-image .card-wrapper .mask {
position: absolute;
top: 0;
z-index: 9;
display: none;
width: 100%;
height: 100%;
font-size: 18px;
background: rgba(0, 0, 0, 0.3);
cursor: pointer;
}
.card-wrapper-image .card-wrapper.active .mask {
display: block;
}
.card-wrapper-image .card-alias {
width: 100%;
margin-top: 6px;
overflow: hidden;
color: #3d3d3d;
font-size: 14px;
line-height: 22px;
white-space: nowrap;
text-overflow: ellipsis;
user-select: none;
-webkit-user-drag: none;
}
.card-wrapper-image:hover .check-box-wrapper .check-box,
.card-wrapper-image .check-box-wrapper .check-box.active {
opacity: 1;
}
.card-wrapper-image .check-box-wrapper {
position: absolute;
top: 8px;
left: 8px;
z-index: 10;
cursor: pointer;
}
.card-wrapper-image .check-box-wrapper .check-box {
box-sizing: border-box;
width: 22px;
height: 22px;
font-size: 14px;
line-height: 22px;
text-align: center;
background-color: rgba(0, 0, 0, 0.2);
border: 1px solid white;
border-radius: 50%;
opacity: 0;
transition: all 0.3s ease-in-out;
}
.card-wrapper-image .check-box-wrapper .check-box::selection {
display: none;
}
.card-wrapper-image .check-box-wrapper .check-box:hover {
background-color: rgba(0, 0, 0, 0.3);
}
.card-wrapper-image .check-box-wrapper .check-box.active {
color: white;
background-color: #165dff;
border-color: #165dff;
}
.resource-list {
display: flex;
flex: 1;
flex-direction: column;
gap: 10px;
overflow: hidden;
}
.resource-list-content {
flex: 1;
overflow: hidden;
}
.resource-list-footer,
.resource-list-header,
.resource-list-content .resource-list-content-empty,
.resource-list-content .arco-scrollbar-container {
padding: 0 40px;
}
.resource-list-footer {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
padding-bottom: 20px;
}
.resource-list-footer .footer-right {
display: flex;
flex: 1;
gap: 10px;
align-items: center;
justify-content: flex-end;
margin-top: 10px;
}
.resource-list-footer .footer-right .list-selected-wrapper {
font-size: 12px;
}
.resource-list-content-loading {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
}
.resource-list .list-item-grid {
display: grid;
grid-gap: 20px;
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.resource-list .list-content {
margin-top: 30px;
}
.resource-list .list-content .list-tips {
margin-bottom: 16px;
color: #3d3d3d;
}
.resource-list .upload-wrapper {
display: flex;
flex-direction: column;
}
.resource-list .upload-wrapper .upload-buttons {
display: flex;
gap: 20px;
justify-content: center;
margin: 20px 0;
}
.resource-list .upload-wrapper .upload-dragger {
width: calc(100% - 2px);
}
.resource-list .scen-module {
margin-bottom: 20px;
}
.resource-list .item-load-more {
display: flex;
flex-direction: column;
gap: 10px;
align-items: center;
justify-content: center;
width: 100%;
overflow: hidden;
color: #9a9a9a;
font-size: 12px;
cursor: pointer;
aspect-ratio: 4 / 3;
}
.resource-list .item-load-more img {
height: calc(100% - 40px);
}
.resource-list .list-filter-wrapper .list-filter-tags {
display: flex;
flex-wrap: wrap;
gap: 10px;
margin-top: 10px;
}
.resource-list .list-filter-wrapper .list-filter-tags .list-filter-tag {
padding: 5px 16px;
border-radius: 15px;
cursor: pointer;
}
.resource-list .list-filter-wrapper .list-filter-tags .list-filter-tag:hover {
background-color: var(--color-fill-3);
}
.resource-list .list-filter-wrapper .list-filter-tags .list-filter-tag.active {
color: rgb(var(--primary-6));
font-weight: bold;
background: var(--color-fill-2);
}
.resource-list .list-filter-wrapper .list-filter {
display: flex;
justify-content: space-between;
}
.resource-list .list-filter-wrapper .list-filter .filter-list {
position: relative;
/** 给 popup 一个参考 */
display: flex;
}
.resource-list .list-filter-wrapper .list-filter .filter-list .filter-item {
width: 100px;
margin-right: 10px;
}
.resource-list .list-filter-wrapper .list-filter .filter-list .arco-trigger-popup {
z-index: 100000 ;
}
.resource-list .list-filter-wrapper .list-filter .arco-input-prepend {
padding: 0;
}
.resource-list .list-filter-wrapper .list-filter .more-btn {
position: relative;
/** 给 poperjs 一个参考 */
}
.resource-list .list-filter-wrapper .list-filter .more-btn .filter-pannel {
inset: 40px auto auto auto ;
}
.resource-list .list-filter-wrapper .filter-extra {
display: flex;
gap: 10px;
}
.resource-list .list-filter-wrapper .filter-pannel {
z-index: 100000;
display: flex;
flex-direction: column;
gap: 10px;
padding: 10px;
background-color: #fff;
border-radius: 4px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.resource-list .title {
display: flex;
gap: 8px;
align-items: center;
margin-bottom: 20px;
font-weight: bold;
font-size: 16px;
}
.resource-list .title .line {
width: 3px;
height: 16px;
background-color: #4886ff;
}
.resource-select-wrap {
width: 100%;
height: 100%;
}
.resource-select-modal-body {
height: 80vh;
padding: 0;
}
.resource-select-main {
height: 100%;
}
.resource-select-drawer .arco-drawer-body {
box-sizing: border-box;
padding: 0;
overflow: hidden;
}
.resource-select-container {
display: flex;
flex-direction: column;
gap: 10px;
box-sizing: border-box;
height: 100%;
}
.resource-select-container .resource-select-header {
padding: 10px 24px 0 24px;
}
.resource-select-container .resource-select-header .arco-tabs-nav::before {
display: none;
}
.resource-select-container .resource-select-header .arco-tabs-content {
display: none ;
}
.resource-select-container .resource-list-content .resource-list-content-empty {
box-sizing: border-box;
width: 100%;
height: 100%;
}