Merge branch '4.7.0' of https://gitee.com/mingSoft/MCMS.git into 4.7.0
commit
458af1cf95
3 changed files with 246 additions and 27 deletions
@ -0,0 +1,52 @@ |
||||
// 新建图文 |
||||
@import "../ms-admin/4.7.0/less/app.less"; |
||||
.ms-article{ |
||||
.el-container{ |
||||
// 侧边 |
||||
.el-aside{ |
||||
padding:14px; |
||||
// 主文章 |
||||
.ms-main-article{ |
||||
position: relative; |
||||
img{ |
||||
.ms-width-height(100%,146px); |
||||
} |
||||
.ms-main-article-mask{ |
||||
background: #000; |
||||
opacity: .2; |
||||
.ms-width-height(100%,146px); |
||||
position: absolute; |
||||
top: 0; |
||||
left: 0; |
||||
} |
||||
span{ |
||||
position: absolute; |
||||
bottom: 0; |
||||
padding: 15px; |
||||
color: #fff; |
||||
.ms-ellipsis-clamp(2); |
||||
} |
||||
} |
||||
// 子文章 |
||||
.ms-article-item{ |
||||
.ms-width-height(100%,70px); |
||||
.ms-flex(); |
||||
padding:10px 0; |
||||
border-bottom: 1px solid @borderColor; |
||||
p{ |
||||
margin: 0 10px 0 0; |
||||
.ms-flex(); |
||||
align-items: center; |
||||
span{ |
||||
width: 100%; |
||||
display: inline-block; |
||||
.ms-ellipsis-clamp(1); |
||||
} |
||||
} |
||||
img{ |
||||
.ms-width-height(50px); |
||||
} |
||||
} |
||||
} |
||||
} |
||||
} |
||||
@ -0,0 +1,154 @@ |
||||
/* |
||||
*这里的值严格按照UI设计图标注值来进行设置 |
||||
*/ |
||||
/* |
||||
*颜色 |
||||
*/ |
||||
/* |
||||
*页面的边距 |
||||
*/ |
||||
/* |
||||
*字体 |
||||
*/ |
||||
/* |
||||
*头像 |
||||
*/ |
||||
/* |
||||
* 按钮 |
||||
*/ |
||||
/* |
||||
*对常见的多行样式进行了方法封装,方便调用,加快开发效率 |
||||
*/ |
||||
html, |
||||
body { |
||||
min-height: 100vh; |
||||
background-color: #eee; |
||||
margin: 0; |
||||
font-weight: initial !important; |
||||
font-size: 14px !important; |
||||
color: #333 !important; |
||||
} |
||||
html *, |
||||
body * { |
||||
text-decoration: none !important; |
||||
font-family: Verdana, Arial, Helvetica, sans-serif; |
||||
box-sizing: border-box; |
||||
} |
||||
.ms-ellipsis { |
||||
overflow: hidden; |
||||
text-overflow: ellipsis; |
||||
white-space: nowrap; |
||||
display: block; |
||||
} |
||||
.ms-align-center { |
||||
display: flex; |
||||
align-items: center; |
||||
} |
||||
input::-webkit-input-placeholder, |
||||
textarea::-webkit-input-placeholder { |
||||
font-weight: initial; |
||||
font-size: 12px; |
||||
color: #999; |
||||
resize: none; |
||||
} |
||||
*::-webkit-scrollbar { |
||||
width: 8px; |
||||
height: 8px; |
||||
} |
||||
/*定义滚动条轨道 内阴影+圆角*/ |
||||
*::-webkit-scrollbar-track { |
||||
border-radius: 10px; |
||||
/*滚动条的背景区域的圆角*/ |
||||
background-color: #eee; |
||||
/*滚动条的背景颜色*/ |
||||
} |
||||
/*定义滑块 内阴影+圆角*/ |
||||
*::-webkit-scrollbar-thumb { |
||||
border-radius: 10px; |
||||
/*滚动条的圆角*/ |
||||
background-color: #ddd; |
||||
/*滚动条的背景颜色*/ |
||||
} |
||||
.ms-container { |
||||
margin: 12px; |
||||
height: 100%; |
||||
padding: 14px 14px 0 14px; |
||||
background: #fff; |
||||
} |
||||
.ms-header { |
||||
padding: 10px; |
||||
margin: 0; |
||||
border-bottom: 1px solid #ddd; |
||||
background: #fff; |
||||
height: 50px; |
||||
} |
||||
.ms-pagination { |
||||
padding: 20px 0; |
||||
text-align: right; |
||||
} |
||||
.ms-fr { |
||||
float: right; |
||||
} |
||||
.ms-tr { |
||||
text-align: right; |
||||
} |
||||
.el-button + .el-button { |
||||
margin-left: 0; |
||||
} |
||||
.ms-article .el-container .el-aside { |
||||
padding: 14px; |
||||
} |
||||
.ms-article .el-container .el-aside .ms-main-article { |
||||
position: relative; |
||||
} |
||||
.ms-article .el-container .el-aside .ms-main-article img { |
||||
width: 100%; |
||||
height: 146px; |
||||
} |
||||
.ms-article .el-container .el-aside .ms-main-article .ms-main-article-mask { |
||||
background: #000; |
||||
opacity: .2; |
||||
width: 100%; |
||||
height: 146px; |
||||
position: absolute; |
||||
top: 0; |
||||
left: 0; |
||||
} |
||||
.ms-article .el-container .el-aside .ms-main-article span { |
||||
position: absolute; |
||||
bottom: 0; |
||||
padding: 15px; |
||||
color: #fff; |
||||
overflow: hidden; |
||||
text-overflow: ellipsis; |
||||
display: -webkit-box; |
||||
-webkit-line-clamp: 2; |
||||
-webkit-box-orient: vertical; |
||||
} |
||||
.ms-article .el-container .el-aside .ms-article-item { |
||||
width: 100%; |
||||
height: 70px; |
||||
display: flex; |
||||
justify-content: space-between; |
||||
padding: 10px 0; |
||||
border-bottom: 1px solid #ddd; |
||||
} |
||||
.ms-article .el-container .el-aside .ms-article-item p { |
||||
margin: 0 10px 0 0; |
||||
display: flex; |
||||
justify-content: space-between; |
||||
align-items: center; |
||||
} |
||||
.ms-article .el-container .el-aside .ms-article-item p span { |
||||
width: 100%; |
||||
display: inline-block; |
||||
overflow: hidden; |
||||
text-overflow: ellipsis; |
||||
display: -webkit-box; |
||||
-webkit-line-clamp: 1; |
||||
-webkit-box-orient: vertical; |
||||
} |
||||
.ms-article .el-container .el-aside .ms-article-item img { |
||||
width: 50px; |
||||
height: 50px; |
||||
} |
||||
Loading…
Reference in new issue