main.scss 5.8 KB

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