VDivider.sass 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. @use '../../styles/tools'
  2. @use './variables' as *
  3. @include tools.layer('components')
  4. .v-divider
  5. display: block
  6. flex: $divider-flex
  7. height: 0px
  8. max-height: 0px
  9. opacity: $divider-opacity
  10. transition: inherit
  11. @include tools.border($divider-border...)
  12. &--vertical
  13. align-self: stretch
  14. border-width: $divider-vertical-border-width
  15. display: inline-flex
  16. height: auto
  17. margin-left: $divider-vertical-margin-left
  18. max-height: 100%
  19. max-width: 0px
  20. vertical-align: text-bottom
  21. width: 0px
  22. &--inset
  23. &:not(.v-divider--vertical)
  24. max-width: $divider-inset-max-width
  25. margin-inline-start: $divider-inset-margin
  26. &.v-divider--vertical
  27. margin-bottom: $divider-vertical-inset-margin-bottom
  28. margin-top: $divider-vertical-inset-margin-top
  29. max-height: $divider-vertical-inset-max-height
  30. .v-divider__content
  31. padding: $divider-content-padding
  32. text-wrap: nowrap
  33. .v-divider__wrapper--vertical &
  34. padding: $divider-content-vertical-padding
  35. .v-divider__wrapper
  36. display: flex
  37. align-items: center
  38. justify-content: center
  39. &--vertical
  40. flex-direction: column
  41. height: 100%
  42. .v-divider
  43. margin: 0 auto