From 292412033f692f7eed679e1c935dfd96e378cf4d Mon Sep 17 00:00:00 2001 From: A1300399510 Date: Mon, 4 Nov 2024 19:01:08 +0800 Subject: [PATCH] no message --- css/school.css | 49 +++++- css/school.less | 58 ++++++- html/school.html | 322 ++++++++++++++++++++------------------- img/triangle-QS.svg | 6 + img/triangle-Soft.svg | 6 + img/triangle-TIMES.svg | 12 ++ img/triangle-US-News.svg | 6 + js/base.js | 11 +- 8 files changed, 306 insertions(+), 164 deletions(-) create mode 100644 img/triangle-QS.svg create mode 100644 img/triangle-Soft.svg create mode 100644 img/triangle-TIMES.svg create mode 100644 img/triangle-US-News.svg diff --git a/css/school.css b/css/school.css index af77fce..60fc4b0 100644 --- a/css/school.css +++ b/css/school.css @@ -1,6 +1,5 @@ .boxbox { width: 1200px; - height: 396px; background-color: #fbfbfb; border-radius: 12px; position: relative; @@ -147,8 +146,30 @@ justify-content: space-between; padding: 6px; } +.boxbox .details .right .brief .brief-dom { + color: transparent; + pointer-events: none; + position: fixed; + top: -100000%; + width: 898px; + word-break: keep-all; +} +.boxbox .details .right .brief.brief-show { + transition: all 0.3s; + height: auto; + flex-direction: column; +} +.boxbox .details .right .brief.brief-show .text { + white-space: break-spaces; + margin-right: 0; + margin-bottom: 15px; +} +.boxbox .details .right .brief.brief-show .img { + transform: rotate(180deg); +} .boxbox .details .right .brief .text { margin-right: 15px; + width: 898px; } .boxbox .details .right .brief .img { width: 16px; @@ -183,15 +204,19 @@ .hot .list { width: 1152px; margin-bottom: 10px; + overflow: hidden; } .hot .list .list-item { + width: 1152px; + grid-column-gap: 66px; display: grid; grid-template-columns: repeat(2, 1fr); } .hot .list .list-item .item { padding: 22px 0; width: 510px; - margin-left: 20px; + height: 90px; + margin-left: 33px; } .hot .list .list-item .item:not(:nth-last-child(-n + 2)) { border-bottom: 1px dotted #ebebeb; @@ -258,6 +283,14 @@ width: 18px; height: 8px; } +.hot .list .list-item .item .operate .select-mask { + position: fixed; + width: 100%; + height: 100%; + z-index: 2; + top: 0; + left: 0; +} .hot .list .list-item .item .operate .select { position: absolute; right: 40px; @@ -334,6 +367,9 @@ height: 12px; cursor: pointer; } +.hot .indicate .icon.btn-right { + transform: rotate(180deg); +} .hot .indicate .text { color: #555555; font-size: 13px; @@ -400,6 +436,7 @@ } .content .body .right .screen .list { flex-wrap: wrap; + justify-content: left; } .content .body .right .screen .list .item { width: fit-content; @@ -513,6 +550,14 @@ width: 18px; height: 8px; } +.content .body .right .list .item .operate .select-mask { + position: fixed; + width: 100%; + height: 100%; + z-index: 2; + top: 0; + left: 0; +} .content .body .right .list .item .operate .select { position: absolute; top: -18px; diff --git a/css/school.less b/css/school.less index 909f4ef..8e8ddb4 100644 --- a/css/school.less +++ b/css/school.less @@ -1,6 +1,6 @@ .boxbox { width: 1200px; - height: 396px; + // height: 396px; background-color: rgba(251, 251, 251, 1); border-radius: 12px; position: relative; @@ -148,7 +148,6 @@ } .brief { - // width: 946px; height: 40px; background-color: rgba(246, 246, 246, 1); border-radius: 6px; @@ -161,8 +160,33 @@ justify-content: space-between; padding: 6px; + .brief-dom { + color: transparent; + pointer-events: none; + position: fixed; + top: -100000%; + width: 898px; + word-break: keep-all; + } + + &.brief-show { + transition: all 0.3s; + height: auto; + flex-direction: column; + .text { + white-space: break-spaces; + margin-right: 0; + margin-bottom: 15px; + } + + .img { + transform: rotate(180deg); + } + } + .text { margin-right: 15px; + width: 898px; } .img { @@ -204,13 +228,17 @@ .list { width: 1152px; margin-bottom: 10px; + overflow: hidden; .list-item { + width: 1152px; + grid-column-gap: 66px; display: grid; grid-template-columns: repeat(2, 1fr); .item { padding: 22px 0; width: 510px; - margin-left: 20px; + height: 90px; + margin-left: 33px; &:not(:nth-last-child(-n + 2)) { border-bottom: 1px dotted #ebebeb; } @@ -286,6 +314,15 @@ height: 8px; } } + .select-mask { + position: fixed; + width: 100%; + height: 100%; + z-index: 2; + top: 0; + left: 0; + } + .select { position: absolute; right: 40px; @@ -373,6 +410,10 @@ width: 7px; height: 12px; cursor: pointer; + + &.btn-right { + transform: rotate(180deg); + } } .text { color: #555555; @@ -448,6 +489,7 @@ .list { flex-wrap: wrap; + justify-content: left; .item { width: fit-content; height: 36px; @@ -567,8 +609,16 @@ height: 8px; } } + .select-mask { + position: fixed; + width: 100%; + height: 100%; + z-index: 2; + top: 0; + left: 0; + } .select { - position: absolute; + position: absolute; top: -18px; right: -24px; width: 285px; diff --git a/html/school.html b/html/school.html index 9ca6a06..9d9dd0e 100644 --- a/html/school.html +++ b/html/school.html @@ -6,18 +6,28 @@ Document + + + + + + -
+
-