xiaokuaisong-xiaochengxu/uniapp04/unpackage/dist/dev/mp-weixin/pages/index/index.wxss
2025-04-11 14:42:29 +08:00

154 lines
3.3 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量
* 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.navbar {
background-color: #4095e5;
display: flex;
flex-direction: row;
padding: 10px;
/* 添加透明输入框的样式 */
}
.navbar .search {
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 {
margin-right: 10rpx;
}
.navbar .search-button {
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 {
background-color: transparent;
/* 使输入框背景透明 */
border: none;
/* 移除边框 */
color: #fff;
/* 输入文字颜色为白色 */
outline: none;
/* 点击时没有默认的outline */
width: 100%;
/* 让输入框占据剩余空间 */
padding: 0 10rpx;
/* 内边距以保证文本不紧贴边缘 */
font-size: 28rpx;
/* 继承自 .search 的字体大小 */
}
.navigator,
.image {
width: 100%;
height: 100%;
}
.category {
margin: 20rpx 0 0;
padding: 10rpx 0;
display: flex;
flex-wrap: wrap;
min-height: 1.5rem;
}
.category .category-item {
width: 150rpx;
display: flex;
justify-content: center;
flex-direction: column;
align-items: center;
box-sizing: border-box;
}
.category .category-item .icon {
width: 80rpx;
height: 80rpx;
margin-bottom: 5px;
}
.category .category-item .text {
font-size: 26rpx;
color: #111;
}
.IPtext {
font-size: 28rpx;
}
.notice {
height: 40px;
}
/* 取餐吗 */
.content {
position: relative;
}
.movableArea {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: 999;
}
.movableView {
pointer-events: auto;
width: 60rpx;
height: 60rpx;
padding: 10rpx;
border-radius: 100%;
border: 2px solid #33A3DC;
background-color: #eed43e;
}
.iconImage {
display: block;
width: 60rpx;
height: 60rpx;
}
.contact {
width: 50px;
height: 50px;
overflow: hidden;
position: absolute;
left: 0px;
top: 0px;
border-radius: 100%;
opacity: 0;
}