// 資料庫 @import './partials/variable'; @import './partials/mixin'; //list .newsList { .listBox { display: flex; flex-wrap: wrap; gap: 50px 12px; margin-bottom: 30px; max-width: 1150px; margin: 0 auto; @include screenMax('1330') { max-width: 1062px; } .item { @include itemWidth(15, 3); border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 0px 10px 0 rgba(0, 0, 0, 0.1); @include screen('mobile') { @include itemWidth(15, 2); } @include screen('xsMobile') { @include itemWidth(15, 1); } } .tag { display: block; width: 60px; height: 30px; background: #b42222; color: white; font-size: 16px; line-height: 30px; text-align: center; position: absolute; top: 0; left: 0; transform: translateY(-50%); } .infoBox { padding: 30px 20px 30px; display: flex; flex-direction: column; gap: 10px; position: relative; } .title { font-size: 20px; line-height: 24px; height: 48px; color: black; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } p { font-size: 16px; line-height: 22px; height: 44px; color: black; font-weight: 300; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; } } } .newsDetail { .editor { max-width: 1150px; margin: 0 auto; @include screenMax('1330') { max-width: 1062px; } } }