_buttons.scss 890 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. // buttons
  2. // ======================================================================
  3. // on the how and why of @extend, read:
  4. // http://csswizardry.com/2014/11/when-to-use-extend-when-to-use-a-mixin/
  5. // default button styles for every button
  6. %button {
  7. display: inline-block;
  8. cursor: pointer;
  9. }
  10. .button {
  11. @extend %button;
  12. @include background-color(button);
  13. @include color(main);
  14. @include spacing;
  15. @include spacing-inner(h 1.75, v .5);
  16. border: 0;
  17. font-weight: 400;
  18. }
  19. %button--wide,
  20. .button--wide {
  21. @include background-color(button);
  22. @include color(main);
  23. @include font-size(h3);
  24. @include spacing-inner(a 1.5);
  25. display: block;
  26. width: 100%;
  27. text-align: center;
  28. &--first {
  29. @include spacing(r .05);
  30. }
  31. &--between {
  32. @include spacing(h .05);
  33. }
  34. &--last {
  35. @include spacing(l .05);
  36. }
  37. &--cond {
  38. opacity: 0;
  39. cursor: initial;
  40. }
  41. }