main.scss 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  1. html, body, #app {
  2. height: 100%;
  3. background-color: #F1F5F8;
  4. }
  5. * {
  6. padding: 0;
  7. margin: 0;
  8. box-sizing: border-box;
  9. /* 滚动条凹槽的颜色,还可以设置边框属性 */
  10. &::-webkit-scrollbar-track-piece {
  11. background-color: #f8f8f8;
  12. -webkit-border-radius: 2em;
  13. -moz-border-radius: 2em;
  14. border-radius: 2em;
  15. }
  16. /* 滚动条的宽度 */
  17. &::-webkit-scrollbar {
  18. width: 9px;
  19. height: 9px;
  20. }
  21. /* 滚动条的设置 */
  22. &::-webkit-scrollbar-thumb {
  23. background-color: #ddd;
  24. background-clip: padding-box;
  25. -webkit-border-radius: 2em;
  26. -moz-border-radius: 2em;
  27. border-radius: 2em;
  28. }
  29. /* 滚动条鼠标移上去 */
  30. &::-webkit-scrollbar-thumb:hover {
  31. background-color: #bbb;
  32. }
  33. }
  34. .us-se-no {
  35. user-select: none;
  36. }
  37. .lr-dialog-footer {
  38. position: relative;
  39. display: flex;
  40. align-items: flex-end;
  41. justify-content: space-between;
  42. .left {
  43. .el-button + .el-button {
  44. margin-left: 10px;
  45. }
  46. }
  47. }
  48. .hc-flex-column {
  49. display: flex;
  50. flex-direction: column;
  51. }
  52. .hc-sticky-box {
  53. position: sticky;
  54. z-index: 99;
  55. top: 0;
  56. }
  57. .pover-menu-list {
  58. position: relative;
  59. .list-item {
  60. position: relative;
  61. border-radius: 5px;
  62. padding: 10px 14px;
  63. cursor: pointer;
  64. display: flex;
  65. align-items: center;
  66. transition: color 0.3s, background-color 0.3s;
  67. .text {
  68. flex: auto;
  69. margin-left: 0;
  70. margin-right: 20px;
  71. }
  72. i {
  73. font-size: 22px;
  74. }
  75. &:hover {
  76. color: var(--el-color-primary);
  77. background-color: var(--el-color-primary-light-7);
  78. }
  79. }
  80. }
  81. #toolPanel, #optionPanel {
  82. border-radius: 5px;
  83. box-shadow: 0 .5em 1em rgba(0, 0, 0, 0.15);
  84. }
  85. .el-radio-group .el-radio {
  86. margin-right: 10px;
  87. }
  88. .bg-card-main {
  89. background-color: var(--hc-bg-color);
  90. }
  91. .hc-list-box {
  92. position: relative;
  93. .item {
  94. position: relative;
  95. display: flex;
  96. align-items: center;
  97. .label {
  98. flex: 1;
  99. }
  100. &.item {
  101. margin-top: 15px;
  102. }
  103. }
  104. }
  105. .fade-enter-active,
  106. .fade-leave-active {
  107. transition: opacity 0.5s ease;
  108. }
  109. .fade-enter-from,
  110. .fade-leave-to {
  111. opacity: 0;
  112. }
  113. /* fade-transform */
  114. .fade-transform-leave-active,
  115. .fade-transform-enter-active {
  116. transition: all 0.5s;
  117. }
  118. .fade-transform-enter-from {
  119. opacity: 0;
  120. transform: translateX(-30px);
  121. }
  122. .fade-transform-leave-to {
  123. opacity: 0;
  124. transform: translateX(30px);
  125. }
  126. .hc-page-layout-box {
  127. display: flex;
  128. position: relative;
  129. height: 100%;
  130. .hc-layout-left-box {
  131. width: 382px;
  132. position: relative;
  133. background: #f1f5f8;
  134. border-radius: 10px;
  135. margin-right: 24px;
  136. box-shadow: -2px 0 10px 0 rgba(32, 37, 50, 0.03), 0 10px 21px 20px rgba(32, 37, 50, 0.03);
  137. .horizontal-drag-line {
  138. position: absolute;
  139. right: 0;
  140. top: 0;
  141. width: 4px;
  142. height: 100%;
  143. user-select: none;
  144. cursor: col-resize;
  145. background-color: #00000000;
  146. }
  147. .hc-project-box {
  148. position: relative;
  149. padding: 15px 24px;
  150. display: flex;
  151. align-items: flex-start;
  152. border-bottom: 1px solid #E9E9E9;
  153. .hc-project-icon-box {
  154. font-size: 30px;
  155. color: var(--el-color-primary);
  156. }
  157. .project-name-box {
  158. flex: auto;
  159. position: relative;
  160. overflow: hidden;
  161. .project-alias {
  162. color: var(--el-color-primary);
  163. }
  164. .project-name {
  165. margin-top: 6px;
  166. color: #838791;
  167. }
  168. }
  169. }
  170. .hc-tree-box {
  171. position: relative;
  172. padding: 15px 20px;
  173. height: calc(100% - 80px);
  174. }
  175. .hc-tree-search-box {
  176. position: relative;
  177. padding: 15px 20px;
  178. height: calc(100% - 187px);
  179. .hc-search-tree-val {
  180. position: relative;
  181. margin-bottom: 24px;
  182. }
  183. .hc-tree-scrollbar {
  184. position: relative;
  185. height: calc(100% - 68px);
  186. }
  187. }
  188. &.menu {
  189. width: 240px;
  190. .hc-menu-header-box {
  191. position: relative;
  192. padding: 15px 18px;
  193. display: flex;
  194. align-items: center;
  195. border-bottom: 1px solid #E9E9E9;
  196. .name {
  197. flex: auto;
  198. position: relative;
  199. }
  200. }
  201. .hc-menu-contents-box {
  202. position: relative;
  203. //padding: 15px 18px;
  204. height: calc(100% - 60px);
  205. }
  206. }
  207. }
  208. .hc-page-content-box {
  209. flex: 1;
  210. position: relative;
  211. }
  212. }
  213. .hc-page-box {
  214. position: relative;
  215. height: 100%;
  216. }
  217. .z-9999 {
  218. z-index: 9999 !important;
  219. }
  220. //分割的样式
  221. .gutter {
  222. background-color: #f1f5f8;
  223. background-repeat: no-repeat;
  224. background-position: 50%;
  225. }
  226. .gutter.gutter-vertical {
  227. background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAFAQMAAABo7865AAAABlBMVEVHcEzMzMzyAv2sAAAAAXRSTlMAQObYZgAAABBJREFUeF5jOAMEEAIEEFwAn3kMwcB6I2AAAAAASUVORK5CYII=');
  228. cursor: row-resize;
  229. }
  230. .gutter.gutter-horizontal {
  231. background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg==');
  232. cursor: col-resize;
  233. }