index.module.less 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. .prepareLessons {
  2. display: flex;
  3. // padding: 32px;
  4. // padding-bottom: 32px;
  5. height: calc(100vh - 118px);
  6. overflow: hidden;
  7. .directoryMain,
  8. .resourceMain {
  9. flex: 0 0 360px;
  10. background-color: #fff;
  11. border-radius: 20px;
  12. }
  13. .lessonMain {
  14. margin: 0 20px;
  15. flex: 1;
  16. // background-color: #fff;
  17. border-radius: 20px;
  18. transition: all .2s ease;
  19. }
  20. .resourceMain {
  21. transition: all .2s ease;
  22. &.resourceClose {
  23. transition: all .2s ease;
  24. width: 0;
  25. transform: translateX(100%);
  26. opacity: 0;
  27. }
  28. }
  29. &.showSideBar {
  30. .directoryMain {
  31. width: 360px;
  32. transition: all .2s ease;
  33. opacity: 0;
  34. position: absolute;
  35. right: 0;
  36. transform: translateX(100%);
  37. }
  38. .lessonMain {
  39. transition: all .2s ease;
  40. margin-left: 0;
  41. }
  42. }
  43. &.hideSideBar {
  44. position: relative;
  45. overflow: hidden;
  46. .resourceMain {
  47. width: 360px;
  48. transition: all .2s ease;
  49. opacity: 0;
  50. position: absolute;
  51. right: 0;
  52. transform: translateX(100%);
  53. }
  54. .lessonMain {
  55. transition: all .2s ease;
  56. margin-right: 0;
  57. }
  58. }
  59. }