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.

31 lines
417 B

7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
  1. /**
  2. * z-index
  3. *
  4. * handle z-index
  5. *
  6. *
  7. * @author Björn Hase
  8. *
  9. */
  10. $z-indexes: (
  11. 'site-header': 100,
  12. 'modal': 1000
  13. ) !default;
  14. /**
  15. * z-index
  16. *
  17. *
  18. *
  19. * @return
  20. *
  21. */
  22. @function zIndex($name) {
  23. @if index($z-indexes, $name) {
  24. @return map($z-indexes, $name);
  25. } @else {
  26. @warn 'There is no item "#{$name}" in this list; choose one of: #{$z-indexes}';
  27. @return null;
  28. }
  29. }