Files
mini-programs/src/components/CommonDialog/index.module.scss
2025-08-30 22:25:39 +08:00

86 lines
1.9 KiB
SCSS

@use '~@/scss/themeColor.scss' as theme;
.custom-dialog {
:global(.nut-dialog) {
border-radius: 12px !important;
padding: 0 !important;
max-width: 320px !important;
width: 100% !important;
text-align: center !important;
}
:global(.nut-dialog-content) {
margin:0 !important;
}
:global(.nut-dialog-header) {
margin-bottom: 8px !important;
}
:global(.nut-dialog-title) {
font-size: 18px !important;
font-weight: 600 !important;
color: #000000 !important;
}
:global(.nut-dialog-content) {
min-width: 280px !important;
}
:global(.nut-dialog-footer) {
display: flex !important;
padding: 0 !important;
height: 47.5px;
justify-content: center;
align-items: center;
border-top: 1px solid theme.$primary-border-light-color;
border-bottom-left-radius: 12px;
border-bottom-right-radius: 12px;
overflow: hidden;
}
:global(.nut-dialog-footer .nut-button) {
flex: 1 !important;
font-size: 15px !important;
border-radius: 0;
padding: 0;
margin: 0;
border: none;
background: #fff;
border-right: 1px solid theme.$primary-border-light-color !important;
height: 100%;
&:last-child {
border-right: none !important;
}
}
:global(.nut-dialog-footer .nut-button-default) {
color: rgba(22, 24, 35, 0.75) !important;
}
:global(.nut-dialog-footer .nut-button-primary) {
color: #161823 !important;
}
:global(.nut-dialog-footer .nut-button:hover) {
opacity: 0.8 !important;
}
.confirm-content{
padding: 24px 20px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 8px;
.confirm-content-title{
font-size: 17px;
font-weight: 500;
line-height: 24px;
color: #161823;
}
.confirm-content-desc{
font-size: 14px;
color: rgba(22, 24, 35, 0.75)
}
}
}