layout.scss 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. .hc-layout-box {
  2. position: relative;
  3. height: 100vh;
  4. width: 100%;
  5. .hc-layout-bg-box {
  6. position: absolute;
  7. bottom: 0;
  8. left: 0;
  9. right: 0;
  10. top: 0;
  11. z-index: 0;
  12. display: flex;
  13. img {
  14. width: 100%;
  15. height: 100%;
  16. object-fit: cover;
  17. }
  18. }
  19. .hc-aside-box {
  20. position: relative;
  21. color: #838791;
  22. background: #f1f5f8;
  23. transition: 0.2s;
  24. box-shadow: -2px 0 10px 0 rgba(32,37,50,0.03), 0 10px 21px 20px rgba(32,37,50,0.03);
  25. border-radius: 0 60px 0 0;
  26. z-index: 1;
  27. .hc-aside-logo-box {
  28. position: relative;
  29. display: flex;
  30. align-items: center;
  31. justify-content: center;
  32. transition: opacity 0.3s;
  33. cursor: pointer;
  34. margin: 32px 0;
  35. left: -10px;
  36. .logo-img {
  37. height: 40px;
  38. }
  39. .logo-img-1 {
  40. height: 35px;
  41. margin-left: 5px;
  42. }
  43. &:hover {
  44. opacity: .8;
  45. }
  46. }
  47. .hc-aside-menu-box {
  48. position: relative;
  49. height: calc(100% - 216px);
  50. width: 100%;
  51. overflow: hidden;
  52. user-select: none;
  53. }
  54. .hc-aside-bar-box {
  55. position: relative;
  56. display: flex;
  57. align-items: center;
  58. justify-content: center;
  59. padding: 24px 0;
  60. margin-top: 24px;
  61. transition: 0.2s;
  62. &:before {
  63. position: absolute;
  64. content: '';
  65. top: 0;
  66. width: 100%;
  67. height: 1px;
  68. background-image: linear-gradient(90deg, rgba(102,102,102,0.00) 11%, #dbe8f3 35%, #dbe8f3 64%, rgba(102,102,102,0.00) 86%);
  69. }
  70. div {
  71. position: relative;
  72. width: 40px;
  73. height: 40px;
  74. display: flex;
  75. justify-content: center;
  76. align-items: center;
  77. font-size: 26px;
  78. transition: 0.1s;
  79. &.active {
  80. color: white;
  81. background: var(--el-color-primary);
  82. border-radius: 6px;
  83. box-shadow: 3px 2px 8px 0 var(--hc-shadow-color-5);
  84. }
  85. &:not(.active) {
  86. cursor: pointer;
  87. &:hover {
  88. color: var(--el-color-primary);
  89. }
  90. }
  91. &+div{
  92. margin-left: 26px;
  93. }
  94. }
  95. }
  96. &.collapse {
  97. border-radius: 0 50px 0 0;
  98. .hc-aside-logo-box {
  99. left: initial;
  100. }
  101. }
  102. &.home-index {
  103. color: white;
  104. background: rgba( 255, 255, 255, 0.35 );
  105. box-shadow: 0 2px 10px 0 rgba(32,37,50,0.03);
  106. backdrop-filter: blur( 20px );
  107. -webkit-backdrop-filter: blur( 20px );
  108. .hc-aside-menu-box .hc-aside-menu.el-menu {
  109. --el-menu-text-color: white;
  110. }
  111. }
  112. }
  113. .hc-container-view {
  114. position: relative;
  115. z-index: 1;
  116. .hc-header-view {
  117. position: relative;
  118. display: flex;
  119. align-items: center;
  120. --el-header-padding: 0 24px;
  121. --el-header-height: 100px;
  122. .hc-header-page-name {
  123. position: relative;
  124. color: #cccccc;
  125. font-size: 22px;
  126. display: flex;
  127. align-items: center;
  128. }
  129. .hc-header-content {
  130. flex: auto;
  131. position: relative;
  132. text-align: right;
  133. display: flex;
  134. align-items: center;
  135. justify-content: flex-end;
  136. .hc-header-cascader-box {
  137. position: relative;
  138. margin-right: 30px;
  139. border-radius: 100px;
  140. .project-name-box {
  141. padding-right: 55px;
  142. position: relative;
  143. visibility: hidden;
  144. z-index: -1;
  145. }
  146. }
  147. }
  148. }
  149. .hc-main-box {
  150. position: relative;
  151. overflow: hidden;
  152. height: 100%;
  153. --el-main-padding: 24px;
  154. margin-top: -24px;
  155. &.home-index {
  156. --el-main-padding: 0;
  157. margin-top: 0;
  158. }
  159. }
  160. &.home {
  161. color: #ffffff;
  162. .hc-header-view .hc-header-page-name {
  163. color: #CCD0DE;
  164. }
  165. }
  166. }
  167. }
  168. .hc-header-project-name-box {
  169. padding: 4px 15px;
  170. border: 1px solid #00000000;
  171. border-radius: 100px;
  172. background: #f1f5f8;
  173. color: #202532;
  174. box-shadow: var(--hc-shadow);
  175. height: 40px;
  176. display: flex;
  177. align-items: center;
  178. margin-right: 30px;
  179. cursor: pointer;
  180. user-select: none;
  181. .project-icon {
  182. margin-right: 8px;
  183. position: relative;
  184. top: 2px;
  185. }
  186. }