lungo.media.tablet.styl 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. @import "__init.styl"
  2. /* ==== Tablet ==== */
  3. @media only screen and (min-width: 768px)
  4. body
  5. display-box()
  6. box-orient(horizontal)
  7. overflow: hidden
  8. vendor(perspective, 800px)
  9. vendor(transform-style, preserve-3d)
  10. & > section, & > aside
  11. backface-visibility hidden
  12. vendor(animation-timing-function, DEFAULT_TRANSITION)
  13. vendor(animation-duration, TRANSITION_TIME)
  14. vendor(animation-fill-mode, forwards)
  15. & > aside
  16. &.box
  17. z-index: 0
  18. display: none
  19. &.show
  20. ordinal-group(1)
  21. display-box()
  22. &.right
  23. ordinal-group(3)
  24. &:not(.box)
  25. position: absolute
  26. z-index: 0
  27. left: 0
  28. top: 0
  29. visibility: hidden
  30. &.show
  31. visibility: visible
  32. & > section
  33. z-index: 1
  34. display: none
  35. &.show
  36. ordinal-group(2)
  37. display-box()
  38. &.asideShowing
  39. z-index: 2
  40. vendor(animation-name, withAside)
  41. &.asideHidding
  42. vendor(animation-name, withoutAside)
  43. &.aside
  44. z-index: 2
  45. transform translateX(ASIDE_WIDTH)
  46. &.shadowing
  47. vendor(animation-name, withAsideOpacity)
  48. &.unshadowing
  49. vendor(animation-name, withoutAsideOpacity)
  50. &.shadow
  51. transform translateX(ASIDE_WIDTH)
  52. opacity: .6
  53. &:not([data-children])
  54. box-flex(1)
  55. &[data-children]
  56. width: 320px
  57. @keyframes withAside
  58. 0% {transform translateX(0)}
  59. 100% {transform translateX(ASIDE_WIDTH)}
  60. @keyframes withoutAside
  61. 0% {transform translateX(ASIDE_WIDTH)}
  62. 100% {transform translateX(0)}
  63. @keyframes withAsideOpacity
  64. 0% {transform translateX(0)}
  65. 100% {transform translateX(ASIDE_WIDTH); opacity: .6;}
  66. @keyframes withoutAsideOpacity
  67. 0% {transform translateX(ASIDE_WIDTH); opacity: .6;}
  68. 100% {transform translateX(0)}