Advertisement
Guest User

Untitled

a guest
Dec 18th, 2014
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. // ----
  2. // Sass (v3.4.7)
  3. // Compass (v1.0.1)
  4. // Toolkit (v2.6.0)
  5. // ----
  6.  
  7. @import "toolkit";
  8.  
  9. @mixin static($mixin-name, $extend: true) {
  10. @if $extend == true {
  11. @include dynamic-extend($mixin-name) {
  12. @include static($mixin-name, false) {
  13. @content;
  14. };
  15. }
  16. }
  17. @else {
  18. @content;
  19. }
  20. }
  21.  
  22. @mixin button($color) {
  23. @include static('button') {
  24. border: 1px solid;
  25. border-radius: 5px;
  26. padding: .25em .5em;
  27. display: inline-block;
  28. color: #fff;
  29. text-decoration: none;
  30.  
  31. &:hover {
  32. cursor: pointer;
  33. }
  34. }
  35.  
  36. background-color: $color;
  37. border-color: mix(black, $color, 25%);
  38.  
  39. &:hover {
  40. background-color: mix(black, $color, 15%);
  41. border-color: mix(black, $color, 40%);
  42. }
  43. }
  44.  
  45. .button-red {
  46. @include button(#a63838);
  47. }
  48.  
  49. .button-blue {
  50. @include button(#462cab);
  51. }
  52.  
  53. .button-orange {
  54. @include button(#EDA93B);
  55. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement