Files
cmgd-mini-app/unpackage/dist/dev/mp-weixin/pages/index/index.wxss
2026-01-12 22:10:31 +08:00

146 lines
4.0 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 */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量
* 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.page-content.data-v-1cf27b2a {
min-height: 100vh;
background-color: #f2f3f5;
}
.top-bar.data-v-1cf27b2a {
background: #fff;
align-items: center;
text-align: center;
padding: 20rpx 60rpx;
}
/* Grid布局 - 每行两列 */
.room-grid.data-v-1cf27b2a {
display: grid;
grid-template-columns: repeat(2, 1fr);
/* 两列等宽 */
gap: 20rpx;
/* 间距 */
padding: 20rpx;
background: #f5f5f5;
}
.room-grid-item.data-v-1cf27b2a {
border-radius: 16rpx;
}
.grid-item-content.data-v-1cf27b2a {
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-between;
height: 100%;
text-align: center;
}
.grid-item-content .room-name.data-v-1cf27b2a {
font-size: 32rpx;
padding: 20rpx 0;
text-align: center;
}
.grid-item-content .room-info.data-v-1cf27b2a {
text-align: left;
padding: 20rpx 10rpx;
color: #666;
width: 100%;
min-height: 160rpx;
box-sizing: border-box;
}
.grid-item-content .room-info .room-id.data-v-1cf27b2a {
font-size: 24rpx;
}
.grid-item-content .room-info .remark.data-v-1cf27b2a {
font-size: 24rpx;
display: -webkit-box;
/* 使元素成为伸缩容器 */
-webkit-box-orient: vertical;
/* 设置伸缩方向为纵向 */
overflow: hidden;
/* 隐藏超出的内容 */
-webkit-line-clamp: 2;
/* 限制显示2行 */
line-height: 36rpx;
word-wrap: break-word;
/* 强制长单词或长数字换行 */
word-break: break-word;
/* 强制长单词或长数字换行 */
white-space: normal;
/* 确保文本正常换行 */
/* 设置行高 */
}
.grid-item-content .room-buttons.data-v-1cf27b2a {
padding: 20rpx 10rpx;
display: flex;
gap: 20rpx;
justify-content: space-around;
width: 100%;
box-sizing: border-box;
}
.title.data-v-1cf27b2a {
padding: 0 20rpx;
margin-top: 20rpx;
margin-bottom: 20rpx;
font-size: 28rpx;
font-weight: 400;
text-align: center;
}
.room-info.data-v-1cf27b2a {
text-align: left;
padding: 20rpx 20rpx;
color: #666;
width: 100%;
box-sizing: border-box;
}
.room-info .room-id.data-v-1cf27b2a {
font-size: 28rpx;
}
.room-info .remark.data-v-1cf27b2a {
font-size: 26rpx;
}