layout.scss 4.4 KB

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