| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215 |
- // 新建图文
- @import "../ms-admin/4.7.0/less/app.less";
- .ms-article {
- .ms-flex();
- width: 100%;
- background: transparent !important;
- padding: 0 !important;
- .ms-article-mask {
- background: #000;
- opacity: .2;
- .ms-width-height(100%, 146px);
- position: absolute;
- top: 0;
- left: 0;
- }
- .el-container {
- .ms-container {
- padding: 0;
- background: transparent;
- align-items: flex-start;
- }
- // 侧边
- .el-aside {
- padding: 14px;
- background: #fff;
- // 主文章
- .ms-main-article {
- position: relative;
- img {
- .ms-width-height(100%, 146px);
- }
- span {
- position: absolute;
- bottom: 0;
- margin: 15px;
- color: #fff;
- .ms-ellipsis-clamp(2);
- word-break: break-all;//数字单词的情况
- }
- } // 子文章
- .ms-article-item {
- .ms-width-height(100%, 70px);
- .ms-flex();
- padding: 10px 0;
- border-bottom: 1px solid @borderColor;
- position: relative;
- p {
- margin: 0 10px 0 0;
- .ms-flex();
- align-items: center;
- span {
- width: 100%;
- display: inline-block;
- .ms-ellipsis-clamp(2);
- }
- }
- img {
- .ms-width-height(50px);
- }
- // 遮罩
- .ms-article-item-mask{
- visibility: hidden;
- background: rgb(126, 126, 126);
- opacity: .8;
- .ms-width-height(100%,50%);
- position: absolute;
- bottom:0;
- .ms-flex(flex-end);
- align-items: center;
- >i{
- .ms-font(14px,#fff);
- margin:0 10px 0 auto;
- display: none;
- }
- }
- &:hover {
- cursor: pointer;
- }
- &:hover{
- .ms-article-item-mask{
- visibility: visible;
- >i{
- display: block;
- }
- }
- }
- } // 尾部
- .ms-article-footer {
- background: #fff;
- padding-top: 20px;
- .el-button {
- width: 100%;
- background: rgb(242, 242, 246);
- i,
- span {
- .ms-font(@auxiliarySize, @auxiliaryColor);
- }
- }
- }
- } // 内容区域
- .el-main {
- flex: 1;
- margin-left: 14px;
- padding: 0 !important;
- .ms-main-header {
- position: relative;
- background: #fff;
- .ms-flex();
- height: 180px;
- padding: 20px;
- padding-bottom: 24px;
- box-sizing: border-box;
- border-bottom: 1px solid @borderColor; // 图片上传
- .ms-pic-upload {
- .ms-width-height(140px,100%);
- border-radius: 4px;
- border: 1px dashed @borderColor;
- .ms-flex(center);
- flex-direction: column;
- margin-right: 20px;
- .el-upload {
- .ms-flex();
- flex-direction: column;
- align-items: center;
- span {
- .ms-font(@auxiliarySize, @auxiliaryColor);
- margin-top: 4px;
- }
- i {
- .ms-font(18px, @auxiliaryColor);
- }
- // 文章缩略图
- .article-thumbnail{
- .ms-width-height(140px);
- }
- >.ms-article-mask{
- .ms-width-height(140px);
- .ms-flex(center);
- align-items: center;
- left: 21px;
- top: 20px;
- z-index: 99;
- opacity: .6;
- >i{
- .ms-font(19px,#fff);
- }
- }
- }
- }
- // 表单
- .el-form {
- flex: 1;
- margin: 0 !important;
- .ms-flex();
- flex-direction: column;
- .el-form-item {
- margin-bottom: 0 !important;
- .el-input__suffix {
- top: -3px !important;
- >input{
- padding-right: 50px !important;
- }
- }
- // 标题输入框预留边距
- .basic-title-input{
- >.el-input__inner{
- padding-right:54px !important;
- }
- }
- }
- .el-form-item:last-child{
- padding-top: 4px;
- }
- }
- }
- .ms-main-body {
- height: calc(~'100% - 180px');
- background: #fff;
- .edui-editor-toolbarbox{
- border: none !important;
- box-shadow: none !important;
- }
- .edui-default {
- // 设置edui-default的class样式会导致选择工具栏会出现抖动,是因为这个class类是通用样式
- .edui-editor {
- border: none !important;
- .edui-editor-toolbarboxouter {
- background-color: none !important;
- background-image: none !important;
- box-shadow: none !important;
- border-bottom: none !important;
- } // 编辑器样式
- .edui-editor {
- border: none !important;
- .edui-editor-toolbarbox {
- box-shadow: none !important;
- .edui-editor-toolbarboxouter {
- background-color: transparent !important;
- background-image: none !important;
- border: none !important;
- border-radius: 0 !important;
- box-shadow: none !important;
- }
- }
- }
- }
- }
- .edui-editor-toolbarboxinner{
- background: #fff;
- }
- }
- }
- }
- }
|