|
@@ -109,27 +109,28 @@
|
|
|
|
|
|
/* 模态框背景 */
|
|
|
.modal {
|
|
|
- position: fixed; /* 固定定位,始终在屏幕中央 */
|
|
|
- top: 0;
|
|
|
- left: 0;
|
|
|
- right: 0;
|
|
|
- bottom: 0;
|
|
|
display: flex;
|
|
|
justify-content: center;
|
|
|
align-items: center;
|
|
|
- background-color: rgba(0, 0, 0, 0.6); /* 半透明背景色,增加一点深度感 */
|
|
|
- z-index: 1000; /* 提高层级,确保模态框在其他元素之上 */
|
|
|
+ position: fixed;
|
|
|
+ top: 0;
|
|
|
+ left: 0;
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ background-color: rgba(0, 0, 0, 0.5); /* 半透明背景 */
|
|
|
+ z-index: 1000; /* 确保弹窗在最上层 */
|
|
|
}
|
|
|
|
|
|
/* 模态框内容 */
|
|
|
.modal-content {
|
|
|
- background-color: #fff; /* 模态框内容背景为白色 */
|
|
|
- border-radius: 16px; /* 圆角 */
|
|
|
- width: 80%; /* 宽度占80% */
|
|
|
- max-width: 500rpx; /* 最大宽度限制 */
|
|
|
- box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1); /* 添加阴影效果,增加浮动感 */
|
|
|
- padding: 20rpx; /* 内边距 */
|
|
|
- transition: transform 0.3s ease-out; /* 平滑的动画过渡 */
|
|
|
+ background-color: #fff; /* 白色背景 */
|
|
|
+ padding: 20px;
|
|
|
+ border-radius: 8px;
|
|
|
+ width: 90%;
|
|
|
+ max-width: 400px; /* 最大宽度 */
|
|
|
+ max-height: 80vh; /* 最大高度,留出一些空间以便滚动条显示 */
|
|
|
+ overflow-y: auto; /* 垂直方向溢出时显示滚动条 */
|
|
|
+ overflow-x: hidden; /* 隐藏水平滚动条 */
|
|
|
}
|
|
|
|
|
|
/* 每个选项项 */
|
|
@@ -210,4 +211,72 @@
|
|
|
.picker {
|
|
|
flex-shrink: 0;
|
|
|
width: 100px; /* 根据需要调整宽度 */
|
|
|
+}
|
|
|
+
|
|
|
+/* 选择器容器样式 */
|
|
|
+.picker-container {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ margin-bottom: 15px;
|
|
|
+}
|
|
|
+
|
|
|
+/* 选择器文本样式 */
|
|
|
+.picker-container text {
|
|
|
+ margin-right: 10px;
|
|
|
+}
|
|
|
+
|
|
|
+/* 按钮悬停效果 */
|
|
|
+.submit-btn:hover,
|
|
|
+.cancel-btn:hover {
|
|
|
+ opacity: 0.8;
|
|
|
+}
|
|
|
+
|
|
|
+/* 输入字段样式 */
|
|
|
+.input-field {
|
|
|
+ width: 100%;
|
|
|
+ padding: 10rpx;
|
|
|
+ font-size: 28rpx;
|
|
|
+ color: #333;
|
|
|
+ border: none;
|
|
|
+ border-bottom: 1px solid #ddd;
|
|
|
+}
|
|
|
+
|
|
|
+/* 输入字段聚焦时的样式 */
|
|
|
+.input-field:focus {
|
|
|
+ border-color: #007bff; /* 聚焦时边框颜色 */
|
|
|
+ outline: none; /* 去除默认的聚焦轮廓 */
|
|
|
+ box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25); /* 聚焦时的阴影效果 */
|
|
|
+}
|
|
|
+
|
|
|
+/* 输入字段禁用时的样式 */
|
|
|
+.input-field:disabled {
|
|
|
+ background-color: #e9ecef; /* 背景色 */
|
|
|
+ opacity: 0.65; /* 不透明度 */
|
|
|
+ cursor: not-allowed; /* 禁用时的鼠标样式 */
|
|
|
+}
|
|
|
+
|
|
|
+/* 输入字段的占位符样式 */
|
|
|
+.input-field::placeholder {
|
|
|
+ color: #6c757d; /* 占位符文本颜色 */
|
|
|
+ font-style: italic; /* 斜体 */
|
|
|
+}
|
|
|
+
|
|
|
+/* 输入字段的动画效果 */
|
|
|
+.input-field:active, .input-field:focus {
|
|
|
+ transition: all 0.15s ease-in-out;
|
|
|
+}
|
|
|
+
|
|
|
+/* 输入字段的响应式设计 */
|
|
|
+@media (max-width: 768px) {
|
|
|
+ .input-field {
|
|
|
+ font-size: 14px; /* 在小屏幕上减小字体大小 */
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+/* 页面标题样式 */
|
|
|
+.page-section-title {
|
|
|
+ font-size: 30rpx;
|
|
|
+ font-weight: bold;
|
|
|
+ color: #333;
|
|
|
+ margin-bottom: 10rpx;
|
|
|
}
|