Line 1: | Line 1: | ||
− | body{ min-width: | + | body{ min-width: 1024px; min-height: 465px; position: relative;} |
− | .SSTi-SZGD{ background: url( | + | .SSTi-SZGD{ background: url(SSTi-SZGD_banner.jpeg:https://static.igem.org/mediawiki/2017/3/3d/SSTi-SZGD_banner.jpeg) no-repeat 0px 0px; height: 465px; background-size: cover; padding-top: 15px;} |
/*自定义header*/ | /*自定义header*/ | ||
Line 10: | Line 10: | ||
/*Content*/ | /*Content*/ | ||
− | .Content{ width: 100% | + | .Content{ width: 100%; background: #f5f5f5;} |
− | .Content .title{ width: 100% | + | .Content .title{ width: 100%; text-align: center; font-size: 6rem; font-weight: 600; color: #394c53; padding-top: 50px; letter-spacing: 2px;} |
− | .Content | + | .Content .Students,.Content .Teachers{ width: 80%; margin: auto;} |
− | . | + | .Content .Students .scroll{ height: 100%; width: 100%; position: relative; overflow: hidden; height: 950px;} |
+ | .Content .Teachers .scroll{ height: 100%; width: 100%; position: relative; overflow: hidden; height: 1000px;} | ||
+ | .Content ul{ width: 300%; position: absolute; height: inherit;} | ||
+ | .Content ul li{ text-align: justify; margin: 1.29%; font-size: 1.5rem; width: 8.5%; float: left; height: inherit;} | ||
+ | .Content ul li img{ margin: auto; margin-bottom: 15px;} | ||
+ | .Content ul li p{ margin-bottom: 15px; color: #333333; line-height: 2; } | ||
+ | .Content ul li .name{ font-size: 2.5rem; text-align: center;} | ||
+ | .Content .icon_left{ position: absolute; width: 150px; height: 150px; background: rgba(0,0,0,0.431373); top: 350px; left: -75px; cursor: pointer; border-radius: 100%;} | ||
+ | .Content .icon_left img{float: right; width: 30px; margin: 30px; margin-top: 45px;} | ||
+ | .Content .icon_left:hover,.Content .icon_right:hover{ background: rgba(135,206,235,0.431373);} | ||
+ | .Content .icon_right{ position: absolute; width: 150px; height: 150px; background: rgba(0,0,0,0.431373); top: 350px; right: -75px; cursor: pointer; border-radius: 100%;} | ||
+ | .Content .icon_right img{float: left; width: 30px; margin: 30px; margin-top: 45px;} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | /* | + | |
− | . | + | /*兼容*/ |
− | .Content . | + | /*--1920--*/ |
− | .Content . | + | @media only screen and (max-width: 1920px) { |
− | .Content . | + | .header .logo span{ margin-top: 17px;} |
− | . | + | .header .nav .mainnav span{ padding-top: 6px; margin-bottom: 18.5px;} |
− | . | + | } |
− | .Content . | + | |
− | .Content . | + | /*--1600--*/ |
− | .Content . | + | @media only screen and (max-width: 1600px) { |
+ | .Content .Students .scroll{ height: 1000px;} | ||
+ | .Content .Teachers .scroll{ height: 1100px;} | ||
+ | } | ||
+ | |||
+ | /*--1440--*/ | ||
+ | @media only screen and (max-width: 1440px) { | ||
+ | .Content .Students .scroll{ height: 1050px;} | ||
+ | .Content .Teachers .scroll{ height: 1200px;} | ||
+ | } | ||
+ | |||
+ | /*--1366--*/ | ||
+ | @media only screen and (max-width: 1366px) { | ||
+ | .Content .Students .scroll{ height: 1100px;} | ||
+ | .Content .Teachers .scroll{ height: 1300px;} | ||
+ | } | ||
+ | |||
+ | /*--1190--*/ | ||
+ | @media only screen and (max-width: 1190px) { | ||
+ | html{ font-size: 52%;} | ||
+ | .header .nav .Team{ width: 100px;} | ||
+ | .header .nav .Project{ width: 90px;} | ||
+ | .header .nav .Parts{ width: 115px;} | ||
+ | .header .nav .Human_Practices{ width: 135px;} | ||
+ | .header .nav .Awards{ width: 120px;} | ||
+ | .header .nav .mainnav span{ margin-bottom: 22.5px; padding-top: 6px;} | ||
+ | .Content .Students .scroll{ height: 1150px;} | ||
+ | .Content .Students .scroll{ height: 1350px;} | ||
+ | } | ||
+ | |||
+ | /*--1024--*/ | ||
+ | @media only screen and (max-width: 1024px) { | ||
+ | .Content .Students .scroll{ height: 1000px;} | ||
+ | .Content .Teachers .scroll{ height: 1200px;} | ||
+ | } |
Revision as of 01:22, 6 September 2017
body{ min-width: 1024px; min-height: 465px; position: relative;}
.SSTi-SZGD{ background: url(SSTi-SZGD_banner.jpeg:) no-repeat 0px 0px; height: 465px; background-size: cover; padding-top: 15px;}
/*自定义header*/ .header .nav .Team span,.header .nav .Team li:nth-of-type(1) a{ color: #FAEE0D;}
.topic{ position: absolute; margin: 10% auto; left: 0; right: 0; text-align: center; font-size: 5rem; color: white;} .topic p{ width: 58.28%; padding: 30px; border-top: 5px solid white; border-bottom: 5px solid white; margin: auto;}
/*Content*/ .Content{ width: 100%; background: #f5f5f5;} .Content .title{ width: 100%; text-align: center; font-size: 6rem; font-weight: 600; color: #394c53; padding-top: 50px; letter-spacing: 2px;} .Content .Students,.Content .Teachers{ width: 80%; margin: auto;} .Content .Students .scroll{ height: 100%; width: 100%; position: relative; overflow: hidden; height: 950px;} .Content .Teachers .scroll{ height: 100%; width: 100%; position: relative; overflow: hidden; height: 1000px;} .Content ul{ width: 300%; position: absolute; height: inherit;} .Content ul li{ text-align: justify; margin: 1.29%; font-size: 1.5rem; width: 8.5%; float: left; height: inherit;} .Content ul li img{ margin: auto; margin-bottom: 15px;} .Content ul li p{ margin-bottom: 15px; color: #333333; line-height: 2; } .Content ul li .name{ font-size: 2.5rem; text-align: center;} .Content .icon_left{ position: absolute; width: 150px; height: 150px; background: rgba(0,0,0,0.431373); top: 350px; left: -75px; cursor: pointer; border-radius: 100%;} .Content .icon_left img{float: right; width: 30px; margin: 30px; margin-top: 45px;} .Content .icon_left:hover,.Content .icon_right:hover{ background: rgba(135,206,235,0.431373);} .Content .icon_right{ position: absolute; width: 150px; height: 150px; background: rgba(0,0,0,0.431373); top: 350px; right: -75px; cursor: pointer; border-radius: 100%;} .Content .icon_right img{float: left; width: 30px; margin: 30px; margin-top: 45px;}
/*兼容*/ /*--1920--*/ @media only screen and (max-width: 1920px) { .header .logo span{ margin-top: 17px;} .header .nav .mainnav span{ padding-top: 6px; margin-bottom: 18.5px;} }
/*--1600--*/ @media only screen and (max-width: 1600px) { .Content .Students .scroll{ height: 1000px;} .Content .Teachers .scroll{ height: 1100px;} }
/*--1440--*/ @media only screen and (max-width: 1440px) { .Content .Students .scroll{ height: 1050px;} .Content .Teachers .scroll{ height: 1200px;} }
/*--1366--*/ @media only screen and (max-width: 1366px) { .Content .Students .scroll{ height: 1100px;} .Content .Teachers .scroll{ height: 1300px;} }
/*--1190--*/ @media only screen and (max-width: 1190px) { html{ font-size: 52%;} .header .nav .Team{ width: 100px;} .header .nav .Project{ width: 90px;} .header .nav .Parts{ width: 115px;} .header .nav .Human_Practices{ width: 135px;} .header .nav .Awards{ width: 120px;} .header .nav .mainnav span{ margin-bottom: 22.5px; padding-top: 6px;} .Content .Students .scroll{ height: 1150px;} .Content .Students .scroll{ height: 1350px;} }
/*--1024--*/ @media only screen and (max-width: 1024px) { .Content .Students .scroll{ height: 1000px;} .Content .Teachers .scroll{ height: 1200px;} }