加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
首页.scss 19.35 KB
一键复制 编辑 原始数据 按行查看 历史
燕返故人归 提交于 2024-05-17 09:53 . 0517 上午10点提交
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
// pc端
@media screen and (min-width: 376px) {
/* 头部 */
.top {
background: linear-gradient(#660103, #9a0804);
}
.head {
margin: auto;
width: 90%;
display: flex;
justify-content: space-between;
.head-left {
.image0 {
display: none;
}
}
}
.ul1 {
margin-top: 30px;
list-style-type: none;
display: flex;
height: 30px;
color: white;
text-align: center;
}
.head-right {
display: flex;
justify-content: space-between;
}
.ul1 li {
padding-right: 20px;
line-height: 30px;
a {
text-decoration: none;
color: white;
}
}
.ul1 li:hover {
transform: scale(1.2);
}
.span1 {
font-size: 20px;
}
.input1 {
text-align: center;
border-radius: 40px;
height: 30px;
width: 150px;
margin-top: 30px;
border: 1px solid white;
position: relative;
}
/* 放大镜 */
.image2 {
width: 22px;
height: 22px;
position: absolute;
right: 200px;
top: 33px;
}
/* 轮播图 */
.image {
width: 100%;
height: 500px;
z-index: 1;
}
/* 新闻公告 */
.new {
background: linear-gradient(#ffffff, #f2f2f2);
.news {
padding-top: 30px;
width: 85%;
margin: auto;
.color {
margin-top: 30px;
margin-bottom: 30px;
background: linear-gradient(to top, #fdfdfd, #d6d6d6);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
font-weight: bold;
font-size: 22px;
text-align: center;
position: relative;
.newcolor {
font-weight: bold;
font-size: 30px;
color: #ca1818;
position: absolute;
right: 45%;
top: -10px;
}
}
.news1 {
width: 100%;
display: flex;
text-align: center;
justify-content: space-between;
.news-right {
background-color: white;
height: 400px;
border: 1px solid #f4f4f4;
border-radius: 5px;
width: 49%;
position: relative;
.border {
width: 70%;
margin-left: 20px;
border-bottom: 1px solid #ececec;
}
p:nth-child(1) {
font-weight: bold;
font-size: 26px;
color: black;
padding: 20px;
text-align: left;
}
p:nth-child(3) {
color: red;
position: absolute;
top: 95px;
right: 40px;
}
p:nth-child(4) {
padding-top: 50px;
padding-left: 20px;
padding-right: 20px;
color: black;
font-size: 20px;
text-align: left;
}
.bottom {
display: flex;
justify-content: space-between;
padding-left: 20px;
padding-right: 20px;
height: 50px;
line-height: 50px;
margin-top: 100px;
img:nth-child(1) {
margin-top: 5px;
width: 40px;
height: 40px;
}
img:nth-child(1):hover {
filter: drop-shadow(0 0 0 #e13840);
}
img:nth-child(2) {
margin-left: 15px;
transform: rotate(180deg);
width: 40px;
height: 40px;
}
img:nth-child(2):hover {
filter: drop-shadow(0 0 0 #e13840);
}
p {
color: #cbcbcb;
span {
font-size: 26px;
color: red;
}
}
}
}
.news-left {
width: 49%;
height: 400px;
.p1 {
display: none;
}
}
.image3 {
width: 100%;
height: 400px;
}
}
}
.all {
position: relative;
.news-bottom {
width: 100%;
margin: auto;
margin-top: 50px;
display: flex;
justify-content: space-between;
.left {
width: 30%;
height: 200px;
font-size: 18px;
padding-top: 30px;
padding-left: 20px;
padding-right: 20px;
border: 1px solid #000;
background-color: white;
z-index: 999;
.image11 {
display: none;
}
span {
font-weight: bold;
}
p:nth-child(2) {
padding: 20px;
text-align: right;
}
}
.left:hover {
color: #dc6363;
}
.center {
width: 30%;
height: 200px;
font-size: 18px;
padding-top: 30px;
padding-left: 20px;
padding-right: 20px;
border: 1px solid #000;
background-color: white;
z-index: 999;
.image11 {
display: none;
}
span {
font-weight: bold;
}
p:nth-child(2) {
padding: 20px;
text-align: right;
}
}
.center:hover {
color: #dc6363;
}
.right {
width: 30%;
height: 200px;
font-size: 18px;
padding-top: 30px;
padding-left: 20px;
padding-right: 20px;
border: 1px solid #000;
background-color: white;
z-index: 999;
.image11 {
display: none;
}
span {
font-weight: bold;
}
p:nth-child(2) {
padding: 20px;
text-align: right;
}
}
.right:hover {
color: #dc6363;
}
}
.empty {
width: 85%;
margin: auto;
height: 10px;
top: 50px;
left: 110px;
position: absolute;
background-color: #cfcfcf;
}
}
.news3 {
display: flex;
text-align: center;
align-items: center;
justify-content: center;
padding: 40px;
color: #c3c3c3;
img {
transform: rotate(180deg);
width: 20px;
height: 20px;
margin-left: 5px;
}
}
}
// 党建引领
.Party {
// padding: 20px 0;
width: 100%;
// 查看更多
.Party3 {
display: flex;
text-align: center;
align-items: center;
justify-content: center;
padding: 40px;
color: #c3c3c3;
img {
transform: rotate(180deg);
width: 20px;
height: 20px;
margin-left: 5px;
}
}
.Party-box {
width: 85%;
margin: 0 auto;
.Party-title {
padding-top: 20px;
text-align: center;
font-weight: bold;
div:nth-child(1) {
color: #c90000;
font-size: 25px;
position: absolute;
left: 46.2%;
}
div:nth-child(2) {
background: -webkit-linear-gradient(#d7d7d7, #f1f1f1);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
padding-top: 6px;
font-size: 20px;
}
}
.Party-middle {
padding-top: 20px;
display: flex;
justify-content: space-between;
.Party-m-para:hover {
border-bottom: 10px solid #c90c0c;
.Party-content {
.left {
background-color: #c90000;
}
}
}
.Party-m-para {
height: 380px;
width: 30%;
box-shadow: 2px 2px 2px 1px #dbdbdb;
margin-top: 30px;
.img {
width: 100%;
img {
width: 100%;
}
}
.Party-content {
width: 85%;
margin: 0 auto;
background-color: #fff;
display: flex;
justify-content: space-between;
padding: 10px 0;
.left {
color: #fff;
background-color: #e47f7f;
width: 20%;
height: 55px;
div:nth-child(1) {
margin-top: 10px;
text-align: center;
}
div:nth-child(2) {
font-size: 10px;
text-align: center;
}
}
.right {
letter-spacing: 2px;
width: 78%;
}
}
}
}
}
}
// 教研动态
.research {
width: 100%;
height: 100%;
background: url("../第一阶段项目/img/7-min.png");
background-repeat: no-repeat;
background-size: 100% 100%;
// 查看更多
.research3 {
display: flex;
text-align: center;
align-items: center;
justify-content: center;
padding: 40px;
color: #c3c3c3;
img {
transform: rotate(180deg);
width: 20px;
height: 20px;
margin-left: 5px;
}
}
.researchs {
padding-top: 30px;
width: 85%;
margin: auto;
.color {
margin-top: 30px;
margin-bottom: 30px;
background: linear-gradient(to top, #fdfdfd, #d6d6d6);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
font-weight: bold;
font-size: 22px;
text-align: center;
position: relative;
.newcolor {
font-weight: bold;
font-size: 30px;
color: #ca1818;
position: absolute;
right: 45%;
top: -10px;
}
}
.researchs1 {
width: 100%;
display: flex;
text-align: center;
justify-content: space-between;
.researchs-right {
height: 400px;
border-radius: 5px;
width: 49%;
position: relative;
.right-box:hover {
color: #d44949;
}
.right-box {
display: flex;
justify-content: space-between;
font-size: 24px;
border-bottom: 1px solid #dddddd;
height: 80px;
line-height: 80px;
}
}
.researchs1-left {
width: 49%;
height: 400px;
p {
width: 100%;
height: 60px;
line-height: 60px;
border: 1px solid #000;
margin-top: -64px;
// background: rgba($color: black, $alpha: 0.5);
background-color: black;
// border: 1px solid #000;
opacity: 0.3;
color: white;
}
.image3 {
width: 100%;
height: 400px;
}
}
}
}
}
// 社会服务
.societyone {
background: linear-gradient(#ffffff, #f2f2f2);
.society {
padding-top: 30px;
width: 85%;
margin: auto;
.color {
margin-top: 30px;
margin-bottom: 30px;
background: linear-gradient(to top, #fdfdfd, #d6d6d6);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
font-weight: bold;
font-size: 22px;
text-align: center;
position: relative;
.newcolor {
font-weight: bold;
font-size: 30px;
color: #ca1818;
position: absolute;
right: 45%;
top: -10px;
}
}
.society1 {
width: 100%;
display: flex;
text-align: center;
justify-content: space-between;
.society-right {
height: 400px;
// border: 1px solid red;
width: 49%;
.right-top:hover {
background-color: #e5e5e5;
}
.right-bottom:hover {
background-color: #e5e5e5;
}
.right-top {
display: flex;
align-items: center;
height: 49%;
width: 100%;
border: 3px solid #ebebeb;
img {
margin-left: 100px;
}
p {
margin-left: 30px;
font-size: 50px;
font-weight: bold;
color: #c90000;
}
}
.right-bottom {
margin-top: 7px;
display: flex;
align-items: center;
border: 3px solid #ebebeb;
height: 49%;
width: 100%;
img {
margin-left: 100px;
}
p {
margin-left: 30px;
font-size: 50px;
font-weight: bold;
color: #c90000;
}
}
}
.society-left {
width: 49%;
height: 400px;
.left-top {
width: 100%;
height: 59%;
.image3 {
width: 100%;
height: 100%;
}
}
// .left-bottom:hover {
// border: 3px solid #ce545a;
// }
.left-bottom {
// margin-top: 2%;
width: 100%;
height: 41%;
padding: 20px;
border-left: 3px solid #ce545a;
border-right: 3px solid #ce545a;
border-bottom: 3px solid #ce545a;
p:nth-child(1) {
text-align: left;
font-size: 22px;
}
p:nth-child(2) {
text-align: left;
margin-top: 20px;
font-size: 15px;
}
p:nth-child(3) {
display: flex;
align-items: center;
margin-top: 20px;
text-align: left;
span {
margin-left: 10px;
}
}
}
}
}
}
.news3 {
display: flex;
text-align: center;
align-items: center;
justify-content: center;
padding: 40px;
color: #c3c3c3;
img {
transform: rotate(180deg);
width: 20px;
height: 20px;
margin-left: 5px;
}
}
}
// 主题活动
.topic {
width: 100%;
height: 100%;
// background: url("../第一阶段项目/img/7-min.png");
// background-repeat: no-repeat;
// background-size: 100% 100%;
background-color: #f3e0e2;
// opacity: 0.2;
.news {
padding-top: 30px;
width: 85%;
margin: auto;
.color {
margin-top: 30px;
margin-bottom: 30px;
background: linear-gradient(to top, #fdfdfd, #d6d6d6);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
font-weight: bold;
font-size: 22px;
text-align: center;
position: relative;
.newcolor {
font-weight: bold;
font-size: 30px;
color: #ca1818;
position: absolute;
right: 45%;
top: -10px;
}
}
}
.all {
position: relative;
.news-bottom {
width: 85%;
margin: auto;
margin-top: 50px;
display: flex;
justify-content: space-between;
.center:hover {
margin-top: -20px;
.center-top {
p {
background-color: rgba($color: #a6c6e2, $alpha: 0.5);
}
}
}
.center {
width: 22%;
height: 340px;
border-radius: 10px;
background-color: white;
// z-index: 999;
.center-top {
border-radius: 10px;
width: 100%;
height: 60%;
position: relative;
img {
width: 100%;
height: 100%;
}
p {
width: 100%;
height: 100%;
border-radius: 10px;
padding: 50px;
font-size: 20px;
text-align: center;
background-color: rgba($color: #8f9498, $alpha: 0.5);
position: absolute;
top: 0;
color: white;
}
}
.center-bottom {
padding: 30px;
text-align: center;
font-size: 18px;
}
}
}
// .empty {
// width: 85%;
// margin: auto;
// height: 10px;
// top: 50px;
// left: 110px;
// position: absolute;
// background-color: #cfcfcf;
// }
}
.news3 {
display: flex;
text-align: center;
align-items: center;
justify-content: center;
padding: 40px;
color: #c3c3c3;
img {
transform: rotate(180deg);
width: 20px;
height: 20px;
margin-left: 5px;
}
}
}
// 马院风采
.mien {
position: relative;
.mien-photo {
display: none;
}
.news3 {
display: none;
}
.mien-title {
text-align: center;
padding-top: 20px;
position: relative;
margin-bottom: 60px;
.mien-title1 {
background: linear-gradient(
to bottom,
rgb(207, 206, 206),
rgb(255, 255, 255)
);
/* 设置背景以文字进行裁切 */
background-clip: text;
-webkit-background-clip: text;
/* 设置文本颜色透明以露出后面裁切成文本形状的渐变背景 */
color: transparent;
font-size: 20px;
font-weight: bold;
}
.mien-title2 {
color: #c90000;
font-weight: bold;
font-size: 30px;
position: absolute;
left: 46%;
top: 18%;
}
}
.mien-center {
margin-bottom: 30px;
.swiper {
width: 100%;
height: 100%;
}
.swiper-slide {
text-align: center;
font-size: 18px;
background: #fff;
display: flex;
justify-content: center;
align-items: center;
}
.swiper-slide img {
display: block;
width: 85%;
height: 200px;
object-fit: cover;
}
}
.mien-bottom {
width: 85%;
margin: auto;
margin-bottom: 20px;
.mien-bottom1 {
font-weight: bolder;
font-size: 18px;
margin-right: 25px;
}
.mien-bottom2 {
margin-left: 28px;
a {
text-decoration: none;
color: #000;
}
}
}
}
// 底部
.foot {
margin-top: 10px;
padding-top: 40px;
background-color: #c62b31;
.foottop {
// border: 1px solid #000;
.foot1 {
width: 85%;
margin: auto;
display: flex;
justify-content: space-between;
.foot1-1 {
width: 30%;
border-right: 1px solid rgba(255, 255, 255, 0.6);
img {
width: 95%;
height: 80px;
}
}
.foot1-2 {
width: 55%;
height: 80px;
line-height: 80px;
font-size: 20px;
color: white;
margin-left: 15px;
p {
text-align: left;
}
}
.foot1-3 {
width: 15%;
height: 80px;
img {
margin-left: 103px;
text-align: right;
width: 80px;
height: 80px;
}
}
}
}
.footbottom {
margin-top: 34px;
color: rgba(255, 255, 255, 0.6);
background-color: rgba(0, 0, 0, 0.6);
text-align: center;
height: 40px;
line-height: 40px;
font-size: 13px;
}
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化