Files
doodle-mini/miniprogram/pinyinPages/pinyinDictation/pinyinDictation.less
T
2026-05-20 15:33:06 +08:00

183 lines
3.4 KiB
Plaintext

@import '../../style/theme.less';
page {
background-color: @bg-page;
}
.pd-page {
min-height: 100vh;
padding: 0 @page-padding-x;
padding-bottom: calc(200rpx + env(safe-area-inset-bottom));
box-sizing: border-box;
}
.pd-main {
padding-top: 24rpx;
display: flex;
flex-direction: column;
gap: 64rpx;
}
.pd-section {
display: flex;
flex-direction: column;
gap: 32rpx;
}
.pd-section-title {
font-size: 32rpx;
font-weight: 700;
color: #6d3b00;
padding-left: 8rpx;
}
.pd-mode-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 32rpx;
}
.pd-mode-card {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 12rpx;
padding: 32rpx 24rpx;
border-radius: 24rpx;
background: #f8f0e0;
box-sizing: border-box;
transition:
transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
background 0.2s cubic-bezier(0.4, 0, 0.2, 1),
box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.pd-mode-card__icon {
display: inline-flex;
align-items: center;
justify-content: center;
margin-bottom: 4rpx;
}
.pd-mode-card--active {
background: linear-gradient(145deg, #ffd709 0%, #efc900 100%);
box-shadow: 0 8rpx 32rpx rgba(50, 46, 37, 0.06);
}
.pd-mode-card--pressed {
transform: scale(0.95);
}
.pd-mode-card__label {
font-size: 30rpx;
font-weight: 700;
color: @text-secondary;
text-align: center;
}
.pd-mode-card--active .pd-mode-card__label {
color: #453900;
}
.pd-mode-card__desc {
font-size: 22rpx;
color: @text-secondary;
text-align: center;
opacity: 0.7;
}
.pd-mode-card--active .pd-mode-card__desc {
color: #453900;
opacity: 0.8;
}
/* ===== 拼音组选择芯片 ===== */
.pd-chip-row {
display: flex;
flex-direction: row;
gap: 32rpx;
}
.pd-chip-row--wrap {
flex-wrap: wrap;
.pd-chip {
flex: none;
}
}
.pd-chip-row--triple {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 24rpx;
.pd-chip {
flex: unset;
width: 100%;
padding: 24rpx 16rpx;
}
}
.pd-chip {
flex: 1;
box-sizing: border-box;
display: flex;
align-items: center;
justify-content: center;
padding: 20rpx 12rpx;
color: @text-secondary;
background: @bg-card;
border-radius: 32rpx;
transition:
background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1),
transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
color 0.2s cubic-bezier(0.4, 0, 0.2, 1),
box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.pd-chip--pressed {
transform: scale(0.96);
background: @brand;
color: @text-selected-btn;
font-weight: 700;
box-shadow: 0 2rpx 8rpx rgba(50, 46, 37, 0.08);
}
.pd-chip--active {
background: @brand;
color: @text-selected-btn;
font-weight: 700;
box-shadow: 0 2rpx 8rpx rgba(50, 46, 37, 0.08);
}
.pd-chip__text {
display: flex;
flex-direction: column;
align-items: center;
gap: 4rpx;
width: 100%;
}
.pd-chip__label {
font-size: 28rpx;
font-weight: 700;
line-height: 36rpx;
}
.pd-chip__subtitle {
font-size: 20rpx;
font-weight: 500;
line-height: 28rpx;
opacity: 0.75;
max-width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.pd-chip--active .pd-chip__subtitle,
.pd-chip--pressed .pd-chip__subtitle {
opacity: 0.85;
}