_utilities.scss 538 B

123456789101112131415161718192021222324252627282930
  1. // List Reset
  2. %list-reset {
  3. margin: 0;
  4. padding: 0;
  5. list-style: none;
  6. }
  7. // Vertical Centering
  8. %vertical-align {
  9. position: relative;
  10. top: 50%;
  11. -webkit-transform: translateY(-50%);
  12. -moz-transform: translateY(-50%);
  13. -o-transform: translateY(-50%);
  14. -ms-transform: translateY(-50%);
  15. transform: translateY(-50%);
  16. }
  17. // Columns
  18. @mixin columns($columns) {
  19. width: percentage(1/$columns);
  20. }
  21. // Float with margin variable
  22. @mixin float($direction, $margin: 0) {
  23. float: $direction;
  24. margin-#{opposite-direction($direction)}: $margin;
  25. }