Switch SuperAdmin UI to IRANSans and fix mobile overflow.
Use iranSans woff2 globally and harden SMS/layout grids so page heads and stats stay inside the viewport on small screens. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -94,7 +94,9 @@ onMounted(loadSmsToggle)
|
|||||||
<style scoped>
|
<style scoped>
|
||||||
.shell {
|
.shell {
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
|
max-width: 100%;
|
||||||
background: #eef2f7;
|
background: #eef2f7;
|
||||||
|
overflow-x: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.topbar {
|
.topbar {
|
||||||
@@ -218,8 +220,10 @@ onMounted(loadSmsToggle)
|
|||||||
}
|
}
|
||||||
|
|
||||||
.content {
|
.content {
|
||||||
padding: 16px;
|
padding: 12px;
|
||||||
max-width: 1200px;
|
max-width: 1200px;
|
||||||
|
width: 100%;
|
||||||
|
min-width: 0;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -231,5 +235,7 @@ onMounted(loadSmsToggle)
|
|||||||
@media (max-width: 640px) {
|
@media (max-width: 640px) {
|
||||||
.sms-toggle-label { display: none; }
|
.sms-toggle-label { display: none; }
|
||||||
.user-name { display: none; }
|
.user-name { display: none; }
|
||||||
|
.topbar { gap: 8px; padding: 12px; }
|
||||||
|
.brand-btn small { display: none; }
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -174,7 +174,7 @@ onMounted(loadTenants)
|
|||||||
|
|
||||||
.tenant-grid {
|
.tenant-grid {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
|
grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr));
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -199,7 +199,7 @@ onMounted(loadTenants)
|
|||||||
|
|
||||||
.tenant-grid {
|
.tenant-grid {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
|
grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr));
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -174,7 +174,7 @@ onMounted(loadTenants)
|
|||||||
.tenant-group-head span { color: #8b95a8; font-size: 0.82rem; }
|
.tenant-group-head span { color: #8b95a8; font-size: 0.82rem; }
|
||||||
.tenant-grid {
|
.tenant-grid {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
|
grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
|
||||||
gap: 8px;
|
gap: 8px;
|
||||||
}
|
}
|
||||||
.tenant-card {
|
.tenant-card {
|
||||||
|
|||||||
+148
-40
@@ -436,11 +436,13 @@ onMounted(async () => {
|
|||||||
<div class="page-head-text">
|
<div class="page-head-text">
|
||||||
<h1 class="page-title">{{ tenant?.nameFa || 'پنل پیامک' }}</h1>
|
<h1 class="page-title">{{ tenant?.nameFa || 'پنل پیامک' }}</h1>
|
||||||
<p class="page-sub">مدیریت کیف پول، تعرفه و گزارش ارسال پیامک</p>
|
<p class="page-sub">مدیریت کیف پول، تعرفه و گزارش ارسال پیامک</p>
|
||||||
|
<div v-if="tenant" class="page-head-meta">
|
||||||
|
<a-tag :color="tenant.product === 'hamkar' ? 'cyan' : 'orange'">
|
||||||
|
{{ tenant.product === 'hamkar' ? 'همکار' : 'خانگی' }}
|
||||||
|
</a-tag>
|
||||||
|
<span class="domain">{{ tenant.domain }}</span>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<a-tag v-if="tenant" :color="tenant.product === 'hamkar' ? 'cyan' : 'orange'">
|
|
||||||
{{ tenant.product === 'hamkar' ? 'همکار' : 'خانگی' }}
|
|
||||||
</a-tag>
|
|
||||||
<span v-if="tenant" class="domain">{{ tenant.domain }}</span>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<a-spin :spinning="loading">
|
<a-spin :spinning="loading">
|
||||||
@@ -594,6 +596,7 @@ onMounted(async () => {
|
|||||||
v-else-if="periodReport?.byProvider?.length"
|
v-else-if="periodReport?.byProvider?.length"
|
||||||
size="small"
|
size="small"
|
||||||
:pagination="false"
|
:pagination="false"
|
||||||
|
:scroll="{ x: true }"
|
||||||
:data-source="periodReport.byProvider"
|
:data-source="periodReport.byProvider"
|
||||||
:columns="providerReportColumns"
|
:columns="providerReportColumns"
|
||||||
row-key="provider"
|
row-key="provider"
|
||||||
@@ -623,6 +626,7 @@ onMounted(async () => {
|
|||||||
size="small"
|
size="small"
|
||||||
:loading="chargeReportLoading"
|
:loading="chargeReportLoading"
|
||||||
:pagination="false"
|
:pagination="false"
|
||||||
|
:scroll="{ x: true }"
|
||||||
:data-source="chargeReport.items"
|
:data-source="chargeReport.items"
|
||||||
:columns="chargeReportColumns"
|
:columns="chargeReportColumns"
|
||||||
row-key="id"
|
row-key="id"
|
||||||
@@ -654,6 +658,7 @@ onMounted(async () => {
|
|||||||
:loading="logsLoading"
|
:loading="logsLoading"
|
||||||
:columns="logColumns"
|
:columns="logColumns"
|
||||||
:data-source="logsRows"
|
:data-source="logsRows"
|
||||||
|
:scroll="{ x: true }"
|
||||||
row-key="id"
|
row-key="id"
|
||||||
:pagination="{
|
:pagination="{
|
||||||
current: logsPage,
|
current: logsPage,
|
||||||
@@ -685,6 +690,7 @@ onMounted(async () => {
|
|||||||
:loading="ledgerLoading"
|
:loading="ledgerLoading"
|
||||||
:columns="ledgerColumns"
|
:columns="ledgerColumns"
|
||||||
:data-source="ledgerRows"
|
:data-source="ledgerRows"
|
||||||
|
:scroll="{ x: true }"
|
||||||
row-key="id"
|
row-key="id"
|
||||||
:pagination="{
|
:pagination="{
|
||||||
current: ledgerPage,
|
current: ledgerPage,
|
||||||
@@ -707,6 +713,32 @@ onMounted(async () => {
|
|||||||
.sms-page {
|
.sms-page {
|
||||||
display: grid;
|
display: grid;
|
||||||
gap: 14px;
|
gap: 14px;
|
||||||
|
width: 100%;
|
||||||
|
max-width: 100%;
|
||||||
|
min-width: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sms-page :deep(.ant-spin-nested-loading),
|
||||||
|
.sms-page :deep(.ant-spin-container) {
|
||||||
|
width: 100%;
|
||||||
|
max-width: 100%;
|
||||||
|
min-width: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sms-page :deep(.ant-table-wrapper) {
|
||||||
|
width: 100%;
|
||||||
|
max-width: 100%;
|
||||||
|
overflow-x: auto;
|
||||||
|
-webkit-overflow-scrolling: touch;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sms-page :deep(.ant-tabs) {
|
||||||
|
max-width: 100%;
|
||||||
|
min-width: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sms-page :deep(.ant-tabs-nav) {
|
||||||
|
margin-bottom: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.page-head {
|
.page-head {
|
||||||
@@ -715,33 +747,52 @@ onMounted(async () => {
|
|||||||
gap: 8px;
|
gap: 8px;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
margin-bottom: 4px;
|
margin-bottom: 4px;
|
||||||
|
width: 100%;
|
||||||
|
min-width: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.page-head-text {
|
.page-head-text {
|
||||||
flex: 1;
|
flex: 1 1 160px;
|
||||||
min-width: 180px;
|
min-width: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page-head-meta {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
align-items: center;
|
||||||
|
gap: 8px;
|
||||||
|
margin-top: 8px;
|
||||||
|
min-width: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.domain {
|
.domain {
|
||||||
color: #8b95a8;
|
color: #8b95a8;
|
||||||
font-size: 0.85rem;
|
font-size: 0.85rem;
|
||||||
direction: ltr;
|
direction: ltr;
|
||||||
|
max-width: 100%;
|
||||||
|
overflow-wrap: anywhere;
|
||||||
|
word-break: break-all;
|
||||||
}
|
}
|
||||||
|
|
||||||
.stat-grid {
|
.stat-grid {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
grid-template-columns: 1fr;
|
||||||
gap: 12px;
|
gap: 12px;
|
||||||
|
width: 100%;
|
||||||
|
min-width: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.stat-card {
|
.stat-card {
|
||||||
background: #fff;
|
background: #fff;
|
||||||
border: 1px solid #e8eef5;
|
border: 1px solid #e8eef5;
|
||||||
border-radius: 16px;
|
border-radius: 16px;
|
||||||
padding: 16px;
|
padding: 14px;
|
||||||
display: grid;
|
display: grid;
|
||||||
gap: 8px;
|
gap: 8px;
|
||||||
box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
|
box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
|
||||||
|
min-width: 0;
|
||||||
|
max-width: 100%;
|
||||||
|
overflow-wrap: anywhere;
|
||||||
}
|
}
|
||||||
|
|
||||||
.stat-card span {
|
.stat-card span {
|
||||||
@@ -750,8 +801,9 @@ onMounted(async () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.stat-card strong {
|
.stat-card strong {
|
||||||
font-size: 1.45rem;
|
font-size: 1.25rem;
|
||||||
color: #0f172a;
|
color: #0f172a;
|
||||||
|
overflow-wrap: anywhere;
|
||||||
}
|
}
|
||||||
|
|
||||||
.stat-card small,
|
.stat-card small,
|
||||||
@@ -760,6 +812,7 @@ onMounted(async () => {
|
|||||||
font-size: 0.82rem;
|
font-size: 0.82rem;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
color: #64748b;
|
color: #64748b;
|
||||||
|
overflow-wrap: anywhere;
|
||||||
}
|
}
|
||||||
|
|
||||||
.stat-label-row {
|
.stat-label-row {
|
||||||
@@ -767,6 +820,8 @@ onMounted(async () => {
|
|||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
gap: 8px;
|
gap: 8px;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
min-width: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.stat-card.healthy {
|
.stat-card.healthy {
|
||||||
@@ -805,8 +860,12 @@ onMounted(async () => {
|
|||||||
background: #fff;
|
background: #fff;
|
||||||
border: 1px solid #e8eef5;
|
border: 1px solid #e8eef5;
|
||||||
border-radius: 18px;
|
border-radius: 18px;
|
||||||
padding: 16px;
|
padding: 14px;
|
||||||
box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
|
box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
|
||||||
|
width: 100%;
|
||||||
|
max-width: 100%;
|
||||||
|
min-width: 0;
|
||||||
|
overflow-x: clip;
|
||||||
}
|
}
|
||||||
|
|
||||||
.panel-card h2 {
|
.panel-card h2 {
|
||||||
@@ -818,7 +877,7 @@ onMounted(async () => {
|
|||||||
|
|
||||||
.mgmt-row {
|
.mgmt-row {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 1fr 1fr;
|
grid-template-columns: 1fr;
|
||||||
gap: 12px;
|
gap: 12px;
|
||||||
margin-bottom: 12px;
|
margin-bottom: 12px;
|
||||||
}
|
}
|
||||||
@@ -829,6 +888,8 @@ onMounted(async () => {
|
|||||||
padding: 14px;
|
padding: 14px;
|
||||||
display: grid;
|
display: grid;
|
||||||
gap: 12px;
|
gap: 12px;
|
||||||
|
min-width: 0;
|
||||||
|
max-width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.subcard h3 {
|
.subcard h3 {
|
||||||
@@ -856,26 +917,21 @@ onMounted(async () => {
|
|||||||
.fields-2 {
|
.fields-2 {
|
||||||
display: grid;
|
display: grid;
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
}
|
width: 100%;
|
||||||
|
min-width: 0;
|
||||||
.inline-actions {
|
|
||||||
grid-template-columns: 1fr auto;
|
|
||||||
align-items: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.charge-grid {
|
|
||||||
grid-template-columns: 1fr 1.2fr auto;
|
|
||||||
align-items: center;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.filter-row {
|
.filter-row {
|
||||||
grid-template-columns: 1fr 1fr auto auto;
|
|
||||||
align-items: center;
|
|
||||||
margin-bottom: 12px;
|
margin-bottom: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fields-2 {
|
.inline-actions,
|
||||||
grid-template-columns: 1fr 1fr;
|
.charge-grid,
|
||||||
|
.filter-row,
|
||||||
|
.threshold-grid,
|
||||||
|
.fields-2,
|
||||||
|
.mgmt-row {
|
||||||
|
grid-template-columns: 1fr;
|
||||||
}
|
}
|
||||||
|
|
||||||
.block-row {
|
.block-row {
|
||||||
@@ -883,11 +939,18 @@ onMounted(async () => {
|
|||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
gap: 12px;
|
gap: 12px;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
flex-wrap: wrap;
|
||||||
border-radius: 14px;
|
border-radius: 14px;
|
||||||
border: 1px solid #bbf7d0;
|
border: 1px solid #bbf7d0;
|
||||||
background: #f0fdf4;
|
background: #f0fdf4;
|
||||||
padding: 14px;
|
padding: 14px;
|
||||||
margin-bottom: 12px;
|
margin-bottom: 12px;
|
||||||
|
min-width: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.block-row > div {
|
||||||
|
flex: 1 1 200px;
|
||||||
|
min-width: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.block-row.blocked {
|
.block-row.blocked {
|
||||||
@@ -905,11 +968,6 @@ onMounted(async () => {
|
|||||||
margin-bottom: 12px;
|
margin-bottom: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.threshold-grid {
|
|
||||||
grid-template-columns: 1fr 1fr auto;
|
|
||||||
align-items: end;
|
|
||||||
}
|
|
||||||
|
|
||||||
.tone-label {
|
.tone-label {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@@ -930,7 +988,7 @@ onMounted(async () => {
|
|||||||
|
|
||||||
.report-summary {
|
.report-summary {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
grid-template-columns: 1fr;
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
margin-bottom: 12px;
|
margin-bottom: 12px;
|
||||||
}
|
}
|
||||||
@@ -941,6 +999,7 @@ onMounted(async () => {
|
|||||||
padding: 12px;
|
padding: 12px;
|
||||||
display: grid;
|
display: grid;
|
||||||
gap: 4px;
|
gap: 4px;
|
||||||
|
min-width: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.report-summary span {
|
.report-summary span {
|
||||||
@@ -952,18 +1011,67 @@ onMounted(async () => {
|
|||||||
font-variant-numeric: tabular-nums;
|
font-variant-numeric: tabular-nums;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 1100px) {
|
.money-input,
|
||||||
.stat-grid,
|
.filter-row :deep(.jalali-date-field),
|
||||||
.mgmt-row,
|
.filter-row :deep(.ant-input),
|
||||||
.charge-grid,
|
.filter-row :deep(.ant-btn),
|
||||||
.filter-row,
|
.inline-actions :deep(.ant-input),
|
||||||
.threshold-grid,
|
.charge-grid :deep(.ant-input),
|
||||||
.fields-2,
|
.charge-grid :deep(.ant-btn) {
|
||||||
|
width: 100%;
|
||||||
|
max-width: 100%;
|
||||||
|
min-width: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width: 640px) {
|
||||||
|
.stat-grid {
|
||||||
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||||
|
}
|
||||||
.report-summary {
|
.report-summary {
|
||||||
grid-template-columns: 1fr;
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||||
|
}
|
||||||
|
.fields-2 {
|
||||||
|
grid-template-columns: 1fr 1fr;
|
||||||
|
}
|
||||||
|
.stat-card strong {
|
||||||
|
font-size: 1.35rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width: 900px) {
|
||||||
|
.mgmt-row {
|
||||||
|
grid-template-columns: 1fr 1fr;
|
||||||
}
|
}
|
||||||
.inline-actions {
|
.inline-actions {
|
||||||
grid-template-columns: 1fr;
|
grid-template-columns: 1fr auto;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
.charge-grid {
|
||||||
|
grid-template-columns: 1fr 1.2fr auto;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
.filter-row {
|
||||||
|
grid-template-columns: 1fr 1fr auto auto;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
.threshold-grid {
|
||||||
|
grid-template-columns: 1fr 1fr auto;
|
||||||
|
align-items: end;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width: 1100px) {
|
||||||
|
.stat-grid {
|
||||||
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||||
|
}
|
||||||
|
.stat-card {
|
||||||
|
padding: 16px;
|
||||||
|
}
|
||||||
|
.stat-card strong {
|
||||||
|
font-size: 1.45rem;
|
||||||
|
}
|
||||||
|
.panel-card {
|
||||||
|
padding: 16px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
+36
-46
@@ -1,73 +1,45 @@
|
|||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'Dana';
|
font-family: 'IRANSans';
|
||||||
src: url('./assets/fonts/Dana/Dana-Thin.ttf') format('truetype');
|
src: url('./assets/fonts/iranSans/woff2/IRANSansWeb(FaNum)_UltraLight.woff2') format('woff2');
|
||||||
font-weight: 100;
|
|
||||||
font-style: normal;
|
|
||||||
font-display: swap;
|
|
||||||
}
|
|
||||||
@font-face {
|
|
||||||
font-family: 'Dana';
|
|
||||||
src: url('./assets/fonts/Dana/Dana-ExtraLight.ttf') format('truetype');
|
|
||||||
font-weight: 200;
|
font-weight: 200;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
}
|
}
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'Dana';
|
font-family: 'IRANSans';
|
||||||
src: url('./assets/fonts/Dana/Dana-Light.ttf') format('truetype');
|
src: url('./assets/fonts/iranSans/woff2/IRANSansWeb(FaNum)_Light.woff2') format('woff2');
|
||||||
font-weight: 300;
|
font-weight: 300;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
}
|
}
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'Dana';
|
font-family: 'IRANSans';
|
||||||
src: url('./assets/fonts/Dana/Dana-Regular.ttf') format('truetype');
|
src: url('./assets/fonts/iranSans/woff2/IRANSansWeb(FaNum).woff2') format('woff2');
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
}
|
}
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'Dana';
|
font-family: 'IRANSans';
|
||||||
src: url('./assets/fonts/Dana/Dana-Medium.ttf') format('truetype');
|
src: url('./assets/fonts/iranSans/woff2/IRANSansWeb(FaNum)_Medium.woff2') format('woff2');
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
}
|
}
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'Dana';
|
font-family: 'IRANSans';
|
||||||
src: url('./assets/fonts/Dana/Dana-DemiBold.ttf') format('truetype');
|
src: url('./assets/fonts/iranSans/woff2/IRANSansWeb(FaNum)_Bold.woff2') format('woff2');
|
||||||
font-weight: 600;
|
|
||||||
font-style: normal;
|
|
||||||
font-display: swap;
|
|
||||||
}
|
|
||||||
@font-face {
|
|
||||||
font-family: 'Dana';
|
|
||||||
src: url('./assets/fonts/Dana/Dana-Bold.ttf') format('truetype');
|
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
}
|
}
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'Dana';
|
font-family: 'IRANSans';
|
||||||
src: url('./assets/fonts/Dana/Dana-ExtraBold.ttf') format('truetype');
|
src: url('./assets/fonts/iranSans/woff2/IRANSansWeb(FaNum)_Black.woff2') format('woff2');
|
||||||
font-weight: 800;
|
|
||||||
font-style: normal;
|
|
||||||
font-display: swap;
|
|
||||||
}
|
|
||||||
@font-face {
|
|
||||||
font-family: 'Dana';
|
|
||||||
src: url('./assets/fonts/Dana/Dana-Black.ttf') format('truetype');
|
|
||||||
font-weight: 900;
|
font-weight: 900;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
}
|
}
|
||||||
@font-face {
|
|
||||||
font-family: 'Dana';
|
|
||||||
src: url('./assets/fonts/Dana/Dana-UltraBold.ttf') format('truetype');
|
|
||||||
font-weight: 950;
|
|
||||||
font-style: normal;
|
|
||||||
font-display: swap;
|
|
||||||
}
|
|
||||||
|
|
||||||
:root {
|
:root {
|
||||||
--bg: #eef2f7;
|
--bg: #eef2f7;
|
||||||
@@ -83,8 +55,9 @@
|
|||||||
--shadow: 0 12px 32px rgba(45, 55, 72, 0.08);
|
--shadow: 0 12px 32px rgba(45, 55, 72, 0.08);
|
||||||
--shadow-hover: 0 18px 40px rgba(45, 55, 72, 0.12);
|
--shadow-hover: 0 18px 40px rgba(45, 55, 72, 0.12);
|
||||||
--radius: 24px;
|
--radius: 24px;
|
||||||
--font-dana: 'Dana', Tahoma, sans-serif;
|
--font-ui: 'IRANSans', Tahoma, sans-serif;
|
||||||
font-family: var(--font-dana);
|
--font-dana: var(--font-ui);
|
||||||
|
font-family: var(--font-ui);
|
||||||
}
|
}
|
||||||
|
|
||||||
* { box-sizing: border-box; }
|
* { box-sizing: border-box; }
|
||||||
@@ -92,19 +65,25 @@
|
|||||||
html, body, #app {
|
html, body, #app {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
min-height: 100%;
|
min-height: 100%;
|
||||||
font-family: var(--font-dana);
|
max-width: 100%;
|
||||||
|
font-family: var(--font-ui);
|
||||||
|
}
|
||||||
|
|
||||||
|
html {
|
||||||
|
overflow-x: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
color: var(--ink);
|
color: var(--ink);
|
||||||
background: var(--bg);
|
background: var(--bg);
|
||||||
-webkit-font-smoothing: antialiased;
|
-webkit-font-smoothing: antialiased;
|
||||||
|
overflow-x: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
button, input, textarea, select,
|
button, input, textarea, select,
|
||||||
.ant-btn, .ant-input, .ant-select, .ant-menu, .ant-modal,
|
.ant-btn, .ant-input, .ant-select, .ant-menu, .ant-modal,
|
||||||
.ant-message, .ant-form, .ant-typography, .ant-tabs {
|
.ant-message, .ant-form, .ant-typography, .ant-tabs {
|
||||||
font-family: var(--font-dana) !important;
|
font-family: var(--font-ui) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.brand-mark {
|
.brand-mark {
|
||||||
@@ -115,9 +94,13 @@ button, input, textarea, select,
|
|||||||
.page-shell {
|
.page-shell {
|
||||||
background: var(--panel);
|
background: var(--panel);
|
||||||
border-radius: var(--radius);
|
border-radius: var(--radius);
|
||||||
padding: 20px;
|
padding: 16px;
|
||||||
color: var(--ink);
|
color: var(--ink);
|
||||||
box-shadow: var(--shadow);
|
box-shadow: var(--shadow);
|
||||||
|
width: 100%;
|
||||||
|
max-width: 100%;
|
||||||
|
min-width: 0;
|
||||||
|
overflow-x: clip;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 768px) {
|
@media (min-width: 768px) {
|
||||||
@@ -126,9 +109,15 @@ button, input, textarea, select,
|
|||||||
|
|
||||||
.page-title {
|
.page-title {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
font-size: 1.35rem;
|
font-size: 1.2rem;
|
||||||
color: var(--ink);
|
color: var(--ink);
|
||||||
font-weight: 800;
|
font-weight: 800;
|
||||||
|
overflow-wrap: anywhere;
|
||||||
|
word-break: break-word;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width: 768px) {
|
||||||
|
.page-title { font-size: 1.35rem; }
|
||||||
}
|
}
|
||||||
|
|
||||||
.page-sub {
|
.page-sub {
|
||||||
@@ -136,6 +125,7 @@ button, input, textarea, select,
|
|||||||
color: var(--ink-soft);
|
color: var(--ink-soft);
|
||||||
font-size: 0.92rem;
|
font-size: 0.92rem;
|
||||||
line-height: 1.7;
|
line-height: 1.7;
|
||||||
|
overflow-wrap: anywhere;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dash-modules {
|
.dash-modules {
|
||||||
|
|||||||
+1
-1
@@ -3,7 +3,7 @@ import type { ThemeConfig } from 'ant-design-vue/es/config-provider/context'
|
|||||||
/** Soft light dashboard theme inspired by the reference UI */
|
/** Soft light dashboard theme inspired by the reference UI */
|
||||||
export const saTheme: ThemeConfig = {
|
export const saTheme: ThemeConfig = {
|
||||||
token: {
|
token: {
|
||||||
fontFamily: "'Dana', Tahoma, sans-serif",
|
fontFamily: "'IRANSans', Tahoma, sans-serif",
|
||||||
colorPrimary: '#20c997',
|
colorPrimary: '#20c997',
|
||||||
colorInfo: '#7c5cfc',
|
colorInfo: '#7c5cfc',
|
||||||
colorSuccess: '#20c997',
|
colorSuccess: '#20c997',
|
||||||
|
|||||||
Reference in New Issue
Block a user