224 lines
4.1 KiB
SCSS
224 lines
4.1 KiB
SCSS
@use "./theme";
|
|
|
|
// ==========================================================================
|
|
// 全局基础样式
|
|
// ==========================================================================
|
|
|
|
html,
|
|
body,
|
|
#app {
|
|
height: 100%;
|
|
padding: 0;
|
|
margin: 0;
|
|
font-family:
|
|
-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
font-size: 28rpx;
|
|
line-height: 1.5;
|
|
color: var(--color-text);
|
|
background-color: var(--color-bg);
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
}
|
|
|
|
// ==========================================================================
|
|
// 页面容器
|
|
// ==========================================================================
|
|
|
|
.page {
|
|
min-height: 100vh;
|
|
background-color: var(--color-bg-tertiary, #f1f5f9);
|
|
}
|
|
|
|
.page--auto {
|
|
min-height: auto;
|
|
}
|
|
|
|
.page--padding {
|
|
padding: 0 24rpx;
|
|
}
|
|
|
|
// ==========================================================================
|
|
// 筛选区域
|
|
// ==========================================================================
|
|
|
|
.filter {
|
|
&__search {
|
|
overflow: hidden;
|
|
border-radius: 12rpx;
|
|
}
|
|
|
|
&__bar {
|
|
display: flex;
|
|
align-items: center;
|
|
height: 72rpx;
|
|
margin-top: 16rpx;
|
|
overflow: hidden;
|
|
background: #fff;
|
|
border-radius: 12rpx;
|
|
|
|
:deep(.wd-drop-menu) {
|
|
flex: 1;
|
|
}
|
|
|
|
:deep(.wd-drop-menu-item) {
|
|
flex: 1;
|
|
}
|
|
}
|
|
|
|
&__half {
|
|
display: flex;
|
|
flex: 1;
|
|
min-width: 0;
|
|
|
|
:deep(.wd-drop-menu) {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
:deep(.wd-drop-menu__menu) {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
:deep(.wd-drop-menu__item) {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 100%;
|
|
height: 100%;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
}
|
|
|
|
&__btn {
|
|
display: flex;
|
|
flex: 1;
|
|
align-items: center;
|
|
justify-content: center;
|
|
height: 100%;
|
|
font-size: 26rpx;
|
|
color: #475569;
|
|
cursor: pointer;
|
|
transition: background 0.2s;
|
|
|
|
&:active {
|
|
background: #f8fafc;
|
|
}
|
|
|
|
.wd-icon {
|
|
margin-left: 4rpx;
|
|
}
|
|
}
|
|
|
|
&__divider {
|
|
width: 1px;
|
|
height: 32rpx;
|
|
background: #e2e8f0;
|
|
}
|
|
}
|
|
|
|
// ==========================================================================
|
|
// 列表区域
|
|
// ==========================================================================
|
|
|
|
.list {
|
|
margin-top: 16rpx;
|
|
|
|
&__card {
|
|
margin-bottom: 16rpx;
|
|
overflow: hidden;
|
|
background: #fff;
|
|
border: 1px solid #e2e8f0;
|
|
border-radius: 12rpx;
|
|
box-shadow: 0 2rpx 12rpx rgba(15, 23, 42, 0.04);
|
|
|
|
&:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
:deep(.wd-card) {
|
|
margin: 0 !important;
|
|
background: transparent;
|
|
border: none;
|
|
box-shadow: none;
|
|
}
|
|
|
|
:deep(.wd-card__body) {
|
|
padding: 0 !important;
|
|
}
|
|
}
|
|
|
|
&__meta {
|
|
padding: 8rpx 24rpx 4rpx;
|
|
}
|
|
|
|
&__meta-row {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
min-height: 72rpx;
|
|
border-bottom: 1px solid #f1f5f9;
|
|
}
|
|
|
|
&__meta-row:last-child {
|
|
border-bottom: 0;
|
|
}
|
|
|
|
&__meta-left {
|
|
display: flex;
|
|
align-items: center;
|
|
min-width: 0;
|
|
gap: 12rpx;
|
|
}
|
|
|
|
&__meta-label {
|
|
font-size: 26rpx;
|
|
color: #64748b;
|
|
}
|
|
|
|
&__meta-value {
|
|
max-width: 58%;
|
|
overflow: hidden;
|
|
font-size: 26rpx;
|
|
color: #0f172a;
|
|
text-align: right;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
&__footer {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 16rpx 24rpx;
|
|
color: #64748b;
|
|
font-size: 24rpx;
|
|
}
|
|
}
|
|
|
|
// ==========================================================================
|
|
// 筛选面板
|
|
// ==========================================================================
|
|
|
|
.filter-panel {
|
|
padding: 24rpx;
|
|
|
|
&__footer {
|
|
display: flex;
|
|
gap: 24rpx;
|
|
margin-top: 24rpx;
|
|
|
|
:deep(.wd-button) {
|
|
flex: 1;
|
|
}
|
|
}
|
|
}
|
|
|
|
// ==========================================================================
|
|
// 弹窗底部
|
|
// ==========================================================================
|
|
|
|
.popup-footer {
|
|
padding: 30rpx;
|
|
}
|