box.sass 769 B

1234567891011121314151617181920212223242526
  1. @import "../utilities/mixins"
  2. $box-color: $text !default
  3. $box-background-color: $scheme-main !default
  4. $box-radius: $radius-large !default
  5. $box-shadow: 0 0.5em 1em -0.125em rgba($scheme-invert, 0.1), 0 0px 0 1px rgba($scheme-invert, 0.02) !default
  6. $box-padding: 1.25rem !default
  7. $box-link-hover-shadow: 0 0.5em 1em -0.125em rgba($scheme-invert, 0.1), 0 0 0 1px $link !default
  8. $box-link-active-shadow: inset 0 1px 2px rgba($scheme-invert, 0.2), 0 0 0 1px $link !default
  9. .box
  10. @extend %block
  11. background-color: $box-background-color
  12. border-radius: $box-radius
  13. box-shadow: $box-shadow
  14. color: $box-color
  15. display: block
  16. padding: $box-padding
  17. a.box
  18. &:hover,
  19. &:focus
  20. box-shadow: $box-link-hover-shadow
  21. &:active
  22. box-shadow: $box-link-active-shadow