123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425 |
- @use "sass:list";
- @use '@/assets/scss/colors.scss' as *;
- //List page
- .news-list {
- position: relative;
- display: flex;
- flex-direction: column;
- row-gap: 20px;
- &.grid {
- row-gap: 0;
- .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;
- }
- .table-list {
- margin-top: 10px;
- table {
- border-collapse: collapse;
- width: 100%;
- border: 1px solid $border-grey-color;
-
- td, th {
- border: 1px solid $border-grey-color;
- background-color: #fff; /* 表头背景颜色 */
- padding: 8px; /* 单元格内边距,可根据需要调整 */
- text-align: center; /* 单元格内容居中对齐 */
- }
- th {
- background-color: #f2f2f2; /* 表头背景颜色 */
- font-weight: bold; /* 表头文字加粗 */
- }
- }
- }
- .item {
- display: flex;
- flex-direction: row;
- padding: 25px;
- border-radius: 6px;
- background-color: $box-color;
- border: 1px solid $border-split-color;
- width: 100%;
- text-decoration: none;
- &.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;
- }
- }
- &.row-type4 {
- img {
- object-fit: contain;
- width: 270px;
- height: 150px;
- }
- }
- &.empty {
- background-color: transparent;
- border: none;
- }
- &:hover:not(.empty) {
- background-color: $box-hover-color;
- }
- &:active:not(.empty) {
- transform: scale(0.95);
- }
- .tags {
- display: flex;
- flex-direction: row;
- flex-wrap: wrap;
- column-gap: 10px;
- row-gap: 10px;
- margin-top: 15px;
- margin-bottom: 10px;
- font-size: 0.85rem;
- > div {
- border-radius: 15px;
- padding: 0 15px;
- background-color: $primary-dark-color;
- color: $text-color-light;
- }
- }
- .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;
- }
- }
- &.row-type4 {
- img {
- width: 180px;
- height: 110px;
- }
- }
- 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;
- &.img {
- width: 20px;
- height: 20px;
- }
- }
- .back-button2 {
- display: flex;
- flex-direction: row;
- align-items: center;
- column-gap: 10px;
- background-color: $box-inset-color;
- padding: 4px 5px;
- border-radius: 5px;
- cursor: pointer;
- img {
- width: 20px;
- height: 20px;
- }
- &:hover {
- background-color: $box-hover-color;
- }
- }
- .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-video {
- position: relative;
- width: 100%;
- height: 50vh;
- border-radius: 8px;
- }
- .news-content {
- position: relative;
- min-height: 50vh;
- img {
- max-width: 100%;
- text-align: center;
- border-radius: 5px;
- }
- p > img {
- display: block;
- margin: 0 auto;
- }
- h1 {
- margin-top: 15px;
- }
- h2 {
- margin-top: 12px;
- }
- h3 {
- margin-top: 10px;
- }
- h4 {
- margin-top: 5px;
- }
- h5 {
- margin-top: 3px;
- }
- }
- .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: nowrap;
- width: 50%;
- &.hidden {
- display: none;
- }
- .label {
- width: 120px;
- color: $text-content-second-color;
- }
- .value {
- color: $text-color;
- }
- }
- img {
- width: 200px;
- max-width: 100%;
- }
- }
- .carousel {
- position: relative;
- border-radius: 8px;
- overflow: hidden;
- margin: 20px 0;
- &.float {
- img {
- width: 100%;
- height: 30vh;
- max-height: 250px;
- object-fit: contain;
- background-color: $border-split-color;
- }
- }
- &.large {
- width: 100%;
- height: 60vh;
- img {
- width: 50%;
- height: 60vh;
- object-fit: contain;
- background-color: $border-split-color;
- }
- }
- }
- }
- @media (max-width: 1200px) {
- .news-detail .carousel.float {
- width: 300px;
- }
- }
- @media (max-width: 1000px) {
- .news-detail .carousel.float {
- width: 40%;
- }
- .news-detail .carousel.large img {
- width: 70%;
- }
- }
- @media (max-width: 768px) {
- .news-detail .carousel.float {
- width: 60%;
- }
- .news-detail .carousel.large img {
- width: 100%;
- }
- }
- @media (min-width: 808px) {
- .news-detail .carousel.float {
- width: 300px;
- float: right;
- margin: 0;
- margin-left: 20px;
- }
- }
- @media (max-width: 768px) {
-
- }
- @media (max-width: 540px) {
-
- }
|