James Peret's blog. Built with Jekyll and the Mikey theme.

_z-index.scss 1.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. //
  2. // Z-index scale
  3. // --------------------------------------------------
  4. //
  5. // Z-index values should always be defined in z-index.scss. This
  6. // allows us to at a glance determine relative layers of our application and prevents bugs
  7. // arrising from arbitrary z-index values. Do not edit the z-index scale! Only add application
  8. // scoped z-index values.
  9. //
  10. // Credit: Medium.com's z-index scale
  11. // Z-Index Scale (private vars)
  12. // --------------------------------------------------
  13. $zIndex-neg2: -200;
  14. $zIndex-neg1: -100;
  15. $zIndex-1: 100;
  16. $zIndex-2: 200;
  17. $zIndex-3: 300;
  18. $zIndex-4: 400;
  19. $zIndex-5: 500;
  20. $zIndex-6: 600;
  21. $zIndex-7: 700;
  22. $zIndex-8: 800;
  23. $zIndex-9: 900;
  24. $zIndex-10: 1000;
  25. // Z-Index Applications
  26. // --------------------------------------------------
  27. $zIndex-neg2--carousel-backgroundImg: $zIndex-neg2;
  28. $zIndex-neg1--section-gradient: $zIndex-neg1;
  29. $zIndex-1--section-title: $zIndex-1;
  30. $zIndex-4--post-wrapper: $zIndex-4;
  31. $zIndex-4--posts-wrapper: $zIndex-4;
  32. $zIndex-5--metabar: $zIndex-5;
  33. $zIndex-5--sidebar-toggle-wrapper: $zIndex-5;
  34. $zIndex-5--textlogo-frontpage: $zIndex-5;
  35. $zIndex-5--tagline-frontpage: $zIndex-5;
  36. $zIndex-5--modal-toggle-bubbleshadow: $zIndex-5;
  37. $zIndex-6--sidebar-toggle: $zIndex-6;
  38. $zIndex-6--modal-toggle-bubble: $zIndex-6;
  39. $zIndex-6--modal-toggle-close: $zIndex-6;
  40. $zIndex-7--modal-toggle-group: $zIndex-7;
  41. $zIndex-7--modal-toggle-wrapper: $zIndex-7;
  42. $zIndex-8--fullscreen-modal: $zIndex-8;
  43. $zIndex-9--sidebar: $zIndex-9;