Created
October 3, 2016 16:22
-
-
Save jakeboyles/4a973e85a578f4a0bded5813cf21ccc9 to your computer and use it in GitHub Desktop.
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
header { | |
background-color:purple; | |
h1 { | |
font-size:200px; | |
} | |
} |
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
@import 'header.scss'; | |
$container-width : 20%; | |
.notification { | |
padding:10px; | |
color:black; | |
background-color:white; | |
} | |
.sidebar { | |
width:$container-width+20%; | |
} | |
.warning { | |
@extend .notification; | |
background-color:red; | |
} | |
.success { | |
@extend .notification; | |
background-color:green; | |
} | |
.failure { | |
@extend .notification; | |
background-color:red; | |
} | |
.neutrual { | |
@extend .notification; | |
margin-top:50px; | |
background-color:orange; | |
} | |
@mixin button($padding,$content,$radius,$backgroundColor){ | |
padding:$padding; | |
border-radius:$radius; | |
background-color:$backgroundColor; | |
&:before { | |
content:"THIS IS MY BUTTON"; | |
} | |
} | |
@mixin centerThis() { | |
margin:block; | |
margin:0px auto; | |
} | |
@mixin square($size,$color) { | |
width: $size; | |
height: $size; | |
background-color:$color; | |
} | |
.square { | |
@include square(25px,red); | |
} | |
.greenSquare { | |
@include square(100px,green); | |
@include centerThis(); | |
} | |
.btn { | |
@include button(10px,"Hello World",20px,red); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment