lungo.media.tablet.styl 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. @import "constants.styl"
  2. // TRANSITION_TIME = 1s
  3. /* ==== Tablet ==== */
  4. // @media only screen and (min-width: 768px) and (max-width: 1280px)
  5. @media only screen and (min-width: 768px)
  6. body
  7. display-box()
  8. box-orient(horizontal)
  9. overflow: hidden
  10. aside
  11. width 15%
  12. transform translateX(-100%)
  13. transition-property transform
  14. transition-duration TRANSITION_TIME
  15. &.show
  16. transform translateX(0%)
  17. section
  18. display: none
  19. opacity: 0
  20. ordinal-group(2)
  21. transform translateX(100%)
  22. &.show
  23. animation showing TRANSITION_TIME
  24. animation-fill-mode forwards
  25. display-box()
  26. &.hide
  27. animation hiding TRANSITION_TIME
  28. &:not([data-children])
  29. box-flex (1)
  30. &[data-children]
  31. width: 25%
  32. & [data-view-aside]
  33. display: none !important
  34. @-webkit-keyframes showing
  35. 0%
  36. transform translateX(100%)
  37. 100%
  38. opacity: 1
  39. transform translateX(0%)
  40. @-webkit-keyframes hiding
  41. 0%
  42. opacity: 1
  43. transform translateX(0%)
  44. 100%
  45. opacity: 0
  46. transform translateX(100%)