sidenavigation.wxss 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. .container {
  2. height: 100vh;
  3. }
  4. .mobile {
  5. height: 100%;
  6. position: relative;
  7. }
  8. .mobile > view {
  9. transition: all .3s ease-in-out;
  10. }
  11. .mobile .left {
  12. position: absolute;
  13. top: 0;
  14. left: 0;
  15. width: 0;
  16. height: 100%;
  17. background: #ecebec;
  18. z-index: 3;
  19. display: flex;
  20. flex-direction: column;
  21. align-items: center;
  22. }
  23. .mobile .left .item {
  24. width: 80%;
  25. height: 60rpx;
  26. background: #d8d8d8;
  27. margin-top: 40rpx;
  28. border-radius: 4px;
  29. border: 0px;
  30. }
  31. .mobile.active .left {
  32. width: 66.66%;
  33. }
  34. .mobile.active .right {
  35. opacity: .3;
  36. }
  37. .mobile .right {
  38. height: 100%;
  39. display: flex;
  40. flex-direction: column;
  41. }
  42. .mobile .nav-bar {
  43. height: 80rpx;
  44. position: relative;
  45. background: #2782d7;
  46. border-radius: 4px;
  47. margin-bottom: 30rpx;
  48. }
  49. .mobile .nav-bar .button {
  50. width: 50rpx;
  51. height: 50rpx;
  52. position: absolute;
  53. top: 50%;
  54. left: 30rpx;
  55. transform: translateY(-50%);
  56. }
  57. .mobile .section {
  58. flex: auto;
  59. background: #1aad19;
  60. border-radius: 4px;
  61. }
  62. .laptop {
  63. display: none;
  64. }
  65. .laptop .nav-bar {
  66. height: 40rpx;
  67. position: relative;
  68. background: #2782d7;
  69. border-radius: 4px;
  70. margin-bottom: 20rpx;
  71. }
  72. .laptop .flexbox {
  73. display: flex;
  74. }
  75. .laptop .flexbox .left {
  76. flex: 1;
  77. }
  78. .laptop .flexbox .left .item {
  79. width: 90%;
  80. height: 30rpx;
  81. background: #d8d8d8;
  82. margin-bottom: 15rpx;
  83. border-radius: 4px;
  84. }
  85. .laptop .flexbox .right {
  86. flex: 3;
  87. height: 500rpx;
  88. background: #1aad19;
  89. border-radius: 4px;
  90. }
  91. @media only screen and (min-width: 576px) {
  92. .mobile {
  93. display: none;
  94. }
  95. .laptop {
  96. display: block;
  97. }
  98. }
  99. page>view {
  100. width: 100vw;
  101. max-width: 100vw;
  102. }
  103. view, image, navigator {
  104. margin: 0;
  105. padding: 0;
  106. box-sizing: border-box;
  107. }
  108. .container {
  109. display: block;
  110. width: 100vw;
  111. padding: 20rpx;
  112. color: #191919;
  113. font-size: 28px;
  114. }
  115. .item {
  116. margin: 6px;
  117. height: 240px;
  118. line-height: 240px;
  119. text-align: center;
  120. background: #ecebec;
  121. /* border: 1px solid #555050; */
  122. }
  123. .mobile .left .dark-C, .laptop .flexbox .left .dark-C {
  124. background: #f1f1f1;
  125. color: #353535;
  126. }
  127. .mobile .dark-bg {
  128. background-color: #1F1F1F;
  129. }