ESPTrainer built with Meteor and React

Square.scss 987B

123456789101112131415161718192021222324252627282930313233343536373839
  1. @import "gradient";
  2. @import "shadow";
  3. $square-blue: blue;
  4. $square-green: green;
  5. $square-red: red;
  6. $square-yellow: darken(yellow, 20);
  7. .square {
  8. $size: 100px;
  9. border-radius: 5px;
  10. border: 1px solid rgba(255, 255, 255, 0.5);
  11. height: $size;
  12. margin: 10px;
  13. width: $size;
  14. @include shadow();
  15. &:hover { cursor: pointer; }
  16. &:active { box-shadow: none; }
  17. &:focus { outline: none; }
  18. @mixin square-color($color, $direction, $inverted) {
  19. @if($inverted) { @include gradient(lighten($color, 20), $color, $direction); }
  20. @else { @include gradient($color, lighten($color, 20), $direction); }
  21. &.highlighted { @include radial-gradient($color); }
  22. }
  23. &.blue { @include square-color($square-blue, 'bottom', false); }
  24. &.green { @include square-color($square-green, 'bottom', true); }
  25. &.red { @include square-color($square-red, 'top', false); }
  26. &.yellow { @include square-color($square-yellow, 'top', true); }
  27. }