VWindow.sass 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. @use './variables' as *
  2. .v-window
  3. overflow: hidden
  4. &__container
  5. display: flex
  6. flex-direction: column
  7. height: inherit
  8. position: relative
  9. transition: $window-transition
  10. &__controls
  11. position: absolute
  12. left: 0
  13. top: 0
  14. width: 100%
  15. height: 100%
  16. display: flex
  17. align-items: center
  18. justify-content: space-between
  19. padding: $window-controls-padding
  20. pointer-events: none
  21. *
  22. pointer-events: auto
  23. &--show-arrows-on-hover
  24. overflow: hidden
  25. .v-window__left
  26. transform: translateX(-200%)
  27. .v-window__right
  28. transform: translateX(200%)
  29. &:hover
  30. .v-window__left,
  31. .v-window__right
  32. transform: translateX(0)
  33. &-x-transition,
  34. &-x-reverse-transition,
  35. &-y-transition,
  36. &-y-reverse-transition
  37. &-enter-active,
  38. &-leave-active
  39. transition: $window-transition
  40. &-leave-from,
  41. &-leave-to
  42. position: absolute !important
  43. top: 0
  44. width: 100%
  45. &-x-transition
  46. &-enter-from
  47. transform: translateX(100%)
  48. &-leave-to
  49. transform: translateX(-100%)
  50. &-x-reverse-transition
  51. &-enter-from
  52. transform: translateX(-100%)
  53. &-leave-to
  54. transform: translateX(100%)
  55. &-y-transition
  56. &-enter-from
  57. transform: translateY(100%)
  58. &-leave-to
  59. transform: translateY(-100%)
  60. &-y-reverse-transition
  61. &-enter-from
  62. transform: translateY(-100%)
  63. &-leave-to
  64. transform: translateY(100%)