lungo.media.tablet.styl 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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. &:not(.box)
  23. position: absolute
  24. z-index: 0
  25. left: 0
  26. top: 0
  27. visibility: hidden
  28. &.show
  29. visibility: visible
  30. & > section
  31. z-index: 1
  32. display: none
  33. &.show
  34. ordinal-group(2)
  35. display-box()
  36. &.asideShowing
  37. z-index: 2
  38. vendor(animation-name, withAside)
  39. &.asideHidding
  40. vendor(animation-name, withoutAside)
  41. &.aside
  42. z-index: 2
  43. transform translateX(ASIDE_WIDTH)
  44. &.shadowing
  45. vendor(animation-name, withAsideOpacity)
  46. &.unshadowing
  47. vendor(animation-name, withoutAsideOpacity)
  48. &.shadow
  49. transform translateX(ASIDE_WIDTH)
  50. opacity: .6
  51. &:not([data-children])
  52. box-flex(1)
  53. &[data-children]
  54. width: 320px
  55. @keyframes withAside
  56. 0% {transform translateX(0)}
  57. 100% {transform translateX(ASIDE_WIDTH)}
  58. @keyframes withoutAside
  59. 0% {transform translateX(ASIDE_WIDTH)}
  60. 100% {transform translateX(0)}
  61. @keyframes withAsideOpacity
  62. 0% {transform translateX(0)}
  63. 100% {transform translateX(ASIDE_WIDTH); opacity: .6;}
  64. @keyframes withoutAsideOpacity
  65. 0% {transform translateX(ASIDE_WIDTH); opacity: .6;}
  66. 100% {transform translateX(0)}