Created
May 18, 2015 16:02
-
-
Save theeltahir/863f4fec81f859458447 to your computer and use it in GitHub Desktop.
a precess production
This file contains 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 | |
//defines complex variables | |
@mixin shadow-original{ | |
box-shadow: 1px 1px 0px #ddd; | |
text-shadow: 1px 1px 1px #000; | |
} | |
@mixin shadow($offset){ | |
box-shadow: $offset $offset 0px #ddd; | |
text-shadow: $offset $offset $offset #000; | |
} | |
//@include | |
//calls/implements mixins | |
.box{ | |
@include shadow(2px); | |
} | |
.bigger-box{ | |
@include shadow(2px); | |
} | |
//@extend | |
.square{ | |
width: 100px; | |
height: 100px; | |
background: blue; | |
} | |
.circle{ | |
@extend .square; | |
border-radius: 100%; | |
} |
This file contains 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
.box { | |
box-shadow: 2px 2px 0px #dddddd; | |
text-shadow: 2px 2px 2px black; | |
} | |
.bigger-box { | |
box-shadow: 2px 2px 0px #dddddd; | |
text-shadow: 2px 2px 2px black; | |
} | |
.square, .circle { | |
width: 100px; | |
height: 100px; | |
background: blue; | |
} | |
.circle { | |
border-radius: 100%; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment