Widget:资源计算器/css
<style>/* 日期选择器样式 */ .date-range-container {
display: flex; align-items: center; margin-bottom: 20px;
}
.date-label {
margin-right: 10px; font-size: 14px; color: #606266;
}
- date-range {
width: 240px; height: 32px; padding: 0 12px; border: 1px solid #dcdfe6; border-radius: 4px; font-size: 14px; color: #606266;
} /* Tab样式 */ .el-tabs__item {
padding: 6px;
} .el-tabs__header{
margin: 0 0;
}
/* 卡片面板样式 */ .tab-header {
display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px;
} .function-buttons .el-button{
margin-left:5px;
} .bottom-bar {
display: flex; justify-content: flex-end; margin: 10px 0 20px 0; border-top: 1px dotted #A4A1BE;
}
.bottom-bar .el-button{
padding: 3px 20px; height: auto; border-radius: 0 0 0 12px; background-color: #ccd4db; border: 1px dotted #b9cfe5;
}
.card-panel{
margin-bottom: 20px;
}
/* 卡片样式 */
.card-list { column-count: 4; /* PC 端每行4个卡片 */ column-gap: 5px;
} .card {
border: 3px solid #ffffffa1; border-radius: 2px 20px 2px 2px; padding: 5px; cursor: pointer; transition: all 0.3s; box-shadow: 2px 2px 2px 0 #5151513d; break-inside: avoid; margin:0 0 5px 0;
} @media (max-width: 768px) {
.card-list { column-count: 2; /* 手机端每行一个卡片 */ } .card { border: 1px solid #ffffffa1; border-radius: 2px 10px 2px 2px; margin:2px 0 0 0; box-shadow:none; }
} .card:hover {
box-shadow: 0 2px 12px 0 rgba(0,0,0,.1);
}
.card-header {
display: flex; justify-content: space-between; align-items: center;
}
.card-remark{
font-size: 12px; color: #606266;
}
.prop-item {
display: flex; justify-content: space-between; padding: 2px 0;
}
/* 道具展示样式 */ .prop-content {
display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 5px; overflow-y: scroll; max-height: 45%;
}
.prop-card {
border: 1px solid #dcdfe6; border-radius: 4px; padding: 5px;
}
.prop-info {
display: flex; align-items: center; margin-bottom: 5px; font-size: 12px;
}
.prop-icon {
width: auto; height: 20px; margin: 0 3px 0 0; object-fit: contain;
}
.prop-count {
display: flex; justify-content: center;
}
/* 卡片编辑弹窗样式 */ .editor-props {
margin: 10px 0;
}
.dialog-footer {
display: flex; justify-content: space-between; align-items: center;
} .el-scrollbar{
height:45%;
} .el-scrollbar__wrap{
height:100%; padding: 0 0 10px;
}
/* 导入弹窗样式 */ .import-header {
margin-bottom: 5px;
}
.template-buttons {
display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px;
} .template-buttons .el-button{
padding: 4px 8px; margin: 0;
}
.import-body {
margin-bottom: 10px;
}
.import-body .el-textarea__inner {
max-height: 50%;
}
/* 卡片道具列表样式 */ .prop-list {
display: flex; flex-wrap: wrap; gap: 4px;
}
.card-prop-item {
display: flex; align-items: center; background-color: #f5f7fa; border-radius: 4px; padding: 4px;
}
.card-prop-item .prop-icon {
width: auto; height: 15px;
}
.card-prop-item .prop-count {
font-size: 12px; color: #606266;
}
/* 统计面板样式 */ .el-table {
margin-top: 10px;
}
.el-table .prop-info {
margin-bottom: 0;
}
/* 星期选择器样式 */ .week-selector {
display: flex; gap: 5px;
}
.week-selector .el-button {
flex: 1; padding: 8px 0;
}
/* 弹窗基础样式 */ .el-dialog {
margin-top: 10%; max-width:900px; position: relative; border-radius: var(--el-dialog-border-radius); box-shadow: var(--el-dialog-box-shadow); background: var(--el-dialog-bg-color);
}
.el-table--fit{background:transparent!important;border:none;}/* 表格父元素背景透明 */ .el-tabs__item.is-active, .el-tabs__item:hover{color:black!important;font-weight:bold;}/* tab选项激活样式 */ .el-tabs__active-bar{background-color: #000000!important;}/* 选中选项的底部条设黑 */ .el-tabs__nav-wrap:after{height:1px!important;background-color:#A4A1BE!important;}/* 所有选项的底部细条 */ .el-form-item{margin-bottom:8px}/* 编辑卡片弹窗的每行 */ @media (max-width: 768px) {
.el-form-item{margin-bottom:5px}/* 编辑卡片弹窗的每行 */
} </style>