@use "sass:list"; @use '@/assets/scss/colors.scss' as *; //List page .news-list { position: relative; display: flex; flex-direction: column; &.grid { .list { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: stretch; column-gap: 0; } .item { img { width: 200px; height: 130px; margin-right: 25px; } } } .list { position: relative; display: flex; flex-direction: column; gap: 24px; } .item { display: flex; flex-direction: row; padding: 25px; border-radius: 6px; background-color: $box-color; border: 1px solid $border-split-color; width: 100%; &.row-type2 { flex-wrap: wrap; .TitleDescBlock h3 { margin-top: 10px; } img { width: 100%; height: 300px; margin-right: 0; } } &.row-type3 { img { width: 270px; height: 180px; } } &.empty { background-color: transparent; border: none; } &:hover:not(.empty) { background-color: $box-hover-color; } &:active:not(.empty) { transform: scale(0.95); } .extra { display: flex; flex-direction: column; flex-wrap: wrap; margin-top: 15px; font-size: 0.8rem; .desc { display: block; min-width: 70px; color: $text-second-color; } } img { flex-shrink: 0; width: 320px; height: 180px; margin-right: 25px; border-radius: 5px; object-fit: cover; background-color: $border-split-color; } } } @media (max-width: 768px) { .news-list { .item { display: flex; flex-direction: row; padding: 25px; border-radius: 6px; background-color: $box-color; &.row-type2 { img { width: 100%; height: 250px; margin-right: 0; } } &.row-type3 { img { width: 170px; height: 90px; } } img { width: 200px; height: 140px; margin-right: 25px; } } &.grid { .item { img { width: 120px; height: 90px; margin-right: 15px; } } } } } @media (max-width: 540px) { .news-list { .item { flex-direction: column; img { width: 100%; height: 180px; margin-right: 0; margin-bottom: 16px; } } } } //Detail page .news-detail { color: $text-content-color; h1 { font-size: 1.8rem; font-family: SourceHanSerifCNBold; text-align: center; } .small-info { text-align: center; font-size: 0.75rem; flex-wrap: nowrap; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .back-button { width: 92px; height: 92px; border-radius: 50%; text-align: center; flex-direction: column; justify-content: center; align-items: center; display: flex; background-color: $box-inset-color; cursor: pointer; &:hover { background-color: $box-hover-color; } img { width: 25px; height: 25px; margin-bottom: 5px; } span { font-size: 0.75rem; } } .news-content { position: relative; min-height: 50vh; img { max-width: 100%; text-align: center; border-radius: 5px; } p > img { display: block; margin: 0 auto; } } .info-list { margin-top: 10px; display: flex; flex-direction: row; flex-wrap: wrap; row-gap: 10px; background-color: $box-color; border-radius: 8px; padding: 15px 20px; .entry { display: flex; flex-direction: row; flex-wrap: wrap; width: 50%; .label { width: 120px; color: $text-content-second-color; } .value { color: $text-color; } } img { width: 200px; max-width: 100%; } } .carousel { border-radius: 8px; overflow: hidden; img { width: 100%; height: 50vh; object-fit: contain; background-color: $border-split-color; } } } @media (max-width: 768px) { } @media (max-width: 540px) { }