Line 45: | Line 45: | ||
#mw-content-text { | #mw-content-text { | ||
overflow-x: hidden; | overflow-x: hidden; | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
} | } | ||
+ | |||
/**reset css end*/ | /**reset css end*/ | ||
.clearfix:after { | .clearfix:after { | ||
Line 85: | Line 80: | ||
position: relative; | position: relative; | ||
width: 100%; | width: 100%; | ||
− | height: | + | height: 123px; |
} | } | ||
.top-nav-bar { | .top-nav-bar { | ||
− | height: | + | height: 123px; |
width: 100%; | width: 100%; | ||
− | padding: 0 | + | padding: 0 6.25%; |
box-sizing: border-box; | box-sizing: border-box; | ||
background-color: #fff; | background-color: #fff; | ||
Line 105: | Line 100: | ||
width: 100%; | width: 100%; | ||
display: flex; | display: flex; | ||
− | background: url('https://static.igem.org/mediawiki/2021/9/ | + | background: url('https://static.igem.org/mediawiki/2021/9/99/T--Shanghai_Metro_HS--logo.png') no-repeat left center; |
− | background-size: | + | background-size: 181px 51px; |
justify-content: flex-end; | justify-content: flex-end; | ||
align-items: center; | align-items: center; | ||
Line 112: | Line 107: | ||
.top-nav-bar>ul>li { | .top-nav-bar>ul>li { | ||
− | margin-left: | + | margin-left: 4.375%; |
− | height: | + | height: 123px; |
position: relative; | position: relative; | ||
− | line-height: | + | line-height: 123px; |
transition: all .3s; | transition: all .3s; | ||
-webkit-transition: all .3s; | -webkit-transition: all .3s; | ||
− | |||
− | |||
font-size: 17px; | font-size: 17px; | ||
− | color: # | + | color: #4c4c4c; |
− | + | } | |
+ | .top-nav-bar>ul>li:first-of-type { | ||
+ | margin-left: 0; | ||
} | } | ||
.top-nav-bar>ul>li.active, | .top-nav-bar>ul>li.active, | ||
.top-nav-bar>ul>li:hover { | .top-nav-bar>ul>li:hover { | ||
− | color: # | + | color: #8ab48b; |
− | + | ||
} | } | ||
+ | .top-nav-bar>ul>li.active::after, .top-nav-bar>ul>li:hover::after{ | ||
+ | content: ""; | ||
+ | width: 100%; | ||
+ | height: 7px; | ||
+ | position: absolute; | ||
+ | background: #8ab48b; | ||
+ | display: inline-block; | ||
+ | left: 0; | ||
+ | bottom: 4px; | ||
+ | } | ||
+ | |||
.top-nav-bar>ul>li>.sub-nav { | .top-nav-bar>ul>li>.sub-nav { | ||
− | padding: | + | padding: 23px 68px 23px 35px; |
position: absolute; | position: absolute; | ||
z-index: 1; | z-index: 1; | ||
− | left: - | + | left: -140px; |
top: 100%; | top: 100%; | ||
− | background: # | + | background: #8ab48b; |
color: #fff; | color: #fff; | ||
+ | opacity: .96; | ||
white-space: nowrap; | white-space: nowrap; | ||
+ | border-left: 2px solid #fff; | ||
+ | border-right: 2px solid #fff; | ||
+ | border-bottom: 2px solid #fff; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
} | } | ||
Line 154: | Line 163: | ||
display: inline-block; | display: inline-block; | ||
line-height: 37px; | line-height: 37px; | ||
− | |||
transition: all .3s; | transition: all .3s; | ||
-webkit-transition: all .3s; | -webkit-transition: all .3s; | ||
− | font-size: | + | font-size: 16px; |
text-align: left !important; | text-align: left !important; | ||
color: #fff; | color: #fff; | ||
Line 189: | Line 197: | ||
width: 100%; | width: 100%; | ||
display: block; | display: block; | ||
− | height: | + | height: 2px; |
− | background-color: # | + | background-color: #fff; |
bottom: 0; | bottom: 0; | ||
position: relative; | position: relative; | ||
Line 209: | Line 217: | ||
/**首页相关 start*/ | /**首页相关 start*/ | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
.home-content { | .home-content { | ||
− | background: # | + | background: #fff; |
− | width: | + | width: 1225px; |
margin: 0 auto; | margin: 0 auto; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
+ | } | ||
+ | |||
+ | .home-content>.top-banner { | ||
+ | width: 100%; | ||
+ | /* height: 731px; */ | ||
+ | height: auto; | ||
+ | position: relative; | ||
} | } | ||
.home-content>.group-photo { | .home-content>.group-photo { | ||
width: 100%; | width: 100%; | ||
+ | height: 716px; | ||
position: relative; | position: relative; | ||
− | |||
− | |||
− | |||
− | |||
} | } | ||
Line 254: | Line 257: | ||
width: 100%; | width: 100%; | ||
/* height: 593px; */ | /* height: 593px; */ | ||
− | padding: | + | padding: 80px 87px 110px 78px; |
box-sizing: border-box; | box-sizing: border-box; | ||
− | background: # | + | background: #b3cff1; |
} | } | ||
.home-content>.team-tips>.team-tips-title { | .home-content>.team-tips>.team-tips-title { | ||
− | font-family: | + | margin-bottom: 63px; |
− | + | font-family: SourceHanSansCN-Medium; | |
− | + | font-size: 36px !important; | |
− | + | line-height: 1; | |
− | + | letter-spacing: 0px; | |
− | + | color: #f3f3f3; | |
− | + | ||
− | + | ||
} | } | ||
− | .home-content>.team-tips>.team-tips- | + | |
− | + | .home-content>.team-tips>.team-tips-wrap { | |
− | + | width: 100%; | |
− | + | display: flex; | |
− | + | /* height: 418px; */ | |
− | + | align-items: center; | |
− | + | justify-content: space-between; | |
− | + | ||
} | } | ||
− | .home-content>.team-tips>.team-tips-content { | + | .home-content>.team-tips>.team-tips-wrap>.team-tips-content { |
+ | flex: 1; | ||
+ | font-size: 24px !important; | ||
+ | line-height: 36px; | ||
+ | letter-spacing: 0px; | ||
+ | color: #fff; | ||
text-align: justify; | text-align: justify; | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
} | } | ||
− | .home-content>.team-tips>.team-tips | + | |
− | + | .home-content>.team-tips>.team-tips-wrap>.team-tips-img { | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
display: inline-block; | display: inline-block; | ||
− | width: | + | width: 418px; |
− | height: | + | height: 418px; |
+ | margin-left: 33px; | ||
} | } | ||
/**首页相关end*/ | /**首页相关end*/ | ||
Line 304: | Line 299: | ||
.sub-content { | .sub-content { | ||
background: #fff; | background: #fff; | ||
− | width: | + | max-width: 72.7%; |
margin: 0 auto; | margin: 0 auto; | ||
− | |||
box-sizing: border-box; | box-sizing: border-box; | ||
} | } | ||
Line 315: | Line 309: | ||
.sub-content>.sub-title { | .sub-content>.sub-title { | ||
− | + | padding-top: 50px; | |
− | + | padding-bottom: 50px; | |
− | + | font-family: SourceHanSansCN-Bold; | |
− | + | font-size: 36px; | |
− | + | font-weight: normal; | |
− | + | letter-spacing: 0px; | |
− | + | color: #242424; | |
text-align: center; | text-align: center; | ||
− | + | box-sizing: border-box; | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
} | } | ||
.sub-content>.article-title { | .sub-content>.article-title { | ||
/* font-family: SourceHanSansCN-Medium; */ | /* font-family: SourceHanSansCN-Medium; */ | ||
− | font-size: | + | font-size: 24px; |
− | margin-bottom: | + | margin-bottom: 16px; |
letter-spacing: 0px; | letter-spacing: 0px; | ||
/* color: #3161b5; */ | /* color: #3161b5; */ | ||
− | color: # | + | color: #242424; |
− | font-family: | + | font-family: SourceHanSansCN-Bold; |
} | } | ||
.sub-content>.article-content { | .sub-content>.article-content { | ||
− | font-family: | + | font-family: SourceHanSansCN-Medium; |
− | + | font-size: 16px; | |
letter-spacing: 0px; | letter-spacing: 0px; | ||
− | color: # | + | color: #4c4c4c; |
text-align: justify; | text-align: justify; | ||
− | margin-bottom: | + | margin-bottom: 16px; |
− | line-height: | + | line-height: 24px; |
word-break: break-all; | word-break: break-all; | ||
+ | } | ||
+ | |||
+ | .sub-content>.black-font { | ||
+ | color: #242424; | ||
+ | font-family: SourceHanSansCN-Bold; | ||
} | } | ||
Line 359: | Line 350: | ||
text-align: center; | text-align: center; | ||
margin-top: 11px; | margin-top: 11px; | ||
− | margin-bottom: | + | margin-bottom: 16px; |
} | } | ||
Line 482: | Line 473: | ||
.sub-banner { | .sub-banner { | ||
width: 100%; | width: 100%; | ||
− | + | height: 460px; | |
position: relative; | position: relative; | ||
} | } | ||
Line 505: | Line 496: | ||
.footer { | .footer { | ||
width: 100%; | width: 100%; | ||
− | height: | + | height: 690px; |
+ | background: #fffffd; | ||
} | } | ||
Line 511: | Line 503: | ||
width: 100%; | width: 100%; | ||
height: 100%; | height: 100%; | ||
− | padding | + | padding: 83px 23.6% 51px; |
text-align: center; | text-align: center; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
+ | background: url('https://static.igem.org/mediawiki/2021/a/ae/T--Shanghai_Metro_HS--homepage01.png') no-repeat bottom center; | ||
+ | background-size: 375px; | ||
} | } | ||
.footer .footer-contact { | .footer .footer-contact { | ||
− | font-family: SourceHanSansCN- | + | font-family: SourceHanSansCN-Medium; |
− | font-size: | + | font-size: 36px; |
− | + | color: #323232; | |
− | color: # | + | margin-bottom: 80px; |
− | margin-bottom: | + | text-align: left; |
} | } | ||
.footer p { | .footer p { | ||
− | font-family: SourceHanSansCN- | + | font-family: SourceHanSansCN-Medium !important; |
− | font-size: | + | font-size: 25px !important; |
− | line-height: | + | line-height: 25px; |
letter-spacing: 0px; | letter-spacing: 0px; | ||
− | color: # | + | color: #464646; |
text-align: center !important; | text-align: center !important; | ||
} | } | ||
− | .margin-bottom- | + | .margin-bottom-20 { |
− | margin-bottom: | + | margin-bottom: 20px; |
} | } | ||
Revision as of 08:18, 2 October 2021
/**reset css start*/ body, html {
background-color: white; width: 100%; height: 100%;
}
- content {
padding: 0; width: 100%; margin: 0; border: none; box-sizing: border-box; overflow-x: hidden;
}
- globalWrapper {
padding-bottom: 0; box-sizing: border-box;
}
- sideMenu,
- top_title,
.patrollink,
- firstHeading,
- home_logo,
- sideMenu {
display: none;
}
- top_menu_14 {
display: none;
}
- top_menu_under {
display: none;
}
p {
margin: 0; line-height: 0;
}
- mw-content-text {
overflow-x: hidden;
}
/**reset css end*/ .clearfix:after {
content: ; display: block; clear: both;
}
- {
margin: 0; padding: 0; font-family: "微软雅黑", "Microsoft YaHei";
}
ul, ol {
list-style: none;
}
a {
text-decoration: none; cursor: pointer; color: inherit;
}
a:visited, a:link {
color: inherit; text-decoration: none;
} /**导航相关的 start*/ nav {
position: relative; width: 100%; height: 123px;
}
.top-nav-bar {
height: 123px; width: 100%; padding: 0 6.25%; box-sizing: border-box; background-color: #fff;
}
.top-nav-bar a {
padding-right: 0 !important; display: inline-block;
}
.top-nav-bar>ul {
position: relative; width: 100%; display: flex; background: url('https://static.igem.org/mediawiki/2021/9/99/T--Shanghai_Metro_HS--logo.png') no-repeat left center; background-size: 181px 51px; justify-content: flex-end; align-items: center;
}
.top-nav-bar>ul>li {
margin-left: 4.375%; height: 123px; position: relative; line-height: 123px; transition: all .3s; -webkit-transition: all .3s; font-size: 17px; color: #4c4c4c;
} .top-nav-bar>ul>li:first-of-type {
margin-left: 0;
} .top-nav-bar>ul>li.active, .top-nav-bar>ul>li:hover {
color: #8ab48b;
} .top-nav-bar>ul>li.active::after, .top-nav-bar>ul>li:hover::after{
content: ""; width: 100%; height: 7px; position: absolute; background: #8ab48b; display: inline-block; left: 0; bottom: 4px;
}
.top-nav-bar>ul>li>.sub-nav {
padding: 23px 68px 23px 35px; position: absolute; z-index: 1; left: -140px; top: 100%; background: #8ab48b; color: #fff; opacity: .96; white-space: nowrap; border-left: 2px solid #fff; border-right: 2px solid #fff; border-bottom: 2px solid #fff; box-sizing: border-box;
} .sub-nav>ul {
width: 100%; display: flex; box-sizing: border-box; align-items: center; flex-direction: column;
}
.sub-nav>ul>li {
position: relative; width: 100%; height: 37px; display: inline-block; line-height: 37px; transition: all .3s; -webkit-transition: all .3s; font-size: 16px; text-align: left !important; color: #fff;
}
.sub-nav>ul>li>a:active, .sub-nav>ul>li:active .sub-nav>ul>li>a:visited, .sub-nav>ul>li:visited, .sub-nav>ul>li>a:hover, .sub-nav>ul>li:hover, .sub-nav>ul>li>a:focus, .sub-nav>ul>li:focus, .sub-nav>ul>li>a:focus-visible, .sub-nav>ul>li:focus-visible {
color: #fff; display: inline-block;
}
.sub-nav>ul>.current-sub-nav>a {
color: #fff; display: inline-block;
}
.sub-nav>ul>li a:active::after, .sub-nav>ul>li a:visited::after, .sub-nav>ul>li a:hover::after, .sub-nav>ul>li a:focus::after, .sub-nav>ul>li a:focus-visible::after, .sub-nav>ul>.current-sub-nav a::after {
content: ; width: 100%; display: block; height: 2px; background-color: #fff; bottom: 0; position: relative;
}
.top-nav-bar>ul>li>.sub-nav {
display: none;
} /* .top-nav-bar>ul>li.active .sub-nav, */ .top-nav-bar>ul>li:hover .sub-nav {
display: block;
} /*解决前面有子菜单的hover上去被后面的子菜单遮盖*/ .top-nav-bar>ul>li:hover>.sub-nav {
z-index: 99;
} /**导航相关的 end*/
/**首页相关 start*/ .home-content {
background: #fff; width: 1225px; margin: 0 auto; box-sizing: border-box;
}
.home-content>.top-banner {
width: 100%; /* height: 731px; */ height: auto; position: relative;
}
.home-content>.group-photo {
width: 100%; height: 716px; position: relative;
}
.home-content>.top-banner>img, .home-content>.group-photo img {
width: 100%; /* height: 100%; */ height: auto; display: block;
}
.home-content>.top-banner>span {
position: absolute; z-index: 2; font-size: 88px; color: #fff; left: 120px; bottom: 100px;
}
.home-content>.team-tips {
width: 100%; /* height: 593px; */ padding: 80px 87px 110px 78px; box-sizing: border-box; background: #b3cff1;
}
.home-content>.team-tips>.team-tips-title {
margin-bottom: 63px; font-family: SourceHanSansCN-Medium; font-size: 36px !important; line-height: 1; letter-spacing: 0px; color: #f3f3f3;
}
.home-content>.team-tips>.team-tips-wrap {
width: 100%; display: flex; /* height: 418px; */ align-items: center; justify-content: space-between;
}
.home-content>.team-tips>.team-tips-wrap>.team-tips-content {
flex: 1; font-size: 24px !important; line-height: 36px; letter-spacing: 0px; color: #fff; text-align: justify;
}
.home-content>.team-tips>.team-tips-wrap>.team-tips-img {
display: inline-block; width: 418px; height: 418px; margin-left: 33px;
} /**首页相关end*/
/**子页面相关start*/ .sub-content {
background: #fff; max-width: 72.7%; margin: 0 auto; box-sizing: border-box;
}
.no-margin-top {
margin-top: 0;
}
.sub-content>.sub-title {
padding-top: 50px; padding-bottom: 50px; font-family: SourceHanSansCN-Bold; font-size: 36px; font-weight: normal; letter-spacing: 0px; color: #242424; text-align: center; box-sizing: border-box;
}
.sub-content>.article-title {
/* font-family: SourceHanSansCN-Medium; */ font-size: 24px; margin-bottom: 16px; letter-spacing: 0px; /* color: #3161b5; */ color: #242424; font-family: SourceHanSansCN-Bold;
}
.sub-content>.article-content {
font-family: SourceHanSansCN-Medium; font-size: 16px; letter-spacing: 0px; color: #4c4c4c; text-align: justify; margin-bottom: 16px; line-height: 24px; word-break: break-all;
}
.sub-content>.black-font {
color: #242424; font-family: SourceHanSansCN-Bold;
}
.sub-content>.img-wrap {
width: 100%; text-align: center; margin-top: 11px; margin-bottom: 16px;
}
.sub-content>.img-wrap>img {
display: inline-block; max-width: 100%; /* width: 814px; height: 459px; */
}
.sub-content>.img-wrap>span {
display: block; text-align: center; font-family: SourceHanSansCN-Medium; font-size: 16px; line-height: 16px; letter-spacing: 0px; margin-top: 18px; color: #aeaeae;
}
.sub-content .sub-pdf {
width: 100%; height: 800px;
}
.sub-content>.section-wrap {
margin-bottom: 4px; width: 100%;
} .sub-content>.section-wrap>.item-title{
width: 100%; height: 62px; padding-left: 70px; box-sizing: border-box; font-family: SourceHanSansCN-Medium;
font-size: 24px; font-weight: normal; font-stretch: normal; line-height: 62px; letter-spacing: 0px; color: #ffffff;
} .sub-content>.section-wrap>.item-title:hover{
opacity: .7;
} .sub-content>.section-wrap>.item-content{
width: 100%; height: auto; display: none;
} .sub-content>.section-wrap>.item-content>img{
width: 100%; height: auto;
} .sub-content>.section-wrap>.item-title.in + .item-content{
display: none;
} .sub-content>.section-wrap>.item-title.out + .item-content{
display: block;
} .sub-content>.section-wrap>.item-title.in{
background-color: #1d1d1f;
} .sub-content>.section-wrap>.item-title.out{
background-color: #585858;
} .member-title {
font-family: SourceHanSansCN-Bold !important;
font-size: 45px !important;
line-height: 50px; margin-bottom: 40px !important;
} .sub-content>.sub-content-members-wrap{
width: 100%; height: auto;
} .sub-content>.sub-content-members-wrap>.member-item{
display: flex; align-items: center; justify-content: space-between; width: 100%; margin-bottom: 60px;
} .sub-content>.sub-content-members-wrap>.member-item>.member-head{
display: flex; align-items: center; flex-direction: column; width: 247px; padding-right: 40px; box-sizing: border-box;
} .sub-content>.sub-content-members-wrap>.member-item>.member-head>img{
width: 207px; height: 207px; border-radius: 100%; margin-bottom: 13px; display: inline-block;
} .sub-content>.sub-content-members-wrap>.member-item>.member-head>span{
display: block;
font-family: SourceHanSansCN-Medium; font-size: 20px;
text-align: center;
line-height: 20px; letter-spacing: 0px; color: #464646; } .sub-content>.sub-content-members-wrap>.member-item>.member-info{
flex: 1; font-family: ArialMT;
font-size: 19px; line-height: 22px; letter-spacing: 0px; color: #464646;
text-align: justify;
} .no-margin {
margin: 0;
} .sub-banner {
width: 100%; height: 460px; position: relative;
} .sub-banner img {
display: block; width: 100%;
} .sub-banner span {
display: inline-block; max-width: 100%; position: absolute; left: 233px; bottom: 104px; font-family: SourceHanSansCN-Bold;
font-size: 60px; font-weight: normal; color: #ffffff; } /**子页面相关end**/
/*底部样式start*/ .footer {
width: 100%; height: 690px; background: #fffffd;
}
.footer>.footer-wrap {
width: 100%; height: 100%; padding: 83px 23.6% 51px; text-align: center; box-sizing: border-box; background: url('https://static.igem.org/mediawiki/2021/a/ae/T--Shanghai_Metro_HS--homepage01.png') no-repeat bottom center; background-size: 375px;
} .footer .footer-contact { font-family: SourceHanSansCN-Medium; font-size: 36px; color: #323232;
margin-bottom: 80px; text-align: left;
} .footer p {
font-family: SourceHanSansCN-Medium !important; font-size: 25px !important; line-height: 25px; letter-spacing: 0px; color: #464646; text-align: center !important;
}
.margin-bottom-20 {
margin-bottom: 20px;
}
.line {
margin: 14px 0;
}
/**底部样式end*/