56 lines
1.1 KiB
Text
56 lines
1.1 KiB
Text
|
|
/**app.wxss**/
|
||
|
|
/* 导入设计系统和组件样式 */
|
||
|
|
@import './styles/design-system.wxss';
|
||
|
|
@import './styles/components.wxss';
|
||
|
|
@import './styles/responsive.wxss';
|
||
|
|
/* 导入通用屏幕适配样式 */
|
||
|
|
@import './styles/screen-adaption.wxss';
|
||
|
|
|
||
|
|
/* 全局基础样式 */
|
||
|
|
page {
|
||
|
|
height: 100%;
|
||
|
|
overflow: hidden;
|
||
|
|
margin: 0;
|
||
|
|
padding: 0;
|
||
|
|
box-sizing: border-box;
|
||
|
|
background-color: #f8f9fa;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* 默认容器样式 - 保持向后兼容 */
|
||
|
|
.container {
|
||
|
|
height: 100%;
|
||
|
|
display: flex;
|
||
|
|
flex-direction: column;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: space-between;
|
||
|
|
padding: 200rpx 0;
|
||
|
|
box-sizing: border-box;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* 全屏容器 - 新的推荐方式 */
|
||
|
|
.app-container {
|
||
|
|
height: 100vh;
|
||
|
|
min-height: 100vh;
|
||
|
|
max-height: 100vh;
|
||
|
|
display: flex;
|
||
|
|
flex-direction: column;
|
||
|
|
overflow: hidden;
|
||
|
|
box-sizing: border-box;
|
||
|
|
position: relative;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* 内容区域 */
|
||
|
|
.content-area {
|
||
|
|
flex: 1;
|
||
|
|
overflow-y: auto;
|
||
|
|
overflow-x: hidden;
|
||
|
|
-webkit-overflow-scrolling: touch;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* 防止长按选择 */
|
||
|
|
text, view, image {
|
||
|
|
-webkit-user-select: none;
|
||
|
|
user-select: none;
|
||
|
|
box-sizing: border-box;
|
||
|
|
}
|