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
| ul.beveled | |
| - 4.times do | |
| li List item |
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
| ul.beveled { | |
| background-color: #efefef; /* any color darker than white */ | |
| list-style-type: none; | |
| margin: 0; | |
| } | |
| ul.beveled li:not(:first-of-type) { | |
| border-top: 1px solid rgba(255,255,255, 0.2; | |
| } | |
| ul.beveled li:not(:last-of-type) { |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <style> | |
| html, body, div { margin: 0; padding: 0; position: fixed; top: 0; right: 0; bottom: 0; left: 0; height: 100%; width: 100%; } | |
| div { display: table; text-align: center; } | |
| img { display: table-cell; vertical-align: middle; position: relative; } | |
| </style> | |
| </head> | |
| <body> |
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
| var github = (function(){ | |
| function render(target, repos){ | |
| var i = 0, fragment = '', t = $(target)[0]; | |
| for(i = 0; i < repos.length; i++) { | |
| fragment += '<li><a href="'+repos[i].html_url+'">'+repos[i].name+'</a><p>'+repos[i].description+'</p></li>'; | |
| } | |
| t.innerHTML = fragment; | |
| } | |
| return { |
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
| // simple sample _partial.scss file. | |
| // this partial only needs to apply positional style | |
| // because all visual styles are driven by @mixins from a controlled source. | |
| .modal.form { | |
| form { | |
| p { | |
| display: inline-block; | |
| width: 50%; | |
| margin: 10px 0; |
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
| // simple sample of base elements | |
| // as this file grows, break out form-elements, buttons, etc. | |
| body { | |
| @include font-sans-serif; | |
| padding: 10px 20px; | |
| font-size: $base-font-size; | |
| } | |
| a { | |
| color: $blackblue; |
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
| // save your sanity with box-sizing border-box | |
| * { @include box-sizing( border-box ); } |
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
| @mixin box-shadow( $shadow ) { | |
| -webkit-box-shadow: $shadow; | |
| -moz-box-shadow: $shadow; | |
| box-shadow: $shadow; | |
| } | |
| @mixin linear-gradient( $start, $stop1, $stop2 ) { | |
| background-image: -webkit-linear-gradient( $start, $stop1, $stop2 ); | |
| background-image: -moz-linear-gradient( $start, $stop1, $stop2 ); | |
| background-image: -ms-linear-gradient( $start, $stop1, $stop2 ); | |
| background-image: -o-linear-gradient( $start, $stop1, $stop2 ); |
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
| // let's chain our @mixin linear-gradient from _mixins.scss | |
| // and drive the colors from _colors.scss | |
| @mixin blue-gradient { | |
| @include linear-gradient( top, $lightblue, $darkblue ); | |
| &:hover { @include linear-gradient( top, lighten($lightblue, 10%), $darkblue ); | |
| &:active { background: $darkblue; } | |
| } |