/** * 这里是uni-app内置的常用样式变量 * * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App * */ /** * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 * * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 */ /* 颜色变量 */ /* 行为相关颜色 */ /* 文字基本颜色 */ /* 背景颜色 */ /* 边框颜色 */ /* 尺寸变量 */ /* 文字尺寸 */ /* 图片尺寸 */ /* Border Radius */ /* 水平间距 */ /* 垂直间距 */ /* 透明度 */ /* 文章场景相关 */ .no-results.data-v-9800dcee { text-align: center; padding: 20px; font-size: 16px; color: #aaa; } .businessItem.data-v-9800dcee { margin-bottom: 10px; padding: 10px; border: 1px solid #ddd; border-radius: 4px; } .businessItem p.data-v-9800dcee { margin: 0; } .container.data-v-9800dcee { display: flex; flex-direction: column; align-items: center; padding: 20rpx; } .history-list.data-v-9800dcee { width: 100%; } .history-item.data-v-9800dcee { padding: 10px 0px 10px 5px; display: flex; margin-bottom: 20rpx; border: 1px solid #999; background-color: #fff; border-radius: 15px; } .history-img.data-v-9800dcee { width: 160rpx; height: 160rpx; margin-right: 20rpx; border-radius: 10px; } .history-info.data-v-9800dcee { display: flex; flex-direction: column; justify-content: space-between; } .history-title.data-v-9800dcee { font-size: 32rpx; font-weight: bold; } .history-description.data-v-9800dcee { font-size: 28rpx; color: #666; } .starSale.data-v-9800dcee { width: 120px; height: 15px; } .star.data-v-9800dcee { display: inline-block; line-height: 15px; } .history-sale.data-v-9800dcee { font-size: 20rpx; color: #999; float: right; display: inline-block; line-height: 15px; } .startPoints.data-v-9800dcee { width: 100%; height: 20px; } .points.data-v-9800dcee { padding-left: 15px; font-size: 20rpx; line-height: 20px; color: #d41414; } .distance.data-v-9800dcee, .time.data-v-9800dcee { font-size: 20rpx; color: #999; padding-left: 25px; font-size: 20rpx; } .history-start.data-v-9800dcee, .history-distance.data-v-9800dcee { font-size: 20rpx; color: #999; } .exchange.data-v-9800dcee { font-size: 24rpx; color: #e99e44; background-color: #f7dbb3; width: 75px; height: 20px; border-radius: 5px; border: 1px solid #e99e44; } /* 搜索栏 */ .navbar.data-v-9800dcee { background-color: #4095e5; display: flex; flex-direction: row; padding: 10px; /* 添加透明输入框的样式 */ } .navbar .search.data-v-9800dcee { display: flex; align-items: center; padding: 0 10rpx 0 26rpx; height: 0.64rem; color: #fff; font-size: 28rpx; border-radius: 32rpx; background-color: rgba(255, 255, 255, 0.5); width: 70%; margin: 0 auto; } .navbar .icon-search.data-v-9800dcee { margin-right: 10rpx; } .navbar .search-button.data-v-9800dcee { margin-left: auto; /* 将按钮放置在右侧 */ height: 0.64rem; /* 与搜索框高度一致 */ background-color: #fff; /* 按钮背景颜色 */ color: #4095e5; /* 按钮文字颜色 */ border: none; /* 去掉边框 */ border-radius: 32rpx; /* 与搜索框圆角一致 */ padding: 0 20rpx; /* 按钮内边距 */ line-height: 0.64rem; font-size: 15px; } .navbar .transparent-input.data-v-9800dcee { background-color: transparent; /* 使输入框背景透明 */ border: none; /* 移除边框 */ color: #fff; /* 输入文字颜色为白色 */ outline: none; /* 点击时没有默认的outline */ width: 100%; /* 让输入框占据剩余空间 */ padding: 0 10rpx; /* 内边距以保证文本不紧贴边缘 */ font-size: 28rpx; /* 继承自 .search 的字体大小 */ }