article.less 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  1. // 新建图文
  2. @import "../ms-admin/4.7.0/less/app.less";
  3. .ms-article {
  4. .ms-flex();
  5. width: 100%;
  6. background: transparent !important;
  7. padding: 0 !important;
  8. .ms-article-mask {
  9. background: #000;
  10. opacity: .2;
  11. .ms-width-height(100%, 146px);
  12. position: absolute;
  13. top: 0;
  14. left: 0;
  15. }
  16. .el-container {
  17. .ms-container {
  18. padding: 0;
  19. background: transparent;
  20. align-items: flex-start;
  21. }
  22. // 侧边
  23. .el-aside {
  24. padding: 14px;
  25. background: #fff;
  26. // 主文章
  27. .ms-main-article {
  28. position: relative;
  29. img {
  30. .ms-width-height(100%, 146px);
  31. }
  32. span {
  33. position: absolute;
  34. bottom: 0;
  35. margin: 15px;
  36. color: #fff;
  37. .ms-ellipsis-clamp(2);
  38. word-break: break-all;//数字单词的情况
  39. }
  40. } // 子文章
  41. .ms-article-item {
  42. .ms-width-height(100%, 70px);
  43. .ms-flex();
  44. padding: 10px 0;
  45. border-bottom: 1px solid @borderColor;
  46. position: relative;
  47. p {
  48. margin: 0 10px 0 0;
  49. .ms-flex();
  50. align-items: center;
  51. span {
  52. width: 100%;
  53. display: inline-block;
  54. .ms-ellipsis-clamp(2);
  55. }
  56. }
  57. img {
  58. .ms-width-height(50px);
  59. }
  60. // 遮罩
  61. .ms-article-item-mask{
  62. visibility: hidden;
  63. background: rgb(126, 126, 126);
  64. opacity: .8;
  65. .ms-width-height(100%,50%);
  66. position: absolute;
  67. bottom:0;
  68. .ms-flex(flex-end);
  69. align-items: center;
  70. >i{
  71. .ms-font(14px,#fff);
  72. margin:0 10px 0 auto;
  73. display: none;
  74. }
  75. }
  76. &:hover {
  77. cursor: pointer;
  78. }
  79. &:hover{
  80. .ms-article-item-mask{
  81. visibility: visible;
  82. >i{
  83. display: block;
  84. }
  85. }
  86. }
  87. } // 尾部
  88. .ms-article-footer {
  89. background: #fff;
  90. padding-top: 20px;
  91. .el-button {
  92. width: 100%;
  93. background: rgb(242, 242, 246);
  94. i,
  95. span {
  96. .ms-font(@auxiliarySize, @auxiliaryColor);
  97. }
  98. }
  99. }
  100. } // 内容区域
  101. .el-main {
  102. flex: 1;
  103. margin-left: 14px;
  104. padding: 0 !important;
  105. .ms-main-header {
  106. position: relative;
  107. background: #fff;
  108. .ms-flex();
  109. height: 180px;
  110. padding: 20px;
  111. padding-bottom: 24px;
  112. box-sizing: border-box;
  113. border-bottom: 1px solid @borderColor; // 图片上传
  114. .ms-pic-upload {
  115. .ms-width-height(140px,100%);
  116. border-radius: 4px;
  117. border: 1px dashed @borderColor;
  118. .ms-flex(center);
  119. flex-direction: column;
  120. margin-right: 20px;
  121. .el-upload {
  122. .ms-flex();
  123. flex-direction: column;
  124. align-items: center;
  125. span {
  126. .ms-font(@auxiliarySize, @auxiliaryColor);
  127. margin-top: 4px;
  128. }
  129. i {
  130. .ms-font(18px, @auxiliaryColor);
  131. }
  132. // 文章缩略图
  133. .article-thumbnail{
  134. .ms-width-height(140px);
  135. }
  136. >.ms-article-mask{
  137. .ms-width-height(140px);
  138. .ms-flex(center);
  139. align-items: center;
  140. left: 21px;
  141. top: 20px;
  142. z-index: 99;
  143. opacity: .6;
  144. >i{
  145. .ms-font(19px,#fff);
  146. }
  147. }
  148. }
  149. }
  150. // 表单
  151. .el-form {
  152. flex: 1;
  153. margin: 0 !important;
  154. .ms-flex();
  155. flex-direction: column;
  156. .el-form-item {
  157. margin-bottom: 0 !important;
  158. .el-input__suffix {
  159. top: -3px !important;
  160. >input{
  161. padding-right: 50px !important;
  162. }
  163. }
  164. // 标题输入框预留边距
  165. .basic-title-input{
  166. >.el-input__inner{
  167. padding-right:54px !important;
  168. }
  169. }
  170. }
  171. .el-form-item:last-child{
  172. padding-top: 4px;
  173. }
  174. }
  175. }
  176. .ms-main-body {
  177. height: calc(~'100% - 180px');
  178. background: #fff;
  179. .edui-editor-toolbarbox{
  180. border: none !important;
  181. box-shadow: none !important;
  182. }
  183. .edui-default {
  184. // 设置edui-default的class样式会导致选择工具栏会出现抖动,是因为这个class类是通用样式
  185. .edui-editor {
  186. border: none !important;
  187. .edui-editor-toolbarboxouter {
  188. background-color: none !important;
  189. background-image: none !important;
  190. box-shadow: none !important;
  191. border-bottom: none !important;
  192. } // 编辑器样式
  193. .edui-editor {
  194. border: none !important;
  195. .edui-editor-toolbarbox {
  196. box-shadow: none !important;
  197. .edui-editor-toolbarboxouter {
  198. background-color: transparent !important;
  199. background-image: none !important;
  200. border: none !important;
  201. border-radius: 0 !important;
  202. box-shadow: none !important;
  203. }
  204. }
  205. }
  206. }
  207. }
  208. .edui-editor-toolbarboxinner{
  209. background: #fff;
  210. }
  211. }
  212. }
  213. }
  214. }