综合办公系统
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

home.scss 4.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271
  1. $selectedColor: #f6f7ff;
  2. $lighterBlue: #409EFF;
  3. .container {
  4. position: relative;
  5. width: 100%;
  6. height: 100%;
  7. }
  8. .components-list {
  9. padding: 8px;
  10. box-sizing: border-box;
  11. height: 100%;
  12. .components-item {
  13. display: inline-block;
  14. width: 48%;
  15. margin: 1%;
  16. transition: transform 0ms !important;
  17. }
  18. }
  19. .components-draggable{
  20. padding-bottom: 20px;
  21. }
  22. .components-title{
  23. font-size: 14px;
  24. color: #222;
  25. margin: 6px 2px;
  26. .svg-icon{
  27. color: #666;
  28. font-size: 18px;
  29. }
  30. }
  31. .components-body {
  32. padding: 8px 10px;
  33. background: $selectedColor;
  34. font-size: 12px;
  35. cursor: move;
  36. border: 1px dashed $selectedColor;
  37. border-radius: 3px;
  38. .svg-icon{
  39. color: #777;
  40. font-size: 15px;
  41. }
  42. &:hover {
  43. border: 1px dashed #787be8;
  44. color: #787be8;
  45. .svg-icon {
  46. color: #787be8;
  47. }
  48. }
  49. }
  50. .left-board {
  51. width: 260px;
  52. position: absolute;
  53. left: 0;
  54. top: 0;
  55. height: 100vh;
  56. }
  57. .left-scrollbar{
  58. height: calc(100vh - 42px);
  59. overflow: hidden;
  60. }
  61. .center-scrollbar {
  62. height: calc(100vh - 42px);
  63. overflow: hidden;
  64. border-left: 1px solid #f1e8e8;
  65. border-right: 1px solid #f1e8e8;
  66. box-sizing: border-box;
  67. }
  68. .center-board {
  69. height: 100vh;
  70. width: auto;
  71. margin: 0 350px 0 260px;
  72. box-sizing: border-box;
  73. }
  74. .empty-info{
  75. position: absolute;
  76. top: 46%;
  77. left: 0;
  78. right: 0;
  79. text-align: center;
  80. font-size: 18px;
  81. color: #ccb1ea;
  82. letter-spacing: 4px;
  83. }
  84. .action-bar{
  85. position: relative;
  86. height: 42px;
  87. text-align: right;
  88. padding: 0 15px;
  89. box-sizing: border-box;;
  90. border: 1px solid #f1e8e8;
  91. border-top: none;
  92. border-left: none;
  93. .delete-btn{
  94. color: #F56C6C;
  95. }
  96. }
  97. .logo-wrapper{
  98. position: relative;
  99. height: 42px;
  100. background: #fff;
  101. border-bottom: 1px solid #f1e8e8;
  102. box-sizing: border-box;
  103. }
  104. .logo{
  105. position: absolute;
  106. left: 12px;
  107. top: 6px;
  108. line-height: 30px;
  109. color: #00afff;
  110. font-weight: 600;
  111. font-size: 17px;
  112. white-space: nowrap;
  113. > img{
  114. width: 30px;
  115. height: 30px;
  116. vertical-align: top;
  117. }
  118. .github{
  119. display: inline-block;
  120. vertical-align: sub;
  121. margin-left: 15px;
  122. > img{
  123. height: 22px;
  124. }
  125. }
  126. }
  127. .center-board-row {
  128. padding: 12px 12px 15px 12px;
  129. box-sizing: border-box;
  130. & > .el-form {
  131. // 69 = 12+15+42
  132. height: calc(100vh - 69px);
  133. }
  134. }
  135. .drawing-board {
  136. height: 100%;
  137. position: relative;
  138. .components-body {
  139. padding: 0;
  140. margin: 0;
  141. font-size: 0;
  142. }
  143. .sortable-ghost {
  144. position: relative;
  145. display: block;
  146. overflow: hidden;
  147. &::before {
  148. content: " ";
  149. position: absolute;
  150. left: 0;
  151. right: 0;
  152. top: 0;
  153. height: 3px;
  154. background: rgb(89, 89, 223);
  155. z-index: 2;
  156. }
  157. }
  158. .components-item.sortable-ghost {
  159. width: 100%;
  160. height: 60px;
  161. background-color: $selectedColor;
  162. }
  163. .active-from-item {
  164. & > .el-form-item{
  165. background: $selectedColor;
  166. border-radius: 6px;
  167. }
  168. & > .drawing-item-copy, & > .drawing-item-delete{
  169. display: initial;
  170. }
  171. & > .component-name{
  172. color: $lighterBlue;
  173. }
  174. }
  175. .el-form-item{
  176. margin-bottom: 15px;
  177. }
  178. }
  179. .drawing-item{
  180. position: relative;
  181. cursor: move;
  182. &.unfocus-bordered:not(.active-from-item) > div:first-child {
  183. border: 1px dashed #ccc;
  184. }
  185. .el-form-item{
  186. padding: 12px 10px;
  187. }
  188. }
  189. .drawing-row-item{
  190. position: relative;
  191. cursor: move;
  192. box-sizing: border-box;
  193. border: 1px dashed #ccc;
  194. border-radius: 3px;
  195. padding: 0 2px;
  196. margin-bottom: 15px;
  197. .drawing-row-item {
  198. margin-bottom: 2px;
  199. }
  200. .el-col{
  201. margin-top: 22px;
  202. }
  203. .el-form-item{
  204. margin-bottom: 0;
  205. }
  206. .drag-wrapper{
  207. min-height: 80px;
  208. }
  209. &.active-from-item{
  210. border: 1px dashed $lighterBlue;
  211. }
  212. .component-name{
  213. position: absolute;
  214. top: 0;
  215. left: 0;
  216. font-size: 12px;
  217. color: #bbb;
  218. display: inline-block;
  219. padding: 0 6px;
  220. }
  221. }
  222. .drawing-item, .drawing-row-item{
  223. &:hover {
  224. & > .el-form-item{
  225. background: $selectedColor;
  226. border-radius: 6px;
  227. }
  228. & > .drawing-item-copy, & > .drawing-item-delete{
  229. display: initial;
  230. }
  231. }
  232. & > .drawing-item-copy, & > .drawing-item-delete{
  233. display: none;
  234. position: absolute;
  235. top: -10px;
  236. width: 22px;
  237. height: 22px;
  238. line-height: 22px;
  239. text-align: center;
  240. border-radius: 50%;
  241. font-size: 12px;
  242. border: 1px solid;
  243. cursor: pointer;
  244. z-index: 1;
  245. }
  246. & > .drawing-item-copy{
  247. right: 56px;
  248. border-color: $lighterBlue;
  249. color: $lighterBlue;
  250. background: #fff;
  251. &:hover{
  252. background: $lighterBlue;
  253. color: #fff;
  254. }
  255. }
  256. & > .drawing-item-delete{
  257. right: 24px;
  258. border-color: #F56C6C;
  259. color: #F56C6C;
  260. background: #fff;
  261. &:hover{
  262. background: #F56C6C;
  263. color: #fff;
  264. }
  265. }
  266. }