Files
miniapp-template-ts/miniprogram/pages/index/index.scss
T
2026-01-09 09:35:44 +08:00

134 lines
2.0 KiB
SCSS

/* pages/index.wxss */
.container {
padding: 40rpx;
background-color: #f5f5f5;
min-height: 100vh;
}
.header {
text-align: center;
margin-bottom: 40rpx;
}
.title {
font-size: 36rpx;
font-weight: bold;
color: #333;
}
.section {
width: 100%;
background-color: #fff;
border-radius: 16rpx;
padding: 30rpx;
margin-bottom: 30rpx;
box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.1);
}
.section-title {
font-size: 32rpx;
font-weight: 600;
color: #333;
margin-bottom: 24rpx;
padding-bottom: 16rpx;
border-bottom: 2rpx solid #eee;
}
.input-textarea {
width: 100%;
min-height: 200rpx;
padding: 20rpx;
border: 2rpx solid #e0e0e0;
border-radius: 8rpx;
font-size: 28rpx;
background-color: #fafafa;
box-sizing: border-box;
}
.action-bar {
display: flex;
gap: 20rpx;
margin-bottom: 24rpx;
}
.btn {
flex: 1;
border-radius: 8rpx;
font-size: 28rpx;
border: none;
}
.btn-primary {
background-color: #07c160;
color: #fff;
}
.btn-primary:active {
background-color: #06ad56;
}
.btn-secondary {
background-color: #576b95;
color: #fff;
}
.btn-secondary:active {
background-color: #4a5d84;
}
.result-box {
margin-bottom: 24rpx;
padding: 20rpx;
background-color: #fafafa;
border-radius: 8rpx;
border: 2rpx solid #e0e0e0;
}
.result-label {
font-size: 24rpx;
color: #666;
margin-bottom: 12rpx;
}
.result-content {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16rpx;
}
.result-text {
flex: 1;
font-size: 26rpx;
color: #333;
word-break: break-all;
line-height: 1.6;
}
.copy-btn {
padding: 8rpx 20rpx;
background-color: #07c160;
color: #fff;
font-size: 24rpx;
border-radius: 6rpx;
white-space: nowrap;
}
.copy-btn:active {
background-color: #06ad56;
}
.error-box {
margin-top: 30rpx;
padding: 20rpx;
background-color: #fff3cd;
border: 2rpx solid #ffc107;
border-radius: 8rpx;
}
.error-text {
font-size: 26rpx;
color: #856404;
line-height: 1.6;
}