@body-bg:#03C762; @title-top:#03C762; @title-bg: #cdf5df; .body { // 行头 .row-style { margin-top: 20px; @media screen and (max-width:768px) { & { margin-top: 0px; border-radius: 10px; overflow: hidden; } } // 轮播图片 .carousel-img-style { width: 100%; border-radius: 10px; } } // 消息通用样式模板 .hotspot { padding: 0 20px 20px; h4 { margin-top: 0px; font-weight: normal; padding-bottom: 7px; border-bottom: 1px solid #eee; font-size: 16px; a { width: 100%; text-decoration: none; color: black; display: flex;justify-content: space-between;align-items: flex-end; .icon-fire-style { margin-right: 10px; color: #a94442; } span{ padding: 5px 0; } &>span:last-child{ font-size: 14px; margin-bottom: 3px; } // 卡片底边颜色 .b { border-bottom: 3px solid #a94442; } .a { border-bottom: 3px solid @body-bg; } } } ul { padding-left: 20px; li { list-style-type: square; color: #777; list-style-position: inherit; line-height: 36px; a { display: block; width: 100%; text-decoration: none; color: #777; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-bottom: 1px solid #f5f5f5; } } } } // 标题模板 .title-style { width: 100%; margin-top: 20px; padding: 0 15px; // vertical-align: middle; .h4 { padding: 15px; vertical-align: middle; border-bottom: 2px solid @title-top; background-color: @title-bg; font-size: 20px; display: flex; i{ margin-right: 10px; } } } // 横向滚动 .scroll-style { ul { padding: 0; width: 100%; display: flex; justify-content: space-between; flex-wrap: nowrap; align-items: center; overflow-x: auto; &::-webkit-scrollbar { // 滚动条整体 background: none; } .scroll-li-style { // flex: 1; width: 19%; min-width: 160px; list-style-type: none; display: block; text-align: center; margin: 10px; a { color: #777; text-decoration: none; width: 100%; img { width: 100%; } h5 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } } } } } }