diff --git a/css/details.css b/css/details.css index c3f5466..ef46d2e 100644 --- a/css/details.css +++ b/css/details.css @@ -468,6 +468,283 @@ .content .details-box .file .indicate { margin-bottom: 24px; } +.content .details-box .apply-btn { + position: relative; + z-index: 1; + width: fit-content; + margin: 20px auto 62px; +} +.content .details-box .apply-btn .btn { + width: 232px; + height: 30px; + font-size: 16px; + color: #ffffff; + margin: 0 auto; + z-index: 1; + cursor: pointer; +} +.content .details-box .apply-btn .btn .text { + text-align: center; + line-height: 30px; + background-color: #f95d5d; + border-radius: 7px 0 0 7px; +} +.content .details-box .apply-btn .btn .btn-right { + background-color: #333333; + border-radius: 0 7px 7px 0; + height: 100%; + width: 30px; +} +.content .details-box .apply-btn .btn .btn-right .arrows { + width: 10px; + height: 5px; +} +.content .details-box .apply-btn .apply-mask { + position: fixed; + top: 0; + left: 0; + width: 100%; + height: 100%; + z-index: -1; +} +.content .details-box .apply-btn .apply-list { + position: absolute; + left: -15px; + top: -15px; + width: 262px; + background-color: #f2f2f2; + border-radius: 15px; + box-shadow: 0 0 5px rgba(0, 0, 0, 0.17254902); + z-index: -1; + padding: 60px 15px 15px; +} +.content .details-box .apply-btn .apply-list .apply-item { + font-size: 16px; + color: #555555; + font-family: "PingFangSC-Semibold", "PingFang SC Semibold", "PingFang SC", sans-serif; + line-height: 40px; + cursor: pointer; +} +.content .details-box .apply-btn .apply-list .apply-item .dot { + width: 6px; + height: 6px; + border-radius: 50%; + border: 1px solid #797979; + margin-right: 10px; +} +.content .details-box .apply-btn .apply-list .apply-item.pitch { + font-weight: 650; + color: #000000; +} +.content .details-box .apply-btn .apply-list .apply-item.pitch .dot { + border-color: #333; + background-color: #333; +} +.content .details-box .accreditation { + padding: 25px 20px; + margin-bottom: 40px; +} +.content .details-box .accreditation .accreditation-item:not(:last-of-type) { + margin-bottom: 27px; +} +.content .details-box .accreditation .accreditation-item .title { + font-family: "PingFangSC-Semibold", "PingFang SC Semibold", "PingFang SC", sans-serif; + font-weight: 650; + font-size: 16px; + color: #000000; + margin-bottom: 14px; +} +.content .details-box .accreditation .accreditation-item .title .icon { + height: 6px; + width: 11px; + transform: rotate(-90deg); + margin-right: 12px; +} +.content .details-box .accreditation .accreditation-item .list { + background-color: #f6f6f6; + border-radius: 6px; + padding: 20px 10px; +} +.content .details-box .accreditation .accreditation-item .list .item { + font-family: "PingFangSC-Regular", "PingFang SC", sans-serif; + font-weight: 400; + font-size: 15px; +} +.content .details-box .accreditation .accreditation-item .list .item:not(:last-of-type) { + margin-bottom: 13px; +} +.content .details-box .accreditation .accreditation-item .list .item .dot { + width: 8px; + height: 8px; + margin-right: 10px; +} +.content .details-box .recommend-list { + display: grid; + grid-template-columns: 1fr 1fr; +} +.content .details-box .recommend-list .item { + border: 1px solid #ebebeb; + border-radius: 12px; + background-color: #fff; + width: 328px; + padding-top: 18px; + margin-bottom: 20px; +} +.content .details-box .recommend-list .item:nth-of-type(2n - 1) { + margin-right: 10px; +} +.content .details-box .recommend-list .item .school { + font-size: 14px; + color: #333333; + margin-bottom: 13px; + padding: 0 12px; +} +.content .details-box .recommend-list .item .school .icon { + width: 16px; + height: 18px; + margin-right: 8px; +} +.content .details-box .recommend-list .item .name { + font-family: "PingFangSC-Semibold", "PingFang SC Semibold", "PingFang SC", sans-serif; + font-weight: 650; + font-size: 16px; + color: #000000; + margin-bottom: 16px; + padding: 0 12px; +} +.content .details-box .recommend-list .item .english { + font-size: 13px; + color: #7f7f7f; + margin-bottom: 12px; + padding: 0 12px; +} +.content .details-box .recommend-list .item .introduce { + font-size: 14px; + font-family: "PingFangSC-Regular", "PingFang SC", sans-serif; + font-weight: 400; + color: #555555; + margin-bottom: 15px; + padding: 0 12px; +} +.content .details-box .recommend-list .item .introduce .quantity { + font-family: "Arial-Black", "Arial Black", sans-serif; + font-weight: 900; + color: #000000; + margin-left: 5px; +} +.content .details-box .recommend-list .item .introduce .line { + margin: 0 12px; + color: #d7d7d7; +} +.content .details-box .recommend-list .item .tag { + padding: 0 12px; +} +.content .details-box .recommend-list .item .tag .tag-item { + height: 20px; + padding: 0 6px; + background-color: #f9f8f8; + box-sizing: border-box; + border: 1px solid #aaaaaa; + border-radius: 6px; + font-size: 12px; + color: #7f7f7f; +} +.content .details-box .recommend-list .item .tag .tag-item.recommended { + color: #fff; + background-color: #04b0d5; + border-color: #04b0d5; +} +.content .details-box .recommend-list .item .tag .tag-item.required { + color: #fff; + background-color: #6fc16d; + border-color: #6fc16d; +} +.content .details-box .recommend-list .item .btn { + height: 50px; + background-color: #edf0f4; + border-top: 1px solid #ebebeb; + border-radius: 0 0 12px 12px; + font-family: "PingFangSC-Semibold", "PingFang SC Semibold", "PingFang SC", sans-serif; + font-weight: 650; + font-style: normal; + font-size: 14px; +} +.content .details-box .recommend-list .item .btn .btn-item { + position: relative; + cursor: pointer; +} +.content .details-box .recommend-list .item .btn .btn-item:not(:last-of-type)::after { + content: ""; + position: absolute; + top: 50%; + right: 1px; + width: 1px; + height: 21px; + transform: translateY(-50%); + background-color: #aaaaaa; +} +.content .details-box .recommend-list .item .btn .btn-item .icon { + width: 16px; + height: 16px; + margin-right: 6px; +} +.content .details-box .consult-more { + font-size: 14px; + color: #555555; + line-height: 26px; + cursor: pointer; +} +.content .details-box .consult-more .icon { + width: 18px; + height: 18px; + margin-left: 6px; +} +.content .details-box .discipline { + padding-top: 29px; + padding-bottom: 33px; + padding: 29px 28px 33px; + margin-bottom: 40px; +} +.content .details-box .discipline .discipline-title { + font-family: "PingFangSC-Semibold", "PingFang SC Semibold", "PingFang SC", sans-serif; + font-weight: 650; + font-style: normal; + font-size: 18px; + color: #000000; + text-align: center; + line-height: 34px; + margin-bottom: 16px; +} +.content .details-box .discipline .discipline-btn { + height: 36px; + background-color: #f6f6f6; + border-radius: 9px; + cursor: pointer; +} +.content .details-box .discipline .discipline-btn .text { + font-weight: 400; + font-style: normal; + font-size: 14px; + color: #333333; + padding-left: 11px; +} +.content .details-box .discipline .discipline-btn .sum { + font-size: 14px; + color: #555555; + padding-right: 11px; +} +.content .details-box .discipline .discipline-btn .sum .quantity { + font-family: "Arial-Black", "Arial Black", sans-serif; + font-weight: 900; + color: #000000; + margin: 0 6px; +} +.content .details-box .discipline .discipline-btn .green-btn { + width: 36px; + height: 36px; + background-color: #6fc16d; + border-radius: 0 9px 9px 0; +} .content .details-box .block { background-color: #ffffff; border: 1px solid #ebebeb; diff --git a/css/details.less b/css/details.less index af9e1f6..cb9aaf1 100644 --- a/css/details.less +++ b/css/details.less @@ -535,6 +535,318 @@ } } + .apply-btn { + position: relative; + z-index: 1; + width: fit-content; + margin: 20px auto 62px; + + .btn { + width: 232px; + height: 30px; + font-size: 16px; + color: #ffffff; + margin: 0 auto; + z-index: 1; + cursor: pointer; + + .text { + text-align: center; + line-height: 30px; + background-color: rgba(249, 93, 93, 1); + border-radius: 7px 0 0 7px; + } + + .btn-right { + background-color: rgba(51, 51, 51, 1); + border-radius: 0 7px 7px 0; + height: 100%; + width: 30px; + + .arrows { + width: 10px; + height: 5px; + } + } + } + + .apply-mask { + position: fixed; + top: 0; + left: 0; + width: 100%; + height: 100%; + z-index: -1; + } + + .apply-list { + position: absolute; + left: -15px; + top: -15px; + width: 262px; + background-color: rgba(242, 242, 242, 1); + border-radius: 15px; + box-shadow: 0 0 5px rgba(0, 0, 0, 0.172549019607843); + z-index: -1; + padding: 60px 15px 15px; + + .apply-item { + font-size: 16px; + color: #555555; + font-family: "PingFangSC-Semibold", "PingFang SC Semibold", "PingFang SC", sans-serif; + line-height: 40px; + cursor: pointer; + .dot { + width: 6px; + height: 6px; + border-radius: 50%; + border: 1px solid #797979; + margin-right: 10px; + } + + &.pitch { + font-weight: 650; + color: #000000; + + .dot { + border-color: #333; + background-color: #333; + } + } + } + } + } + + .accreditation { + padding: 25px 20px; + margin-bottom: 40px; + .accreditation-item { + &:not(:last-of-type) { + margin-bottom: 27px; + } + .title { + .icon { + height: 6px; + width: 11px; + transform: rotate(-90deg); + margin-right: 12px; + } + + font-family: "PingFangSC-Semibold", "PingFang SC Semibold", "PingFang SC", sans-serif; + font-weight: 650; + font-size: 16px; + color: #000000; + margin-bottom: 14px; + } + + .list { + background-color: rgba(246, 246, 246, 1); + border-radius: 6px; + padding: 20px 10px; + + .item { + font-family: "PingFangSC-Regular", "PingFang SC", sans-serif; + font-weight: 400; + font-size: 15px; + + &:not(:last-of-type) { + margin-bottom: 13px; + } + + .dot { + width: 8px; + height: 8px; + margin-right: 10px; + } + } + } + } + } + + .recommend-list { + display: grid; + grid-template-columns: 1fr 1fr; + + .item { + border: 1px solid rgba(235, 235, 235, 1); + border-radius: 12px; + background-color: #fff; + width: 328px; + padding-top: 18px; + margin-bottom: 20px; + + &:nth-of-type(2n - 1) { + margin-right: 10px; + } + .school { + font-size: 14px; + color: #333333; + margin-bottom: 13px; + padding: 0 12px; + + .icon { + width: 16px; + height: 18px; + margin-right: 8px; + } + } + .name { + font-family: "PingFangSC-Semibold", "PingFang SC Semibold", "PingFang SC", sans-serif; + font-weight: 650; + font-size: 16px; + color: #000000; + margin-bottom: 16px; + padding: 0 12px; + } + + .english { + font-size: 13px; + color: #7f7f7f; + margin-bottom: 12px; + padding: 0 12px; + } + + .introduce { + font-size: 14px; + font-family: "PingFangSC-Regular", "PingFang SC", sans-serif; + font-weight: 400; + color: #555555; + margin-bottom: 15px; + padding: 0 12px; + + .quantity { + font-family: "Arial-Black", "Arial Black", sans-serif; + font-weight: 900; + color: #000000; + margin-left: 5px; + } + + .line { + margin: 0 12px; + color: #d7d7d7; + } + } + + .tag { + padding: 0 12px; + + .tag-item { + height: 20px; + padding: 0 6px; + background-color: rgba(249, 248, 248, 1); + box-sizing: border-box; + border: 1px solid rgba(170, 170, 170, 1); + border-radius: 6px; + font-size: 12px; + color: #7f7f7f; + + &.recommended { + color: #fff; + background-color: rgba(4, 176, 213, 1); + border-color: rgba(4, 176, 213, 1); + } + + &.required { + color: #fff; + background-color: rgba(111, 193, 109, 1); + border-color: rgba(111, 193, 109, 1); + } + } + } + .btn { + height: 50px; + background-color: rgba(237, 240, 244, 1); + border-top: 1px solid rgba(235, 235, 235, 1); + border-radius: 0 0 12px 12px; + font-family: "PingFangSC-Semibold", "PingFang SC Semibold", "PingFang SC", sans-serif; + font-weight: 650; + font-style: normal; + font-size: 14px; + + .btn-item { + position: relative; + cursor: pointer; + &:not(:last-of-type)::after { + content: ""; + position: absolute; + top: 50%; + right: 1px; + width: 1px; + height: 21px; + transform: translateY(-50%); + background-color: #aaaaaa; + } + .icon { + width: 16px; + height: 16px; + margin-right: 6px; + } + } + } + } + } + + .consult-more { + font-size: 14px; + color: #555555; + line-height: 26px; + cursor: pointer; + .icon { + width: 18px; + height: 18px; + margin-left: 6px; + } + } + + .discipline { + padding-top: 29px; + padding-bottom: 33px; + padding: 29px 28px 33px; + margin-bottom: 40px; + .discipline-title { + font-family: "PingFangSC-Semibold", "PingFang SC Semibold", "PingFang SC", sans-serif; + font-weight: 650; + font-style: normal; + font-size: 18px; + color: #000000; + text-align: center; + line-height: 34px; + margin-bottom: 16px; + } + .discipline-btn { + height: 36px; + background-color: rgba(246, 246, 246, 1); + border-radius: 9px; + cursor: pointer; + .text { + font-weight: 400; + font-style: normal; + font-size: 14px; + color: #333333; + padding-left: 11px; + } + .sum { + font-size: 14px; + color: #555555; + padding-right: 11px; + + .quantity { + font-family: "Arial-Black", "Arial Black", sans-serif; + font-weight: 900; + color: #000000; + margin: 0 6px; + } + } + + .green-btn { + width: 36px; + height: 36px; + background-color: rgba(111, 193, 109, 1); + border-radius: 0 9px 9px 0; + } + } + } + .block { background-color: rgba(255, 255, 255, 1); border: 1px solid rgba(235, 235, 235, 1); diff --git a/html/details.html b/html/details.html index 7651599..ebd5814 100644 --- a/html/details.html +++ b/html/details.html @@ -82,6 +82,105 @@