Skip to content

Instantly share code, notes, and snippets.

@jakeboyles
Created October 3, 2016 16:22
Show Gist options
  • Save jakeboyles/3f3d266cb00fc8fb566352192e635760 to your computer and use it in GitHub Desktop.
Save jakeboyles/3f3d266cb00fc8fb566352192e635760 to your computer and use it in GitHub Desktop.
@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