philosophyship-mobile
Version:
philosophship-mobile 手机端H5 ui 样式库
79 lines (78 loc) • 1.75 kB
CSS
/*
* @Author: Shenxf
* @Date: 2019-07-24 22:12:59
* @Last Modified by: Shenxf
* @Last Modified time: 2019-07-27 15:56:04
*/
/* 模态框 */
.tt-modal{
display: none;
}
/* 控制模态框的显示 */
.tt-modal.show{
display: block;
}
/* 模态框窗口容器 */
.tt-modal .tt-modal-wrap{
position: absolute;
width: 75%;
max-width: 480px;
top: 45%;
transform: translateY(-50%);
left: 0;
right: 0;
margin: auto;
background: #fff;
border-radius: .4rem;
z-index: 301;
}
/* 模态框内容区 */
.tt-modal .tt-modal-body{
padding: 1.8rem .8rem 1.5rem;
text-align: center;
font-size: .8rem;
line-height: 1.2rem;
overflow: hidden;
}
/* 模态框尾部 */
.tt-modal .tt-modal-footer{
display: flex;
border-top: 1px solid #ddd;
}
/* 模态框尾部里按钮的样式 */
.tt-modal .tt-modal-footer .tt-btn{
border: none;
border-radius: 0;
width: 100%;
font-size: .8rem;
}
/* 模态框尾部中的按钮加上分隔 */
.tt-modal .tt-modal-footer .tt-btn + .tt-btn{
border-left: 1px solid #ddd;
}
/* 控制模态框内容区的内边距 */
.tt-modal .tt-modal-body.no-padding{
padding: 0;
}
/* 图片形式的模态框样式 */
.tt-modal .tt-modal-body .tt-modal-img{
display: block;
width: 100%;
border-radius: .3rem;
}
/* 纯图片模态框里的关闭按钮 */
.tt-modal .tt-modal-close{
position: absolute;
left: 0;
right: 0;
width: 1.3rem;
line-height: 1.3rem;
margin: auto;
bottom: -3rem;
text-align: center;
font-size: .8rem;
font-weight: 100;
color: #eee;
border: 1px solid #eee;
border-radius: 50%;
}