123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223 |
- /**
- * 这里是uni-app内置的常用样式变量
- *
- * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
- * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
- *
- */
- /**
- * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
- *
- * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
- */
- /* 颜色变量 */
- /* 行为相关颜色 */
- /* 文字基本颜色 */
- /* 背景颜色 */
- /* 边框颜色 */
- /* 尺寸变量 */
- /* 文字尺寸 */
- /* 图片尺寸 */
- /* Border Radius */
- /* 水平间距 */
- /* 垂直间距 */
- /* 透明度 */
- /* 文章场景相关 */
- /* 自定义项目颜色 */
- /* 功能模块颜色 */
- .discover-container[data-v-7f6951af] {
- background-color: #f5f5f5;
- min-height: 100vh;
- }
- .status-bar[data-v-7f6951af] {
- background-color: #fff;
- /* 使用CSS环境变量适配安全区域 */
- height: env(safe-area-inset-top);
- height: constant(safe-area-inset-top);
- /* 兼容iOS < 11.2 */
- /* 设置最小高度,确保在没有刘海屏的设备上也有合适的高度 */
- min-height: 20px;
- }
- .search-section[data-v-7f6951af] {
- background-color: #fff;
- padding: 0.625rem 0.9375rem;
- }
- .search-section .search-box[data-v-7f6951af] {
- display: flex;
- align-items: center;
- background-color: #f8f8f8;
- border-radius: 1.5625rem;
- padding: 0.625rem 0.9375rem;
- }
- .search-section .search-box .search-icon[data-v-7f6951af] {
- font-size: 1rem;
- color: #999;
- }
- .search-section .search-box .search-input[data-v-7f6951af] {
- flex: 1;
- margin-left: 0.625rem;
- font-size: 0.875rem;
- color: #333;
- }
- .banner-section[data-v-7f6951af] {
- margin: 0.625rem 0.9375rem;
- }
- .banner-section .banner-swiper[data-v-7f6951af] {
- height: 9.375rem;
- border-radius: 0.625rem;
- overflow: hidden;
- }
- .banner-section .swipe-image[data-v-7f6951af] {
- width: 100%;
- height: 100%;
- border-radius: 0.625rem;
- }
- .function-section[data-v-7f6951af] {
- background-color: #fff;
- margin: 0.625rem 0.9375rem;
- border-radius: 0.625rem;
- padding: 1.25rem 0.625rem;
- }
- .function-section .function-row[data-v-7f6951af] {
- display: flex;
- justify-content: space-around;
- margin-bottom: 1.25rem;
- }
- .function-section .function-row[data-v-7f6951af]:last-child {
- margin-bottom: 0;
- }
- .function-section .function-item[data-v-7f6951af] {
- display: flex;
- flex-direction: column;
- align-items: center;
- position: relative;
- }
- .function-section .function-item .function-icon[data-v-7f6951af] {
- width: 2.5rem;
- height: 2.5rem;
- border-radius: 0.625rem;
- display: flex;
- align-items: center;
- justify-content: center;
- margin-bottom: 0.46875rem;
- }
- .function-section .function-item .function-text[data-v-7f6951af] {
- font-size: 0.75rem;
- color: #333;
- }
- .function-section .function-item .function-badge[data-v-7f6951af] {
- position: absolute;
- top: -0.3125rem;
- right: -0.3125rem;
- background-color: #FF4757;
- color: #fff;
- font-size: 0.5625rem;
- padding: 0.125rem 0.25rem;
- border-radius: 0.625rem;
- transform: scale(0.8);
- }
- .course-cards[data-v-7f6951af] {
- margin: 0.625rem 0.9375rem;
- display: flex;
- gap: 0.625rem;
- }
- .course-cards .course-card[data-v-7f6951af] {
- flex: 1;
- height: 6.25rem;
- border-radius: 0.625rem;
- padding: 0.9375rem;
- display: flex;
- align-items: center;
- justify-content: space-between;
- background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
- }
- .course-cards .course-card .card-content[data-v-7f6951af] {
- flex: 1;
- }
- .course-cards .course-card .card-content .card-title[data-v-7f6951af] {
- display: block;
- color: #fff;
- font-size: 0.875rem;
- font-weight: bold;
- margin-bottom: 0.3125rem;
- }
- .course-cards .course-card .card-content .card-subtitle[data-v-7f6951af] {
- display: block;
- color: #fff;
- font-size: 0.6875rem;
- opacity: 0.9;
- }
- .course-cards .course-card .card-image[data-v-7f6951af] {
- width: 2.5rem;
- height: 2.5rem;
- }
- .course-section[data-v-7f6951af] {
- background-color: #fff;
- margin: 0.625rem 0.9375rem;
- border-radius: 0.625rem;
- padding: 0.9375rem;
- }
- .course-section .section-header[data-v-7f6951af] {
- display: flex;
- align-items: center;
- justify-content: space-between;
- margin-bottom: 0.9375rem;
- }
- .course-section .section-header .section-title[data-v-7f6951af] {
- font-size: 1rem;
- font-weight: bold;
- color: #333;
- }
- .course-section .section-header .more-btn[data-v-7f6951af] {
- display: flex;
- align-items: center;
- color: #999;
- font-size: 0.75rem;
- }
- .course-section .section-header .more-btn .arrow-icon[data-v-7f6951af] {
- font-size: 0.875rem;
- margin-left: 0.25rem;
- color: #999;
- }
- .course-section .course-list .course-item[data-v-7f6951af] {
- display: flex;
- margin-bottom: 0.9375rem;
- }
- .course-section .course-list .course-item[data-v-7f6951af]:last-child {
- margin-bottom: 0;
- }
- .course-section .course-list .course-item .course-cover[data-v-7f6951af] {
- width: 5rem;
- height: 3.75rem;
- border-radius: 0.375rem;
- margin-right: 0.625rem;
- }
- .course-section .course-list .course-item .course-info[data-v-7f6951af] {
- flex: 1;
- }
- .course-section .course-list .course-item .course-info .course-title[data-v-7f6951af] {
- display: block;
- font-size: 0.875rem;
- font-weight: bold;
- color: #333;
- margin-bottom: 0.3125rem;
- }
- .course-section .course-list .course-item .course-info .course-stats[data-v-7f6951af] {
- display: flex;
- align-items: center;
- margin-bottom: 0.3125rem;
- }
- .course-section .course-list .course-item .course-info .course-stats .course-students[data-v-7f6951af] {
- font-size: 0.6875rem;
- color: #999;
- margin-right: 0.625rem;
- }
- .course-section .course-list .course-item .course-info .course-stats .course-type[data-v-7f6951af] {
- font-size: 0.6875rem;
- color: #999;
- }
- .course-section .course-list .course-item .course-info .course-desc[data-v-7f6951af] {
- font-size: 0.75rem;
- color: #666;
- line-height: 1.4;
- }
|