@charset "UTF-8"; /** * 这里是uni-app内置的常用样式变量 * * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App * */ /** * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 * * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 */ /* 颜色变量 */ /* 行为相关颜色 */ /* 文字基本颜色 */ /* 背景颜色 */ /* 边框颜色 */ /* 尺寸变量 */ /* 文字尺寸 */ /* 图片尺寸 */ /* Border Radius */ /* 水平间距 */ /* 垂直间距 */ /* 透明度 */ /* 文章场景相关 */ page { height: 100%; background-color: #fff; } .content { height: 100%; display: flex; flex-direction: column; } .content .top-content { width: 100%; z-index: 10; } .content .top-content .top-title { height: 88rpx; line-height: 88rpx; font-size: 42rpx; font-family: Source Han Sans CN; font-weight: bold; color: #222222; padding-left: 41rpx; background-color: #FFFFFF; } .content .top-content .search-cont { padding: 16rpx 30rpx; background-color: #FFFFFF; } .content .top-content .search-cont .inner { box-sizing: border-box; width: 100%; height: 72rpx; background: #F7F7F7; border-radius: 36rpx; display: flex; align-items: center; padding: 0 30rpx; } .content .top-content .search-cont .inner .icon-search { width: 28rpx; height: 28rpx; margin-right: 20rpx; } .content .top-content .search-cont .inner input { height: 60rpx; line-height: 60rpx; flex: 1; } .content .medic-box { display: flex; } .content .medic-box .cate-list { box-sizing: border-box; width: 200rpx; background: #F2F5F9; display: flex; flex-direction: column; padding: 20rpx 0; overflow-y: scroll; } .content .medic-box .cate-list .item { height: 100rpx; line-height: 100rpx; padding-left: 30rpx; font-size: 28rpx; font-family: PingFang SC; font-weight: 500; color: #333333; position: relative; } .content .medic-box .cate-list .item.active { color: #2BC7B9; } .content .medic-box .cate-list .item.active::after { content: ""; width: 8rpx; height: 50rpx; background: #2BC7B9; position: absolute; top: 25rpx; left: 0; } .content .medic-box .medic { box-sizing: border-box; width: calc(100% - 200rpx); height: 100%; padding: 0 30rpx; } .content .medic-box .medic .banner-box { margin-top: 30rpx; width: 100%; height: 160rpx; border-radius: 10rpx; overflow: hidden; } .content .medic-box .medic .banner-box .swiper, .content .medic-box .medic .banner-box .swiper-item, .content .medic-box .medic .banner-box .swiper-item image { width: 100%; height: 100%; } .content .medic-box .medic .medic-list { box-sizing: border-box; padding: 30rpx 0; overflow-y: auto; height: calc(100% - 220rpx); position: relative; } .content .medic-box .medic .medic-list .inner-list { display: flex; flex-wrap: wrap; } .content .medic-box .medic .medic-list .inner-list .definite { width: calc(33% - 20rpx); margin-right: 30rpx; margin-bottom: 30rpx; } .content .medic-box .medic .medic-list .inner-list .definite .img-box { width: 100%; height: 144rpx; background: #F5F5F5; border-radius: 8rpx; overflow: hidden; display: flex; align-items: center; } .content .medic-box .medic .medic-list .inner-list .definite .img-box image { max-width: 100%; } .content .medic-box .medic .medic-list .inner-list .definite .name { width: 100%; margin-top: 20rpx; font-size: 24rpx; font-family: PingFang SC; font-weight: 500; color: #666666; text-align: center; } .content .medic-box .medic .medic-list .inner-list .definite:nth-child(3n) { margin-right: 0; }