Created
March 15, 2015 12:37
-
-
Save shuding/937e90760eb0f5fc2a7b to your computer and use it in GitHub Desktop.
STU homepage responsive CSS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #ClCache { | |
| display: none; | |
| } | |
| #wrapper { | |
| font-family: "Microsoft YaHei", sans-serif; | |
| font-size: 62.5%; | |
| width: 100%; | |
| background-color: #ebeff1; | |
| } | |
| #header_wrapper, | |
| #slide, | |
| #apps_entry, | |
| #footer_wrapper { | |
| width: 100%; | |
| } | |
| #top_bar { | |
| width: 100%; | |
| height: 12px; | |
| background-color: #34495e; | |
| position: absolute; | |
| top: 0; | |
| } | |
| #header { | |
| height: 156px; | |
| max-width: 940px; | |
| margin: auto; | |
| position: relative; | |
| } | |
| a { | |
| text-decoration: none; | |
| display: block; | |
| color: white; | |
| } | |
| .btn { | |
| margin-right: 39px; | |
| float: right; | |
| font-size: 1.4em; | |
| color: #7f8c8d; | |
| } | |
| #about_us, | |
| #register { | |
| margin-right: 0; | |
| } | |
| .btn span { | |
| padding-left: 11px; | |
| display: inline-block; | |
| } | |
| .btn:hover { | |
| position: relative; | |
| top: -1px; | |
| } | |
| .btn:active { | |
| position: relative; | |
| top: 1px; | |
| } | |
| #logo_header { | |
| margin-top: 62px; | |
| background: url(../image/logo_sprites.png) no-repeat 0 0; | |
| width: 281px; | |
| height: 44px; | |
| float: left; | |
| } | |
| #header_right { | |
| display: none; | |
| margin-top: 76px; | |
| float: right; | |
| width: 200px; | |
| } | |
| #register div.icon_header { | |
| background: url(../image/icon_sprites.png) no-repeat 0 0; | |
| width: 21px; | |
| height: 21px; | |
| float: left; | |
| } | |
| #login div.icon_header { | |
| background: url(../image/icon_sprites.png) no-repeat -23px 0; | |
| width: 20px; | |
| height: 19px; | |
| float: left; | |
| } | |
| .slide { | |
| height: 284px; | |
| width: 940px; | |
| margin: auto; | |
| position: relative; | |
| box-shadow: 0 2px 0 #c9cccd; | |
| border-radius: 7px; | |
| overflow: hidden; | |
| } | |
| .slide:active { | |
| box-shadow: none; | |
| top: 2px; | |
| } | |
| .slide a { | |
| width: 100%; | |
| height: 100%; | |
| position: relative; | |
| z-index: 1; | |
| } | |
| .slide:before { | |
| content: ''; | |
| height: 286px; | |
| width: 940px; | |
| position: absolute; | |
| left: 0; | |
| top: 0; | |
| -webkit-transition: background-color 0.2s ease; | |
| -moz-transition: background-color 0.2s ease; | |
| -ms-transition: background-color 0.2s ease; | |
| -o-transition: background-color 0.2s ease; | |
| transition: background-color 0.2s ease; | |
| } | |
| .slide:hover:before { | |
| background-color: rgba(255, 255, 255, 0.15); | |
| } | |
| #slide_1 { | |
| background: url(../image/zhanqing.png) no-repeat; | |
| } | |
| #apps_entry div#title { | |
| text-align: center; | |
| padding-top: 53px; | |
| padding-bottom: 32px; | |
| color: #bdc3c7; | |
| font-family: 'Microsoft YaHei'; | |
| } | |
| #apps_entry div#title p:first-child { | |
| font-size: 2.4em; | |
| margin: 0 0; | |
| color: #7f8c8d; | |
| } | |
| #apps_entry div#title p:last-child { | |
| font-size: 1.8em; | |
| margin: 0 0; | |
| } | |
| #apps { | |
| width: 960px; | |
| margin: auto; | |
| position: relative; | |
| } | |
| .app { | |
| height: 180px; | |
| float: left; | |
| margin-left: 10px; | |
| margin-right: 10px; | |
| margin-bottom: 22px; | |
| position: relative; | |
| } | |
| .app:hover img { | |
| position: relative; | |
| top: -1px; | |
| } | |
| .app.no_animation:hover img { | |
| top: 0; | |
| } | |
| .app:after { | |
| content: ''; | |
| height: 180px; | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| -webkit-transition: background-color 0.2s ease; | |
| -moz-transition: background-color 0.2s ease; | |
| -ms-transition: background-color 0.2s ease; | |
| -o-transition: background-color 0.2s ease; | |
| transition: background-color 0.2s ease; | |
| } | |
| .app:hover:after { | |
| background-color: rgba(255, 255, 255, 0.15); | |
| } | |
| .app.no_animation:hover:after { | |
| display: none; | |
| } | |
| .smallApp:after { | |
| width: 220px; | |
| } | |
| .middleApp:after { | |
| width: 300px; | |
| } | |
| .largeApp:after { | |
| width: 380px; | |
| } | |
| .app:active { | |
| top: 2px; | |
| } | |
| .app:active .app_bot { | |
| box-shadow: none; | |
| } | |
| .app .app_top { | |
| height: 180px; | |
| border-radius: 5px; | |
| } | |
| .app .app_top > a { | |
| z-index: 1; | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| height: 180px; | |
| width: 100%; | |
| } | |
| .app .app_content { | |
| position: absolute; | |
| top: 27px; | |
| left: 27px; | |
| margin: 0; | |
| font-size: 1.2em; | |
| color: white; | |
| } | |
| .app.lots_of_links .app_content p { | |
| position: relative; | |
| z-index: 2 | |
| ; | |
| } | |
| .app.lots_of_links .app_content p:hover { | |
| top: -1px; | |
| } | |
| .app_content h4 { | |
| font-size: 1.166666667em; | |
| margin-top: 0; | |
| margin-bottom: 0.6em; | |
| color: white; | |
| } | |
| .app_content p { | |
| margin: 0; | |
| padding-top: 0.2em; | |
| padding-bottom: 0.2em; | |
| } | |
| .app.lots_of_links .app_content p { | |
| display: inline-block; | |
| padding-bottom: 0.3em; | |
| } | |
| .app img { | |
| float: right; | |
| } | |
| .app .app_bot { | |
| height: 40px; | |
| width: 100%; | |
| position: absolute; | |
| right: 0; | |
| bottom: 0; | |
| /*background-color: rgba(50,50,50,0.2);*/ | |
| border-bottom-left-radius: 5px; | |
| border-bottom-right-radius: 5px; | |
| box-shadow: 0 2px 0 #c9cccd; | |
| } | |
| .app_bot p { | |
| font-size: 1.4em; | |
| color: white; | |
| float: right; | |
| margin-right: 20px; | |
| margin-top: 10px; | |
| } | |
| .smallApp { | |
| width: 220px; | |
| } | |
| .smallApp .app_content { | |
| width: 80px; | |
| } | |
| .middleApp { | |
| width: 300px; | |
| } | |
| .middleApp .app_content { | |
| width: 130px; | |
| } | |
| .largeApp { | |
| width: 380px; | |
| } | |
| .largeApp .app_content { | |
| width: 220px; | |
| } | |
| #app1 .app_top { | |
| background-color: #ffd006; | |
| } | |
| #app1 .app_bot { | |
| background-color: #f39c12; | |
| } | |
| #app1 img { | |
| width: 87px; | |
| height: 75.869451697px; | |
| margin-right: 17px; | |
| margin-top: 37px; | |
| } | |
| #app2 .app_top { | |
| background-color: #e74c3c; | |
| } | |
| #app2 .app_bot { | |
| background-color: #cd392b; | |
| } | |
| #app2 img { | |
| width: 80.776859504px; | |
| height: 81px; | |
| margin-right: 22px; | |
| margin-top: 32px; | |
| } | |
| #app3 .app_top { | |
| background-color: #1abc9c; | |
| } | |
| #app3 .app_bot { | |
| background-color: #16a085; | |
| } | |
| #app3 img { | |
| width: 92.712328767px; | |
| height: 90px; | |
| margin-right: 18px; | |
| margin-top: 25px; | |
| } | |
| #app4 .app_top { | |
| background-color: #2ecc71; | |
| } | |
| #app4 .app_bot { | |
| background-color: #27ae60; | |
| } | |
| #app4 img { | |
| width: 82px; | |
| height: 90.501672241px; | |
| margin-right: 23px; | |
| margin-top: 32px; | |
| } | |
| #app5 .app_top { | |
| background-color: #34495e; | |
| } | |
| #app5 .app_bot { | |
| background-color: #2c3e50; | |
| } | |
| #app5 img { | |
| width: 105.720858896px; | |
| height: 113px; | |
| margin-right: 7px; | |
| margin-top: 11px; | |
| } | |
| #app6 .app_top { | |
| background-color: #9b59b6; | |
| } | |
| #app6 .app_bot { | |
| background-color: #8e44ad; | |
| } | |
| #app6 img { | |
| width: 87.928270042px; | |
| height: 91px; | |
| margin-right: 12px; | |
| margin-top: 38px; | |
| } | |
| #app7 .app_top { | |
| background-color: #3498db; | |
| } | |
| #app7 .app_bot { | |
| background-color: #2980b9; | |
| } | |
| #app7 img { | |
| height: 82px; | |
| margin-right: 12px; | |
| margin-top: 33px; | |
| } | |
| #app8 .app_top { | |
| background-color: #9b59b6; | |
| } | |
| #app8 .app_bot { | |
| background-color: #8e44ad; | |
| } | |
| #app8 img { | |
| height: 82px; | |
| margin-right: 22px; | |
| margin-top: 33px; | |
| } | |
| #app_entry_bot { | |
| clear: both; | |
| height: 75px; | |
| } | |
| #footer_wrapper { | |
| background-color: #2c3e50; | |
| } | |
| #footer { | |
| height: 186px; | |
| max-width: 940px; | |
| position: relative; | |
| margin: auto; | |
| } | |
| #footer_left { | |
| margin-top: 42px; | |
| margin-left: 20px; | |
| float: left; | |
| } | |
| #footer_right { | |
| margin-top: 58px; | |
| margin-right: 20px; | |
| float: right; | |
| } | |
| #logo_footer { | |
| background: url(../image/logo_sprites.png) no-repeat 0 -47px; | |
| width: 51px; | |
| height: 36px; | |
| float: left; | |
| margin-top: 13px; | |
| margin-right: 35px; | |
| } | |
| #footer .btn { | |
| color: #ecf0f1; | |
| } | |
| #copyright { | |
| float: left; | |
| line-height: 0.8em; | |
| font-size: 1.4em; | |
| color: #ecf0f1; | |
| margin-top: -12px; | |
| } | |
| #about_us .icon_footer { | |
| background: url(../image/icon_sprites.png) no-repeat -45px 0; | |
| width: 21px; | |
| height: 21px; | |
| float: left; | |
| } | |
| #join_us .icon_footer { | |
| background: url(../image/icon_sprites.png) no-repeat -68px 0; | |
| width: 21px; | |
| height: 21px; | |
| float: left; | |
| } | |
| #contact_us .icon_footer { | |
| background: url(../image/icon_sprites.png) no-repeat -91px 0; | |
| width: 23px; | |
| height: 17px; | |
| float: left; | |
| margin-top: 2px; | |
| } | |
| #header_right a, | |
| #footer_right a { | |
| display: block; | |
| } | |
| /*************TEMPORARY******************/ | |
| #app4 { | |
| -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)"; | |
| /*IE8*/ | |
| filter: alpha(opacity=30); | |
| /*IE5、IE5.5、IE6、IE7*/ | |
| opacity: 0.3; | |
| /*Opera9.0+、Firefox1.5+、Safari、Chrome*/ | |
| } | |
| .meter { | |
| width: 200px; | |
| height: 10px; | |
| padding: 3px; | |
| top: 290px; | |
| left: 100px; | |
| } | |
| .meter:after { | |
| content: 'Under Construction'; | |
| font-size: 2.1em; | |
| color: #4a4f2e; | |
| position: absolute; | |
| top: -30px; | |
| } | |
| .meter div { | |
| width: 85%; | |
| } | |
| /*.clearfix:after { | |
| content: "."; | |
| display: block; | |
| clear: both; | |
| visibility: hidden; | |
| line-height: 0; | |
| height: 0; | |
| } | |
| .clearfix { | |
| display: inline-block; | |
| } | |
| html[xmlns] .clearfix { | |
| display: block; | |
| } | |
| * html .clearfix { | |
| height: 1%; | |
| }*/ | |
| #header .temporary { | |
| position: absolute; | |
| top: 75px; | |
| right: 0; | |
| } | |
| #header p { | |
| font-size: 1.4em; | |
| line-height: 0.4em; | |
| text-align: right; | |
| margin-top: 0; | |
| color: #7f8c8d; | |
| } | |
| #header p:first-child { | |
| font-weight: bold; | |
| } | |
| @media screen and (max-width: 960px) { | |
| #logo_header { | |
| margin-left: 20px; | |
| } | |
| #header .temporary { | |
| right: 20px; | |
| } | |
| .slide { | |
| width: calc(100% - 20px); | |
| margin: 0 10px; | |
| } | |
| #apps { | |
| width: 100%; | |
| } | |
| .smallApp, .app { | |
| width: calc(100% - 20px); | |
| } | |
| .app_bot p { | |
| float: left; | |
| margin-left: 20px; | |
| } | |
| .smallApp:after, .app:after { | |
| width: 100%; | |
| } | |
| #footer_right { | |
| float: left; | |
| margin-top: 10px; | |
| } | |
| } | |
| @media screen and (max-width: 690px) { | |
| #header .temporary { | |
| display: none; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment