ant-design-blazor/components/modal/style/patch.less
zxyao 4818d8b27b
feat(module: modal): support Maximizable (#2573)
* add maximizable button for Modal

* fix: patch.less

* export MaximizeBtnIcon and RestoreBtnIcon paramter

* refactor: fixed footer
2022-07-23 14:58:04 +08:00

53 lines
1.0 KiB
Plaintext

.ant-modal-max {
display: flex;
flex-direction: column;
& > .ant-modal-content {
width: 100vw;
height: 100vh;
display: flex;
flex-direction: column;
& > .ant-modal-body {
flex-grow: 1;
overflow: auto;
}
}
}
.ant-modal-max-btn {
position: absolute;
top: 0;
right: @modal-header-close-size;
z-index: 10;
padding: 0;
color: rgba(0,0,0,.45);
font-weight: 700;
line-height: 1;
text-decoration: none;
background: 0 0;
border: 0;
outline: 0;
cursor: pointer;
transition: color .3s;
&-x {
display: block;
width: @modal-header-close-size;
height: @modal-header-close-size;
font-size: @font-size-lg;
font-style: normal;
line-height: @modal-header-close-size;
text-align: center;
text-transform: none;
text-rendering: auto;
}
&:focus,
&:hover {
color: @icon-color-hover;
text-decoration: none;
}
}