Created
February 25, 2015 22:34
-
-
Save bpanicker13/5e68b07f68878615e25d to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
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
| <div class='container'> | |
| <h1>SASS - Mixins with defaults</h1> | |
| <h2><span>Basic</span> - Getting Started</h2> | |
| <p id='mypara'>Lorem ipsum dolor sit amet, consectetur | |
| adipiscing elit, sed do eiusmod tempor <br> | |
| incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis | |
| nostrud exercitation ullamco laboris nisi</p> | |
| <p id='mypara1'>Lorem ipsum dolor sit amet, consectetur | |
| adipiscing elit, sed do eiusmod tempor | |
| incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis | |
| nostrud exercitation ullamco laboris nisi</p> | |
| <div class='footer'> | |
| <p>© Copyright</p> | |
| </div> | |
| </div><!--container--> |
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
| // ---- | |
| // Sass (v3.4.12) | |
| // Compass (v1.0.3) | |
| // ---- | |
| $Color1: navy; // named color value | |
| $Color2: #ee1289; // hex color value | |
| $Color1_light: lighten($Color1, 20%); | |
| $StringVar: " with Sass"; // string variable | |
| $FontSize: 18px; // numeric value | |
| $border: 1px solid $Color2; // multi-value variable | |
| $padding: 15px 15px 15px 15px; // multi-value variable | |
| $ten: 10px; | |
| @mixin radius ($radius: 20px) { | |
| -webkit-border-radius:$radius; | |
| -moz-border-radius: $radius; | |
| -o-border-radius: $radius; | |
| -ms-border-radius: $radius; | |
| border-radius: $radius; | |
| } | |
| @mixin box-shadow($left:0, $top:2px, $blur:2px, $color:#000, $inset:"") { | |
| -webkit-box-shadow:$left $top $blur $color #{$inset}; | |
| -moz-box-shadow:$left $top $blur $color #{$inset}; | |
| -o-box-shadow:$left $top $blur $color #{$inset}; | |
| -ms-box-shadow:$left $top $blur $color #{$inset}; | |
| box-shadow:$left $top $blur $color #{$inset}; | |
| } | |
| @mixin clear { | |
| clear:both; | |
| } | |
| @mixin two-column { | |
| float: left; | |
| padding:$ten; | |
| width: 430/960*100%; | |
| } | |
| .container { | |
| width: 960px; | |
| margin: 0 auto; | |
| padding: $padding; | |
| color: $Color2; | |
| h1 { | |
| font-size: $FontSize*3; | |
| padding: $ten+10; | |
| color: $Color1_light; | |
| border: $border; | |
| text-align: center; | |
| @include radius; | |
| @include box-shadow(5px, 5px, 3px, $Color2); | |
| } | |
| h2 { | |
| font-size: $FontSize*2; | |
| span { | |
| font-style: italic; | |
| &:before { | |
| content: '- '; | |
| } | |
| } | |
| &:after { | |
| content: $StringVar; | |
| } | |
| } | |
| #mypara { | |
| color: $Color1; | |
| @include two-column | |
| } | |
| #mypara1 { | |
| @include two-column | |
| } | |
| .footer { | |
| color: $Color1; | |
| border: $border; | |
| text-align: center; | |
| @include radius; | |
| @include clear; | |
| p { | |
| font-size: $FontSize/1.5; | |
| } | |
| } | |
| } | |
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
| .container { | |
| width: 960px; | |
| margin: 0 auto; | |
| padding: 15px 15px 15px 15px; | |
| color: #ee1289; | |
| } | |
| .container h1 { | |
| font-size: 54px; | |
| padding: 20px; | |
| color: #0000e6; | |
| border: 1px solid #ee1289; | |
| text-align: center; | |
| -webkit-border-radius: 20px; | |
| -moz-border-radius: 20px; | |
| -o-border-radius: 20px; | |
| -ms-border-radius: 20px; | |
| border-radius: 20px; | |
| -webkit-box-shadow: 5px 5px 3px #ee1289 ; | |
| -moz-box-shadow: 5px 5px 3px #ee1289 ; | |
| -o-box-shadow: 5px 5px 3px #ee1289 ; | |
| -ms-box-shadow: 5px 5px 3px #ee1289 ; | |
| box-shadow: 5px 5px 3px #ee1289 ; | |
| } | |
| .container h2 { | |
| font-size: 36px; | |
| } | |
| .container h2 span { | |
| font-style: italic; | |
| } | |
| .container h2 span:before { | |
| content: '- '; | |
| } | |
| .container h2:after { | |
| content: " with Sass"; | |
| } | |
| .container #mypara { | |
| color: navy; | |
| float: left; | |
| padding: 10px; | |
| width: 44.79167%; | |
| } | |
| .container #mypara1 { | |
| float: left; | |
| padding: 10px; | |
| width: 44.79167%; | |
| } | |
| .container .footer { | |
| color: navy; | |
| border: 1px solid #ee1289; | |
| text-align: center; | |
| -webkit-border-radius: 20px; | |
| -moz-border-radius: 20px; | |
| -o-border-radius: 20px; | |
| -ms-border-radius: 20px; | |
| border-radius: 20px; | |
| clear: both; | |
| } | |
| .container .footer p { | |
| font-size: 12px; | |
| } |
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
| <div class='container'> | |
| <h1>SASS - Mixins with defaults</h1> | |
| <h2><span>Basic</span> - Getting Started</h2> | |
| <p id='mypara'>Lorem ipsum dolor sit amet, consectetur | |
| adipiscing elit, sed do eiusmod tempor <br> | |
| incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis | |
| nostrud exercitation ullamco laboris nisi</p> | |
| <p id='mypara1'>Lorem ipsum dolor sit amet, consectetur | |
| adipiscing elit, sed do eiusmod tempor | |
| incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis | |
| nostrud exercitation ullamco laboris nisi</p> | |
| <div class='footer'> | |
| <p>© Copyright</p> | |
| </div> | |
| </div><!--container--> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment