VList.sass 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. @use 'sass:list'
  2. @use '../../styles/tools'
  3. @use './variables' as *
  4. .v-list
  5. overflow: auto
  6. padding: $list-padding
  7. position: relative
  8. outline: none
  9. @include tools.border($list-border...)
  10. @include tools.elevation($list-elevation)
  11. @include tools.rounded($list-border-radius)
  12. @include tools.theme($list-theme...)
  13. &--disabled
  14. pointer-events: none
  15. user-select: none
  16. &--nav
  17. padding-inline-start: $list-nav-padding
  18. padding-inline-end: $list-nav-padding
  19. .v-navigation-drawer--rail:not(.v-navigation-drawer--is-hovering) &
  20. .v-avatar
  21. --v-avatar-height: 24px
  22. &--rounded
  23. @include tools.rounded($list-rounded-border-radius)
  24. &--subheader
  25. padding-top: $list-subheader-padding-top
  26. .v-list-img
  27. border-radius: inherit
  28. display: flex
  29. height: 100%
  30. left: 0
  31. overflow: hidden
  32. position: absolute
  33. top: 0
  34. width: 100%
  35. z-index: -1
  36. .v-list-subheader
  37. $root: &
  38. align-items: center
  39. background: inherit
  40. color: $list-subheader-color
  41. display: flex
  42. font-size: $list-subheader-font-size
  43. font-weight: $list-subheader-font-weight
  44. line-height: $list-subheader-line-height
  45. padding-inline-end: $list-subheader-padding-end
  46. min-height: $list-subheader-min-height
  47. transition: $list-subheader-transition
  48. &__text
  49. overflow: hidden
  50. text-overflow: ellipsis
  51. white-space: nowrap
  52. @at-root
  53. @include tools.density('v-list', $list-density) using ($modifier)
  54. $base-padding: list.nth($list-item-padding, 2)
  55. #{$root}
  56. min-height: $list-subheader-min-height + ($modifier * $list-subheader-min-height-multiplier)
  57. padding-inline-start: calc(#{$base-padding} + var(--indent-padding)) !important
  58. &--inset
  59. --indent-padding: #{$list-subheader-inset-padding-start}
  60. .v-list--nav &
  61. font-size: $list-nav-subheader-font-size
  62. &--sticky
  63. background: inherit
  64. left: 0
  65. position: sticky
  66. top: 0
  67. z-index: 1
  68. .v-list__overlay
  69. background-color: currentColor
  70. border-radius: inherit
  71. bottom: 0
  72. left: 0
  73. opacity: 0
  74. pointer-events: none
  75. position: absolute
  76. right: 0
  77. top: 0
  78. transition: opacity 0.2s ease-in-out