layout.scss 5.2 KB

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