/** * 这里是uni-app内置的常用样式变量 * * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App * */ /** * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 * * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 */ /* 颜色变量 */ /* 行为相关颜色 */ /* 文字基本颜色 */ /* 背景颜色 */ /* 边框颜色 */ /* 尺寸变量 */ /* 文字尺寸 */ /* 图片尺寸 */ /* Border Radius */ /* 水平间距 */ /* 垂直间距 */ /* 透明度 */ /* 文章场景相关 */ .container.data-v-bac4a35d { padding: 20px; background-color: #fff; border-radius: 8px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); } .header.data-v-bac4a35d { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; } .header .title.data-v-bac4a35d { font-size: 24px; font-weight: bold; } .form .input-group.data-v-bac4a35d { display: flex; align-items: center; margin-bottom: 20px; } .form .input-group .label.data-v-bac4a35d { flex: 1; font-size: 14px; margin-right: 20px; } .form .input-group .input.data-v-bac4a35d { flex: 3; } .form .input-group .input .styled-input.data-v-bac4a35d { font-size: 14px; width: 100%; padding: 10px; background-color: rgba(255, 235, 59, 0.6); /* 淡黄色并带有透明度 */ border: none; border-radius: 20px; /* 圆角 */ box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08); /* 添加阴影以创建立体效果 */ outline: none; transition: all 0.2s ease-in-out; } .form .input-group .input .styled-input.data-v-bac4a35d:focus { background-color: rgba(255, 235, 59, 0.8); /* 增加透明度 */ box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1); /* 更强的阴影 */ } .form .button.data-v-bac4a35d { margin-top: 20px; } .form .button .styled-button.data-v-bac4a35d { width: 100%; padding: 10px; background-color: #5e7dec; color: #fff; border: none; border-radius: 15px; cursor: pointer; font-size: 16px; line-height: inherit; transition: background-color 0.2s; } .form .button .styled-button.data-v-bac4a35d:hover { background-color: #5e7dec; } /* 新增radio样式 */ .radio-group.data-v-bac4a35d { display: flex; align-items: center; height: 100%; } .radio-group .radio-label.data-v-bac4a35d { display: flex; align-items: center; margin-right: 30px; font-size: 14px; /* 移除直接对radio的样式操作 */ /* 改为通过包裹元素实现间距 */ } .radio-group .radio-label .radio-wrapper.data-v-bac4a35d { display: inline-block; margin-right: 5px; transform: scale(0.9); } /* 新增下拉选择样式 */ .distribution-select.data-v-bac4a35d { width: 100%; } .distribution-select .uni-select.data-v-bac4a35d { padding: 10px; background-color: rgba(255, 235, 59, 0.6); border-radius: 20px; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08); } .distribution-select .uni-select.data-v-bac4a35d::after { border-color: #5e7dec; /* 下拉箭头颜色 */ }