Lightweight CSS Framework for Building Apps and Websites https://crispy-css.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
581 B

7 years ago
  1. /**
  2. * add font-size in px as fallback
  3. * and in rem
  4. *
  5. *
  6. * @param {px} $font-size
  7. *
  8. */
  9. @mixin font-size($font-size) {
  10. font-size: $font-size;
  11. font-size: pxToRem($font-size);
  12. }
  13. /**
  14. * clearfix to end floating
  15. *
  16. *
  17. *
  18. */
  19. @mixin clearfix() {
  20. &::before,
  21. &::after {
  22. display: table;
  23. content: ' ';
  24. }
  25. &::after {
  26. clear: both;
  27. }
  28. }
  29. /**
  30. * clear default styles from list
  31. *
  32. *
  33. */
  34. @mixin crispy-boilerplate-list-clear() {
  35. list-style: none;
  36. margin: 0;
  37. padding: 0;
  38. li {
  39. margin: 0;
  40. padding: 0;
  41. }
  42. }