custom-menu.less 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. @import "../ms-admin/4.7.0/less/app.less";
  2. // 自定义菜单
  3. .ms-custom-menu {
  4. color: rgb(242, 242, 246);
  5. .ms-custom-container {
  6. .ms-flex();
  7. &>.ms-container{
  8. padding: 0;
  9. background: transparent;
  10. }
  11. // 侧边
  12. .el-aside {
  13. background: #fff;
  14. .ms-width-height(280px, 470px) !important;
  15. // 微信界面
  16. .el-container {
  17. // 头部
  18. .el-header {
  19. .ms-line-height(40px) !important;
  20. .ms-font(16px, #fff);
  21. text-align: center;
  22. background: #323232;
  23. }
  24. .el-main {
  25. padding: 0;
  26. .ms-width-height(280px, 379px) !important;
  27. }
  28. .el-footer {
  29. white-space: nowrap;
  30. padding: 0;
  31. font-size: 0;
  32. background-color: #FAFAFA;
  33. .ms-width-height(280px, 50px) !important;
  34. .ms-flex(flex-start);
  35. border-top: 1px solid @borderColor !important;
  36. >.el-button {
  37. .ms-width-height(40px, 50px) !important;
  38. padding: 0 !important;
  39. border: none !important;
  40. border-right: 1px solid @borderColor !important;
  41. }
  42. .el-button {
  43. border-radius: 0 !important;
  44. height: 50px !important;
  45. background: transparent !important;
  46. }
  47. .ms-create-menu {
  48. flex: 1;
  49. font-size: 0;
  50. .ms-flex(space-between);
  51. .el-button {
  52. flex: 1;
  53. border: none !important;
  54. background: transparent !important;
  55. span {
  56. color: #333;
  57. }
  58. }
  59. .ms-create-sub-menu {
  60. flex: 1;
  61. position: relative;
  62. >.el-button:first-child {
  63. width: 100%;
  64. }
  65. >.el-button:last-child {
  66. position: absolute;
  67. top: -60px;
  68. left: 0;
  69. border: 1px solid @borderColor !important;
  70. width: 100%;
  71. }
  72. }
  73. // 添加菜单
  74. .el-button--default {
  75. border-left: 1px solid @borderColor !important;
  76. padding: 0 !important;
  77. flex: 1;
  78. }
  79. }
  80. }
  81. }
  82. }
  83. // 内容
  84. .el-main {
  85. padding: 0;
  86. padding-left: 20px;
  87. flex: 1;
  88. height: 470px;
  89. // 内容区域卡片
  90. .custom-menu-card {
  91. height: 100%;
  92. // 内容菜单表单
  93. .ms-custom-menu-name,.ms-custom-menu-content {
  94. .el-form-item__content {
  95. .el-input {
  96. .ms-width-height(153px, 30px) !important;
  97. }
  98. .ms-flex(flex-start);
  99. span {
  100. margin-left: 10px;
  101. .ms-font(@auxiliarySize, @auxiliaryColor);
  102. }
  103. }
  104. }
  105. .ms-custom-menu-content {
  106. .el-form-item__content {
  107. .el-input {
  108. .ms-width-height(306px, 30px) !important;
  109. }
  110. }
  111. }
  112. // 菜单内容
  113. .ms-custom-menu-content {
  114. .el-tabs {
  115. border: 1px solid @borderColor;
  116. .el-tabs__header {
  117. background: #f2f2f6;
  118. border-radius: 4px 4px 0 0 !important;
  119. margin: 0 !important;
  120. .el-tabs__nav-scroll {
  121. padding: 0 20px;
  122. i {
  123. margin-right: 8px;
  124. }
  125. }
  126. }
  127. .el-tab-pane {
  128. padding: 20px;
  129. .ms-width-height(100%, 220px);
  130. .ms-flex();
  131. // 素材库
  132. >div {
  133. flex: 1;
  134. border: 1px dashed @borderColor;
  135. .ms-flex(center);
  136. align-items: center;
  137. flex-direction: column;
  138. i {
  139. .ms-font(20px, @themeColor, bolder);
  140. }
  141. span {
  142. margin-top: 8px;
  143. line-height: 1;
  144. }
  145. &:hover {
  146. cursor: pointer;
  147. }
  148. }
  149. >div:last-child {
  150. margin-left: 20px;
  151. }
  152. }
  153. }
  154. }
  155. }
  156. }
  157. }
  158. }