custom-menu.less 5.5 KB

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