Created
July 18, 2014 06:26
-
-
Save naoyeye/10bb8402cbcaf2de4b56 to your computer and use it in GitHub Desktop.
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
| @import "compass/utilities/sprites"; | |
| @import "compass"; | |
| @import "compass/css3"; | |
| @import "reset"; | |
| @import "basic"; | |
| @import "header"; | |
| @import "footer"; | |
| @import "card"; | |
| @import "badge"; | |
| @import "tag-nav"; | |
| @import "crumb"; | |
| // ================= | |
| // old award style | |
| // ================= | |
| .navigations { | |
| max-width: 940px; | |
| _width: 940px; | |
| margin: 10px auto; | |
| padding: 10px 0; | |
| a { | |
| float: left; | |
| font-size:0.875em; | |
| overflow: hidden; | |
| white-space: nowrap; | |
| text-overflow: ellipsis; | |
| max-width: 200px; | |
| margin-left: 10px; | |
| display: inline-block; | |
| color: #666; | |
| &:hover{ | |
| color: #38d; | |
| } | |
| } | |
| .next { | |
| margin-right: 10px; | |
| float: right; | |
| } | |
| } | |
| .media-partners { | |
| margin: 20px auto; | |
| max-width: 940px; | |
| *width: 940px; | |
| .title { | |
| text-align: center; | |
| font-size: 1em; | |
| } | |
| .gradient { | |
| margin: 15px auto; | |
| width: 80%; | |
| height: 1px; | |
| background: -webkit-linear-gradient(left, rgba(192,192,192,0) 0%, #d0d0d0, rgba(192,192,192,0) 100%); | |
| } | |
| } | |
| .card { | |
| height: 115px; | |
| *width: 290px; | |
| .icon-wrap { | |
| height: 68px; | |
| overflow: hidden; | |
| } | |
| .comment{ | |
| height: 40px; | |
| } | |
| .app-desc{ | |
| margin: 15px 15px 5px 88px; | |
| .gooddev { | |
| *margin-right: 4px; | |
| } | |
| } | |
| } | |
| .qr-card{ | |
| .qrcode{ | |
| width: 90px; | |
| position: absolute; | |
| right: 11px; | |
| top: 13px; | |
| } | |
| .comment{ | |
| padding-right: 80px; | |
| height: 60px; | |
| overflow: hidden; | |
| } | |
| } | |
| .card { | |
| .app-desc { | |
| .tag { | |
| margin-right: 0; | |
| } | |
| span.name { | |
| &:hover{ | |
| color:#333; | |
| text-decoration: none; | |
| } | |
| } | |
| .meta { | |
| margin-top: 5px; | |
| span{ | |
| color:#ccc; | |
| } | |
| } | |
| .comment { | |
| margin-top: 5px; | |
| font-size: 12px; | |
| color:#999; | |
| line-height: 1.5; | |
| } | |
| } | |
| .install-btn { | |
| top:8px; | |
| } | |
| } | |
| @media screen and (max-width: 674px) { | |
| .navigations { | |
| text-align: center; | |
| a, .next { | |
| float: none; | |
| margin:5px 0; | |
| } | |
| } | |
| } | |
| // ================= | |
| // new award style | |
| // by hanjiyun | |
| // 2014-07-08 | |
| // ================= | |
| body { | |
| min-width: 300px; | |
| } | |
| // public | |
| #main h1, | |
| #main h2, | |
| #main h3, | |
| #main h4 { | |
| line-height: 1.78; | |
| } | |
| #main h1 { | |
| font-size: 40px; | |
| font-weight: 700; | |
| } | |
| #main h2 { | |
| font-size: 30px; | |
| font-weight: 500; | |
| } | |
| #main h3 { | |
| font-size: 20px; | |
| font-weight: 500; | |
| } | |
| #main h4 { | |
| font-size: 14px; | |
| font-weight: 200; | |
| } | |
| #main p { | |
| margin: 0; | |
| } | |
| .hide { | |
| display: none !important; | |
| } | |
| .inline-block { | |
| @include inline-block; | |
| } | |
| .show { | |
| display: block !important; | |
| } | |
| .fl-left { | |
| float: left; | |
| } | |
| .fl-right { | |
| float: right; | |
| } | |
| .oh { | |
| overflow: hidden; | |
| } | |
| // layout | |
| #main { | |
| min-height: 500px; | |
| margin: 10px; | |
| background: #fff; | |
| } | |
| .award-container { | |
| width: 800px; | |
| margin: 0 auto; | |
| } | |
| // head | |
| #award-head { | |
| position: relative; | |
| height: 260px; | |
| margin: 0 auto; | |
| background: #ddd; | |
| overflow: hidden; | |
| z-index: 0; | |
| border-bottom: none; | |
| } | |
| #cover-wrap { | |
| position: absolute; | |
| top: 0; | |
| right: 0; | |
| bottom: 0; | |
| left: 0; | |
| overflow: hidden; | |
| img { | |
| display: block; | |
| width: 100%; | |
| } | |
| } | |
| #header-content { | |
| @include background-image(linear-gradient(transparent, rgba(0,0,0, 0.3))); | |
| position: absolute; | |
| bottom: 0; | |
| z-index: 2; | |
| width: 100%; | |
| padding: 0 0 60px 0; | |
| h1, | |
| h2 { | |
| @include text-shadow(1px 1px 1px #222); | |
| color: #fff; | |
| outline: none; | |
| line-height: 1.2; | |
| } | |
| h1 { | |
| margin-bottom: 20px; | |
| font-size: 60px; | |
| } | |
| h2 { | |
| font-weight: normal; | |
| } | |
| } | |
| // app box | |
| #app-box { | |
| position: relative; | |
| padding: 20px 0 0 0; | |
| #app-box-inner { | |
| @include border-radius(5px); | |
| padding: 15px 5px; | |
| background: #f5f5f5; | |
| overflow: hidden; | |
| } | |
| .app-icon-wrap { | |
| float: left; | |
| width: 100px; | |
| margin-left: 10px; | |
| text-align: center; | |
| img { | |
| display: block; | |
| } | |
| } | |
| .app-info { | |
| margin: 0 0 0 140px; | |
| height: 100px; | |
| h3 { | |
| line-height: 1.7; | |
| outline: none; | |
| } | |
| h3 a { | |
| color: #444; | |
| } | |
| h3 a:hover { | |
| color: #4cc9b6; | |
| } | |
| p { | |
| min-height: 23px; | |
| padding: 5px 0; | |
| font-size: 14px; | |
| outline: none; | |
| } | |
| } | |
| .num-list { | |
| position: absolute; | |
| top: 60px; | |
| right: 0; | |
| .item { | |
| @include inline-block(); | |
| height: 55px; | |
| padding: 0 20px; | |
| border-right: 1px solid #eee; | |
| text-align: center; | |
| } | |
| i { | |
| font-size: 18px; | |
| font-weight: 400; | |
| font-style: normal; | |
| } | |
| b { | |
| display: block; | |
| color: #999; | |
| font-weight: 400; | |
| font-style: normal; | |
| font-size: 12px; | |
| } | |
| .item.last { | |
| border: none; | |
| } | |
| } | |
| .install-btn { | |
| @include inline-block(); | |
| position: static; | |
| height: 30px; | |
| line-height: 30px; | |
| } | |
| .detail-btn { | |
| display: none; | |
| float: right; | |
| height: 30px; | |
| padding: 0 10px; | |
| margin-top: 14px; | |
| letter-spacing: 1px; | |
| font-size: .875em; | |
| text-align: center; | |
| line-height: 30px; | |
| color: #fff; | |
| background: #4cc9b6; | |
| } | |
| .screenshot-wrap { | |
| font-size: 0; | |
| padding: 30px 10px 0 10px; | |
| clear: both; | |
| h4 { | |
| font-size: 20px; | |
| outline: none; | |
| } | |
| .screenshot-list-wrap { | |
| width: 100%; | |
| overflow: auto; | |
| background: #fff; | |
| } | |
| .screenshot-list { | |
| padding: 10px 0; | |
| } | |
| li { | |
| @include inline-block(); | |
| margin-right: 5px; | |
| margin-right: 2px\9; /*IE 678*/ | |
| *zoom: 1; | |
| } | |
| li:last-child { | |
| margin-right: 0; | |
| } | |
| img { | |
| display: block; | |
| height: 333px; | |
| } | |
| } | |
| } | |
| // article | |
| #article-content-wrap { | |
| position: relative; | |
| } | |
| #article-content { | |
| padding-top: 30px; | |
| min-height: 200px; | |
| font-size: 18px; | |
| line-height: 1.7; | |
| color: #333; | |
| p { | |
| margin-bottom: 26px; | |
| } | |
| } | |
| .e-card { | |
| display: none; | |
| .author-avatar { | |
| float: left; | |
| width: 56px; | |
| img { | |
| @include border-radius(50%); | |
| display: block; | |
| width: 56px; | |
| height: 56px; | |
| } | |
| } | |
| .box-info { | |
| min-width: 180px; | |
| margin-left: 70px; | |
| } | |
| .author-name { | |
| display: block; | |
| padding: 5px 0; | |
| font-size: 14px; | |
| word-break: break-word; | |
| } | |
| .comment-box { | |
| @include inline-block(); | |
| padding: 15px; | |
| background: #fff; | |
| margin-bottom: 5px; | |
| } | |
| p.comment-content { | |
| margin-top: 10px; | |
| margin-bottom: 0 !important; | |
| padding-top: 10px; | |
| border-top: 1px solid #eee; | |
| font-size: 14px; | |
| outline: none; | |
| font-weight: normal; | |
| } | |
| .picture-box { | |
| @include inline-block(); | |
| padding: 5px; | |
| border: 1px solid #eee; | |
| background: #fff; | |
| img { | |
| display: block; | |
| max-width: 100%; | |
| width: 100%; | |
| } | |
| } | |
| .interview-box { | |
| padding: 15px 15px 15px 0; | |
| section { | |
| overflow: hidden; | |
| } | |
| p { | |
| margin-bottom: 0; | |
| font-size: 14px; | |
| } | |
| } | |
| } | |
| .comment-tpl { | |
| @include inline-block(); | |
| position: relative; | |
| } | |
| .picture-tpl-wrap { | |
| text-align: center; | |
| } | |
| .picture-tpl { | |
| margin: 0 auto; | |
| } | |
| .picture-tpl, | |
| .interview-tpl { | |
| position: relative; | |
| } | |
| .interview-box-wrap { | |
| outline: none; | |
| .author-avatar { | |
| width: 100px; | |
| padding-right: 15px; | |
| text-align: center; | |
| & > a { | |
| display: block; | |
| width: 56px; | |
| margin: 0 auto; | |
| } | |
| } | |
| .author-name { | |
| padding: 10px 0; | |
| } | |
| .box-info { | |
| min-height: 85px; | |
| margin-bottom: 15px; | |
| padding-left: 15px; | |
| border-left: 4px solid #eee; | |
| margin-left: 120px; | |
| &.last { | |
| margin-bottom: 0; | |
| } | |
| } | |
| } | |
| // article footer | |
| .footer { | |
| width: 940px; | |
| margin: 0 auto; | |
| padding: 20px 0 30px 0; | |
| background: #eee; | |
| color: #888; | |
| .footer-inner { | |
| padding: 0 10px; | |
| } | |
| h3 { | |
| font-size: 24px; | |
| padding: 10px 0; | |
| } | |
| p { | |
| font-size: 14px; | |
| line-height: 1.78; | |
| } | |
| ul { | |
| padding-top: 10px; | |
| } | |
| li { | |
| padding: 10px 0 0 0; | |
| font-size: 14px; | |
| } | |
| } | |
| @import "award-responsive"; | |
| @import "award-mobile"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment