Files
boursecu_user/src/styles/app-premium-modal.less
T

199 lines
4.3 KiB
Plaintext
Raw Normal View History

2026-10-22 10:36:43 +03:30
/** تم یکسان مدال‌های boursecu user — لوکس / پریمیوم */
.app-premium-modal.ant-modal-wrap {
backdrop-filter: blur(2px);
}
.app-premium-modal {
.ant-modal-content {
direction: rtl;
display: flex;
flex-direction: column;
max-height: min(92dvh, 720px);
overflow: hidden;
padding: 0 !important;
border-radius: 1.125rem;
border: 1px solid rgba(201, 160, 98, 0.35);
box-shadow:
0 24px 48px rgba(15, 39, 68, 0.28),
0 0 0 1px rgba(255, 255, 255, 0.04) inset;
background: #fff;
position: relative;
}
.ant-modal-header {
flex-shrink: 0;
position: relative;
z-index: 1;
margin: 0;
min-height: 3.25rem;
display: flex;
align-items: center;
justify-content: flex-start;
padding: 0.875rem 1rem 0.875rem 3rem;
direction: rtl;
text-align: right;
background: linear-gradient(180deg, #faf8f5 0%, #fff 100%);
border-bottom: 1px solid rgba(201, 160, 98, 0.2);
border-radius: 1.125rem 1.125rem 0 0;
}
.ant-modal-title {
flex: 1 1 auto;
min-width: 0;
margin: 0;
padding: 0;
line-height: 1.45;
text-align: right;
font-size: 1.0625rem;
font-weight: 800;
color: #0f2744;
letter-spacing: -0.01em;
}
.app-premium-modal__title {
display: inline-flex;
align-items: center;
justify-content: flex-start;
gap: 0.5rem;
direction: rtl;
width: 100%;
}
.app-premium-modal__title-icon {
flex-shrink: 0;
color: var(--App-secondary-color, #c9a062);
}
.ant-modal-close {
position: absolute;
inset-inline-start: 0.75rem !important;
inset-inline-end: auto !important;
left: 0.75rem !important;
right: auto !important;
top: 0.875rem !important;
margin: 0;
width: 2rem;
height: 2rem;
border-radius: 999px;
background: rgba(15, 39, 68, 0.06);
color: #0f2744;
transition: background 0.2s ease;
display: flex;
align-items: center;
justify-content: center;
z-index: 2;
&:hover {
background: rgba(15, 39, 68, 0.1);
}
.ant-modal-close-x {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
line-height: 1;
font-size: 0.875rem;
}
}
.ant-modal-body {
flex: 1 1 auto;
min-height: 0;
padding: 0.75rem 1.125rem 0.5rem;
background: #fff;
}
#body {
max-height: min(56dvh, 440px);
overflow-y: auto !important;
overscroll-behavior: contain;
-webkit-overflow-scrolling: touch;
padding: 0.35rem 0.125rem 0.5rem !important;
}
.ant-modal-footer {
flex-shrink: 0;
margin: 0;
padding: 0.75rem 1.125rem 1rem;
border-top: 1px solid rgba(15, 39, 68, 0.08);
background: #faf8f5;
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
justify-content: flex-end;
}
.ant-modal-footer .ant-btn {
min-height: 2.5rem;
border-radius: 0.75rem !important;
font-weight: 700;
padding-inline: 1.25rem;
}
.ant-modal-footer .ant-btn-primary,
.app-premium-modal__btn-primary {
border: none !important;
background: linear-gradient(135deg, #0f2744 0%, #1a365d 55%, #234876 100%) !important;
box-shadow: 0 8px 20px rgba(15, 39, 68, 0.22);
}
.ant-modal-footer .ant-btn-default {
border-color: rgba(15, 39, 68, 0.15) !important;
color: #0f2744 !important;
background: #fff !important;
}
&.app-premium-modal--no-header {
.ant-modal-header {
display: none;
}
.ant-modal-close {
display: none;
}
.ant-modal-body {
padding-top: 1rem;
}
}
&.app-premium-modal--scroll-tall #body {
max-height: min(58dvh, 480px) !important;
}
&.app-premium-modal--fluid-body #body {
max-height: none !important;
overflow: visible !important;
padding-top: 0 !important;
padding-bottom: 0.25rem !important;
}
&.app-premium-modal--wide-panel {
.ant-modal-body {
padding-inline: 1.5rem;
padding-bottom: 1rem;
}
#body {
max-height: calc(100dvh - 12rem);
}
}
}
@media screen and (max-width: 767.98px) {
.app-premium-modal {
.ant-modal {
max-width: calc(100vw - 1rem);
margin: 0 auto;
top: 1.5vh;
}
&.app-premium-modal--scroll-tall #body {
max-height: min(52dvh, 420px) !important;
}
}
}