layout.scss 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. .hc-layout-box {
  2. position: relative;
  3. height: 100vh;
  4. width: 100%;
  5. .hc-layout-bg-box, .hc-app-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. #hc-logo-icon {
  37. height: 35px;
  38. width: 35px;
  39. }
  40. #hc-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. flex-direction: row;
  122. --el-header-padding: 0 24px;
  123. --el-header-height: 66px;
  124. .hc-header-page-name {
  125. position: relative;
  126. color: #cccccc;
  127. font-size: 22px;
  128. display: flex;
  129. align-items: center;
  130. }
  131. .hc-header-top-menu-bar {
  132. flex: 1;
  133. position: relative;
  134. display: flex;
  135. align-items: center;
  136. padding: 0 30px;
  137. overflow: hidden;
  138. }
  139. .hc-header-content {
  140. position: relative;
  141. text-align: right;
  142. display: flex;
  143. align-items: center;
  144. justify-content: flex-end;
  145. .hc-header-cascader-box {
  146. position: relative;
  147. margin-right: 30px;
  148. border-radius: 100px;
  149. .project-name-box {
  150. padding-right: 55px;
  151. position: relative;
  152. visibility: hidden;
  153. z-index: -1;
  154. }
  155. }
  156. }
  157. }
  158. .hc-main-box {
  159. position: relative;
  160. overflow: hidden;
  161. height: 100%;
  162. --el-main-padding: 24px;
  163. margin-top: -24px;
  164. &.home-index {
  165. --el-main-padding: 0;
  166. margin-top: 0;
  167. }
  168. }
  169. &.home {
  170. color: #ffffff;
  171. .hc-header-view .hc-header-page-name {
  172. color: #CCD0DE;
  173. }
  174. }
  175. }
  176. }
  177. .hc-header-project-name-box {
  178. padding: 4px 15px;
  179. border: 1px solid #00000000;
  180. border-radius: 100px;
  181. background: #f1f5f8;
  182. color: #202532;
  183. box-shadow: var(--hc-shadow);
  184. height: 40px;
  185. display: flex;
  186. align-items: center;
  187. margin-right: 30px;
  188. cursor: pointer;
  189. user-select: none;
  190. .project-icon {
  191. margin-right: 8px;
  192. position: relative;
  193. top: 2px;
  194. }
  195. }