tntd
Version:
tntd是基于 TNT Design 设计体系的 React UI 组件库,主要用于研发企业级中后台产品。
91 lines (77 loc) • 1.4 kB
text/less
.tnt-modal {
&.ant-modal {
max-width: 100vw;
padding-bottom: 0;
}
.ant-modal-content {
height: 100%;
display: flex;
flex-direction: column;
.ant-modal-close {
display: none;
}
}
.ant-modal-header {
position: relative;
padding: 8px 20px;
.tnt-modal-header-actions {
position: absolute;
top: 0;
right: 0;
height: 40px;
line-height: 40px;
.tnt-icon {
width: 40px;
height: 40px;
line-height: 40px;
cursor: pointer;
text-align: center;
display: inline-block;
&.close{
padding:0;
font-size:initial;
}
}
i.fullscreen:hover {
color: #2e81f7;
}
i.close:hover {
color: red;
}
}
}
.ant-modal-title {
.link {
margin-left: 10px;
font-size: 12px;
color: #999;
&:hover {
color: #2e81f7;
}
}
img {
position: relative;
width: 18px;
height: 18px;
margin-right: 8px;
vertical-align: text-top;
}
}
.ant-modal-body {
padding: 0;
// height: calc(100% - 39px);
flex: 1;
overflow: auto;
}
&.fullscreen {
.ant-modal-body {
height: calc(100vh - 39px);
background: #fff;
}
}
iframe {
border: none;
width: 100%;
height: 100%;
}
}