123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273 |
- @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) {
-
- }
|