273 lines
7.1 KiB
Plaintext
273 lines
7.1 KiB
Plaintext
page {
|
|
background-color: #f6f6f6;
|
|
}
|
|
|
|
.page-container {
|
|
background-color: #f6f6f6;
|
|
padding: 0 24rpx;
|
|
box-sizing: border-box;
|
|
|
|
.empty {
|
|
height: 190rpx;
|
|
}
|
|
}
|
|
|
|
.wrapper {
|
|
background-color: #ffffff;
|
|
border-radius: 20rpx;
|
|
padding: 36rpx 24rpx;
|
|
box-shadow: 0 6rpx 8rpx rgba(0, 0, 0, 0.15);
|
|
margin: 30rpx 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
|
|
.wrapper-title {
|
|
font-size: 32rpx;
|
|
color: #141414;
|
|
margin-bottom: 36rpx; // 增大标题与内容间距
|
|
font-weight: bold;
|
|
text-align: center;
|
|
}
|
|
|
|
&.hidden {
|
|
visibility: hidden;
|
|
}
|
|
|
|
.word-card-box {
|
|
padding: 34rpx 0;
|
|
|
|
.word-cards-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, 1fr);
|
|
gap: 38rpx; // 间距从24rpx提升到32rpx
|
|
}
|
|
}
|
|
|
|
.word-input-box {
|
|
display: flex;
|
|
flex-direction: row;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.operation-box {
|
|
display: flex;
|
|
flex-direction: row;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
// 模板选择区域
|
|
/* .template-section {
|
|
margin-top: 40rpx;
|
|
|
|
.template-title {
|
|
font-size: 28rpx;
|
|
font-weight: 600;
|
|
color: #141414;
|
|
margin-bottom: 24rpx;
|
|
text-align: center;
|
|
}
|
|
|
|
.template-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, 1fr);
|
|
gap: 20rpx;
|
|
}
|
|
|
|
.template-item {
|
|
background: #FFFFFF;
|
|
border: 2rpx solid #E8E8E8;
|
|
border-radius: 16rpx;
|
|
padding: 16rpx;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease-in-out;
|
|
position: relative;
|
|
|
|
&:active {
|
|
transform: scale(0.95);
|
|
}
|
|
|
|
&.active {
|
|
border-color: #93D333;
|
|
box-shadow: 0 0 0 4rpx rgba(147, 211, 51, 0.2);
|
|
|
|
&::after {
|
|
content: '✓';
|
|
position: absolute;
|
|
top: 12rpx;
|
|
right: 12rpx;
|
|
width: 24rpx;
|
|
height: 24rpx;
|
|
background: #93D333;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: #FFFFFF;
|
|
font-size: 14rpx;
|
|
font-weight: bold;
|
|
}
|
|
}
|
|
|
|
.template-preview {
|
|
width: 100%;
|
|
height: 80rpx;
|
|
background: #F8F8F8;
|
|
border-radius: 12rpx;
|
|
margin-bottom: 12rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
position: relative;
|
|
overflow: hidden;
|
|
|
|
.template-preview-content {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 6rpx;
|
|
width: 100%;
|
|
height: 100%;
|
|
|
|
.preview-word {
|
|
font-size: 20rpx;
|
|
font-weight: 600;
|
|
width: 24rpx;
|
|
height: 24rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 6rpx;
|
|
background: rgba(255, 255, 255, 0.8);
|
|
}
|
|
|
|
// 不同模板的布局样式
|
|
&.grid-template {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, 1fr);
|
|
gap: 4rpx;
|
|
}
|
|
|
|
&.circle-template {
|
|
position: relative;
|
|
|
|
.preview-word {
|
|
position: absolute;
|
|
|
|
&:nth-child(1) {
|
|
top: 12rpx;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
}
|
|
|
|
&:nth-child(2) {
|
|
right: 12rpx;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
}
|
|
|
|
&:nth-child(3) {
|
|
bottom: 12rpx;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
}
|
|
|
|
&:nth-child(4) {
|
|
left: 12rpx;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
}
|
|
}
|
|
}
|
|
|
|
&.random-template {
|
|
position: relative;
|
|
|
|
.preview-word {
|
|
position: absolute;
|
|
|
|
&:nth-child(1) {
|
|
top: 10rpx;
|
|
left: 16rpx;
|
|
}
|
|
|
|
&:nth-child(2) {
|
|
top: 24rpx;
|
|
right: 10rpx;
|
|
}
|
|
|
|
&:nth-child(3) {
|
|
bottom: 18rpx;
|
|
left: 10rpx;
|
|
}
|
|
|
|
&:nth-child(4) {
|
|
bottom: 10rpx;
|
|
right: 18rpx;
|
|
}
|
|
}
|
|
}
|
|
|
|
&.line-template {
|
|
flex-direction: row;
|
|
gap: 8rpx;
|
|
}
|
|
}
|
|
}
|
|
|
|
.template-name {
|
|
font-size: 22rpx;
|
|
color: #666666;
|
|
text-align: center;
|
|
font-weight: 500;
|
|
|
|
.template-item.active & {
|
|
color: #93D333;
|
|
font-weight: 600;
|
|
}
|
|
}
|
|
}
|
|
} */
|
|
}
|
|
|
|
|
|
// .canvas-wrapper {
|
|
// width: 100%;
|
|
// background-color: #fff;
|
|
// box-sizing: border-box;
|
|
// }
|
|
.canvas-wrapper {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
min-height: 400rpx;
|
|
background: #f8f9fa;
|
|
border-radius: 12rpx;
|
|
border: 2rpx dashed #dee2e6;
|
|
}
|
|
|
|
.canvas-content {
|
|
max-width: 100%;
|
|
border-radius: 8rpx;
|
|
box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.1);
|
|
overflow: hidden;
|
|
}
|
|
|
|
// #canvasContent {
|
|
// border: 1px solid #666;
|
|
// }
|
|
|
|
.bottom-btn-box {
|
|
position: fixed;
|
|
left: 0;
|
|
bottom: 0;
|
|
width: 100%;
|
|
height: 120rpx;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
background-color: #fff;
|
|
box-shadow: 0px -3.9rpx 5.2rpx rgba(0, 0, 0, 0.15);
|
|
padding: 0 24rpx;
|
|
box-sizing: border-box;
|
|
border-radius: 16rpx 16rpx 0 0;
|
|
} |