@charset "UTF-8"; /** * 这里是uni-app内置的常用样式变量 * * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App * */ /** * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 * * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 */ /* 颜色变量 */ /* 行为相关颜色 */ /* 文字基本颜色 */ /* 背景颜色 */ /* 边框颜色 */ /* 尺寸变量 */ /* 文字尺寸 */ /* 图片尺寸 */ /* Border Radius */ /* 水平间距 */ /* 垂直间距 */ /* 透明度 */ /* 文章场景相关 */ .app { background-color: #F7F5F5; } .app .Healthknowledge { background: #fff; width: 96%; padding: 40rpx 50rpx 50rpx; background-color: #fff; line-height: 46rpx; margin: 0 auto; position: relative; margin-top: -92rpx; min-height: 300rpx; } .app .Healthknowledge .more { position: absolute; right: 20rpx; top: 40rpx; height: 46rpx; width: 30%; } .app .Healthknowledge .more .title { position: absolute; right: 30rpx; top: 50%; text-align: right; -webkit-transform: translateY(-50%); transform: translateY(-50%); font-size: 26rpx; font-family: Adobe Heiti Std; font-weight: normal; color: #969494; } .app .Healthknowledge .more image { position: absolute; right: 0; top: 50%; -webkit-transform: translateY(-50%); transform: translateY(-50%); width: 15rpx; height: 25rpx; } .app .Healthknowledge .lists { width: 96%; margin: 20rpx auto 0; } .app .Healthknowledge .lists .item { width: 100%; height: 250rpx; position: relative; border-bottom: 2rpx solid #CDC9C9; } .app .Healthknowledge .lists .item image { position: absolute; right: 0; top: 50%; -webkit-transform: translateY(-50%); transform: translateY(-50%); width: 200rpx; height: 200rpx; border-radius: 10rpx; } .app .Healthknowledge .lists .item .author { position: absolute; bottom: 20rpx; left: 0; font-size: 20rpx; color: #969494; } .app .Healthknowledge .lists .item .text { position: absolute; top: 20rpx; left: 0; width: 65%; font-size: 30rpx; text-overflow: -o-ellipsis-lastline; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 5; line-clamp: 5; -webkit-box-orient: vertical; text-align: justify; } .app .Healthknowledge .title { font-size: 36rpx; font-weight: bold; } .app .center { width: 96%; height: 700rpx; background: #FFFFFF; margin: 0 auto; padding-top: 40rpx; margin-bottom: 30rpx; -webkit-transform: translateY(-12%); transform: translateY(-12%); } .app .center .health { font-size: 36rpx; font-weight: bold; padding-left: 40rpx; } .app .center .contentcenter { display: flex; flex-wrap: wrap; justify-content: flex-start; padding-top: 10rpx; border-radius: 5rpx; margin: 0 auto; } .app .center .contentcenter .home { width: 32%; height: 240rpx; margin-top: 15rpx; margin-bottom: 27rpx; } .app .center .contentcenter .home .name { text-align: center; margin: 14rpx 0 0 0; } .app .center .contentcenter .home image { display: block; margin: 30rpx auto; width: 102rpx; height: 102rpx; } .app .content { position: relative; } .app .content image { width: 100%; height: 562rpx; } .app .content .address { position: absolute; top: 76%; left: 7%; } .app .content .address image { width: 25rpx; height: 30rpx; } .app .content .address text { font-size: 28rpx; color: #595959; padding-left: 15rpx; margin-top: -6rpx; width: 184rpx; position: absolute; }