Created
May 9, 2012 21:13
-
-
Save agmcleod/2648886 to your computer and use it in GitHub Desktop.
scss example for friend
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
| html, body, div, span, applet, object, iframe, | |
| h1, h2, h3, h4, h5, h6, p, blockquote, pre, | |
| a, abbr, acronym, address, big, cite, code, | |
| del, dfn, em, img, ins, kbd, q, s, samp, | |
| small, strike, strong, sub, sup, tt, var, | |
| b, u, i, center, | |
| dl, dt, dd, ol, ul, li, | |
| fieldset, form, label, legend, | |
| table, caption, tbody, tfoot, thead, tr, th, td, | |
| article, aside, canvas, details, embed, | |
| figure, figcaption, footer, header, hgroup, | |
| menu, nav, output, ruby, section, summary, | |
| time, mark, audio, video { | |
| margin: 0; | |
| padding: 0; | |
| border: 0; | |
| font-size: 100%; | |
| font: inherit; | |
| vertical-align: baseline; | |
| } | |
| body { | |
| line-height: 1; | |
| } | |
| ol, ul { | |
| list-style: none; | |
| } | |
| table { | |
| border-collapse: collapse; | |
| border-spacing: 0; | |
| } | |
| caption, th, td { | |
| text-align: left; | |
| font-weight: normal; | |
| vertical-align: middle; | |
| } | |
| q, blockquote { | |
| quotes: none; | |
| } | |
| q:before, q:after, blockquote:before, blockquote:after { | |
| content: ""; | |
| content: none; | |
| } | |
| a img { | |
| border: none; | |
| } | |
| article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section, summary { | |
| display: block; | |
| } | |
| body { | |
| font-family: sans-serif; | |
| color: #2a2a2a; | |
| font-size: 14px; | |
| line-height: 20px; | |
| background: white url(../images/toptile.png) repeat-x; | |
| } | |
| #main { | |
| max-width: 640px; | |
| margin: 0 auto; | |
| background: white url(../images/hero.png) no-repeat top center; | |
| } | |
| .top, .hero, nav, .body { | |
| width: 100%; | |
| margin: 0 auto; | |
| } | |
| .top { | |
| height: 77px; | |
| background: transparent url(../images/top.png) no-repeat; | |
| } | |
| .top a { | |
| display: block; | |
| width: 100%; | |
| height: 100%; | |
| } | |
| .hero { | |
| height: 214px; | |
| position: relative; | |
| z-index: 2; | |
| } | |
| .hero .cta { | |
| background-color: #fff; | |
| background-color: rgba(255, 255, 255, 0.6); | |
| border: 1px solid #d0893c; | |
| -moz-border-radius: 5px; | |
| -webkit-border-radius: 5px; | |
| -o-border-radius: 5px; | |
| -ms-border-radius: 5px; | |
| -khtml-border-radius: 5px; | |
| border-radius: 5px; | |
| width: 50%; | |
| margin: 20px 5% 0 0; | |
| float: right; | |
| position: relative; | |
| padding: 25px; | |
| } | |
| .hero .cta #point { | |
| position: absolute; | |
| top: 80%; | |
| left: 40%; | |
| } | |
| .hero .cta h3 { | |
| font-size: 2.7em; | |
| line-height: 1.2em; | |
| color: #093575; | |
| } | |
| nav { | |
| position: relative; | |
| z-index: 1; | |
| } | |
| nav .button { | |
| width: 100%; | |
| overflow: hidden; | |
| padding: 10px 0; | |
| background-color: #a4b0b7; | |
| *zoom: 1; | |
| filter: progid:DXImageTransform.Microsoft.gradient(gradientType=0, startColorstr='#FFA4B0B7', endColorstr='#FF506270'); | |
| background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(4%, #a4b0b7), color-stop(100%, #506270)); | |
| background-image: -webkit-linear-gradient(top, #a4b0b7 4%, #506270 100%); | |
| background-image: -moz-linear-gradient(top, #a4b0b7 4%, #506270 100%); | |
| background-image: -o-linear-gradient(top, #a4b0b7 4%, #506270 100%); | |
| background-image: -ms-linear-gradient(top, #a4b0b7 4%, #506270 100%); | |
| background-image: linear-gradient(top, #a4b0b7 4%, #506270 100%); | |
| } | |
| nav .button img { | |
| float: right; | |
| margin-right: 15px; | |
| } | |
| nav .button a { | |
| color: #fff; | |
| text-transform: uppercase; | |
| text-decoration: none; | |
| padding-left: 20px; | |
| } | |
| .target { | |
| padding: 20px; | |
| } | |
| .target ul { | |
| padding-left: 20px; | |
| } | |
| .target ul li { | |
| font-size: 1.2em; | |
| line-height: 1.4em; | |
| margin: 5px 0; | |
| font-weight: bold; | |
| } | |
| .target ul li a { | |
| text-decoration: underline; | |
| color: #1f2328; | |
| } | |
| .body { | |
| padding-top: 10px; | |
| } | |
| .body p, .body h1 { | |
| margin: 10px 15px; | |
| } | |
| .body p { | |
| color: #1f2328; | |
| } | |
| h1 { | |
| color: #093575; | |
| font-size: 1.5em; | |
| font-weight: bold; | |
| } | |
| @media screen and (max-width:550px) { | |
| .hero .cta { | |
| width: 70%; | |
| padding: 10px; | |
| } | |
| .hero .cta h3 { | |
| font-size: 2.1em; | |
| } | |
| } | |
| @media screen and (max-width:360px) { | |
| body { | |
| background: #fff; | |
| } | |
| #main { | |
| background: transparent url(../images/hero_half.png) no-repeat top center; | |
| } | |
| .top { | |
| background: transparent url(../images/top_half.png) no-repeat; | |
| height: 54px; | |
| } | |
| .hero { | |
| height: 104px; | |
| } | |
| .hero .cta { | |
| margin-top: 10px; | |
| width: 42%; | |
| padding: 10px 15px; | |
| margin-right: 3%; | |
| } | |
| .hero .cta h3 { | |
| font-size: 1.2em; | |
| } | |
| .hero .cta #point { | |
| width: 55px; | |
| } | |
| nav img { | |
| width: 15px; | |
| } | |
| } |
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"; | |
| $font-color: #2a2a2a; | |
| $font-family: sans-serif; | |
| $base-font-size: 14px; | |
| $base-line-height: 20px; | |
| $black: #1f2328; | |
| $blue: #093575; | |
| $orange: #d0893c; | |
| $max: 640px; | |
| @include global-reset; | |
| body { | |
| font-family: $font-family; | |
| color: $font-color; | |
| font-size:$base-font-size; | |
| line-height:$base-line-height; | |
| background:white url(../images/toptile.png) repeat-x; | |
| } | |
| #main { | |
| max-width:$max; | |
| margin:0 auto; | |
| background:white url(../images/hero.png) no-repeat top center; | |
| } | |
| .top, .hero, nav, .body { | |
| width:100%; | |
| margin:0 auto; | |
| } | |
| .top { | |
| height:77px; | |
| background:transparent url(../images/top.png) no-repeat; | |
| a { | |
| display:block; | |
| width:100%; | |
| height:100%; | |
| } | |
| } | |
| .hero { | |
| height:214px; | |
| position:relative; | |
| z-index:2; | |
| .cta { | |
| background-color:#fff; | |
| background-color:rgba(255,255,255,0.6); | |
| border:1px solid $orange; | |
| @include border-radius(5px); | |
| width:50%; | |
| margin:20px 5% 0 0; | |
| float:right; | |
| position:relative; | |
| padding:25px; | |
| #point { | |
| position:absolute; | |
| top:80%; | |
| left:40%; | |
| } | |
| h3 { | |
| font-size:2.7em; | |
| line-height:1.2em; | |
| color:$blue; | |
| } | |
| } | |
| } | |
| nav { | |
| position:relative; | |
| z-index:1; | |
| .button { | |
| width:100%; | |
| overflow:hidden; | |
| padding:10px 0; | |
| background-color: #a4b0b7; // Old browsers | |
| @include filter-gradient(#a4b0b7, #506270, vertical); // IE6-9 | |
| @include background-image(linear-gradient(top, #a4b0b7 4%,#506270 100%)); | |
| img { | |
| float:right; | |
| margin-right:15px; | |
| } | |
| a { | |
| color:#fff; | |
| text-transform:uppercase; | |
| text-decoration:none; | |
| padding-left:20px; | |
| } | |
| } | |
| } | |
| .target { | |
| padding:20px; | |
| ul { | |
| padding-left:20px; | |
| li { | |
| font-size:1.2em; | |
| line-height:1.4em; | |
| margin:5px 0; | |
| font-weight:bold; | |
| a { | |
| text-decoration:underline; | |
| color:$black; | |
| } | |
| } | |
| } | |
| } | |
| .body { | |
| padding-top:10px; | |
| p, h1 { | |
| margin:10px 15px; | |
| } | |
| p { | |
| color:$black; | |
| } | |
| } | |
| h1 { | |
| color:$blue; | |
| font-size:1.5em; | |
| font-weight:bold; | |
| } | |
| @media screen and (max-width:550px) { | |
| .hero { | |
| .cta { | |
| width:70%; | |
| padding:10px; | |
| h3 { | |
| font-size:2.1em; | |
| } | |
| } | |
| } | |
| } | |
| @media screen and (max-width:360px) { | |
| body { | |
| background:#fff; | |
| } | |
| #main { | |
| background:transparent url(../images/hero_half.png) no-repeat top center; | |
| } | |
| .top { | |
| background:transparent url(../images/top_half.png) no-repeat; | |
| height:54px; | |
| } | |
| .hero { | |
| height:104px; | |
| .cta { | |
| margin-top:10px; | |
| width:42%; | |
| padding:10px 15px; | |
| margin-right:3%; | |
| h3 { | |
| font-size:1.2em; | |
| } | |
| #point { | |
| width:55px; | |
| } | |
| } | |
| } | |
| nav img { | |
| width:15px; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment