VOverlay.sass 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. @use 'sass:selector'
  2. @use '../../styles/tools'
  3. @use './variables' as *
  4. @include tools.layer('components')
  5. // Block
  6. .v-overlay-container
  7. contain: layout
  8. left: 0
  9. pointer-events: none
  10. position: absolute
  11. top: 0
  12. display: contents
  13. .v-overlay-scroll-blocked
  14. padding-inline-end: var(--v-scrollbar-offset)
  15. &:not(html)
  16. overflow-y: hidden !important
  17. @at-root #{selector.append(html, &)}
  18. position: fixed
  19. top: var(--v-body-scroll-y)
  20. left: var(--v-body-scroll-x)
  21. width: 100%
  22. height: 100%
  23. .v-overlay
  24. border-radius: inherit
  25. display: flex
  26. left: 0
  27. pointer-events: none
  28. position: fixed
  29. top: 0
  30. bottom: 0
  31. right: 0
  32. // Element
  33. .v-overlay__content
  34. outline: none
  35. position: absolute
  36. pointer-events: auto
  37. contain: layout
  38. .v-overlay__scrim
  39. pointer-events: auto
  40. background: $overlay-scrim-background
  41. border-radius: inherit
  42. bottom: 0
  43. left: 0
  44. opacity: $overlay-opacity
  45. position: fixed
  46. right: 0
  47. top: 0
  48. // Modifier
  49. .v-overlay--absolute
  50. position: absolute
  51. .v-overlay--contained .v-overlay__scrim
  52. position: absolute
  53. .v-overlay--scroll-blocked
  54. padding-inline-end: var(--v-scrollbar-offset)