279 lines
6.6 KiB
CSS
279 lines
6.6 KiB
CSS
@import "tailwindcss";
|
|
|
|
.rmdp-input {
|
|
min-height: 34px;
|
|
background-color: white;
|
|
border-radius: 12px !important;
|
|
border: 1px solid #d0d0d0 !important;
|
|
font-size: 12px !important;
|
|
width: 100% !important;
|
|
margin: 0px;
|
|
padding-right: 16px !important;
|
|
transition:
|
|
background-color 0.3s ease,
|
|
border-color 0.3s ease;
|
|
}
|
|
.readOny .rmdp-input {
|
|
background-color: #f5f5f5 !important;
|
|
border: none !important;
|
|
}
|
|
|
|
.rmdp-container {
|
|
width: 100%;
|
|
}
|
|
|
|
@layer base {
|
|
:root {
|
|
--background: 0 0% 100%;
|
|
--foreground: 222.2 84% 4.9%;
|
|
--card: 0 0% 100%;
|
|
--card-foreground: 222.2 84% 4.9%;
|
|
--popover: 0 0% 100%;
|
|
--popover-foreground: 222.2 84% 4.9%;
|
|
--primary: 0 0% 0%;
|
|
--primary-foreground: 210 40% 98%;
|
|
--secondary: 210 40% 96.1%;
|
|
--secondary-foreground: 222.2 47.4% 11.2%;
|
|
--muted: 210 40% 96.1%;
|
|
--muted-foreground: 215.4 16.3% 46.9%;
|
|
--accent: 210 40% 96.1%;
|
|
--accent-foreground: 222.2 47.4% 11.2%;
|
|
--destructive: 0 84.2% 60.2%;
|
|
--destructive-foreground: 210 40% 98%;
|
|
--border: 214.3 31.8% 91.4%;
|
|
--input: 214.3 31.8% 91.4%;
|
|
--ring: 222.2 84% 4.9%;
|
|
--radius: 0.5rem;
|
|
}
|
|
}
|
|
|
|
html {
|
|
direction: rtl;
|
|
overflow: hidden;
|
|
max-width: 100%;
|
|
}
|
|
|
|
body {
|
|
font-family: irancell;
|
|
margin: 0;
|
|
padding: 0;
|
|
width: 100%;
|
|
direction: rtl;
|
|
overflow: hidden !important;
|
|
background: #eceef6;
|
|
font-weight: 300;
|
|
overflow: hidden;
|
|
font-feature-settings: "lnum"; /* اطمینان از نمایش اعداد انگلیسی */
|
|
}
|
|
|
|
html,
|
|
body {
|
|
height: 100%;
|
|
margin: 0;
|
|
overflow: hidden !important; /* اعمال overflow: hidden با !important */
|
|
}
|
|
|
|
html,
|
|
body,
|
|
#root {
|
|
min-height: 100% !important;
|
|
height: 100%;
|
|
}
|
|
* {
|
|
outline: none;
|
|
}
|
|
input::placeholder,
|
|
textarea::placeholder {
|
|
color: #888888;
|
|
}
|
|
|
|
@theme {
|
|
--color-primary: #000;
|
|
--color-border: #d0d0d0;
|
|
--color-secondary: #ebedf5;
|
|
--color-description: #c3c7dd;
|
|
--color-desc: #8c90a3;
|
|
}
|
|
|
|
::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
body,
|
|
html {
|
|
scrollbar-width: none; /* Firefox */
|
|
-ms-overflow-style: none; /* IE 10+ */
|
|
}
|
|
|
|
.dltr {
|
|
direction: ltr;
|
|
}
|
|
|
|
.filterBlack {
|
|
filter: brightness(0) invert(0);
|
|
}
|
|
|
|
/* رنگ پسزمینه باید از خود BookPage بیاید (per-page). */
|
|
|
|
/* استایل برای ظاهر کتاب */
|
|
.flipbook-container {
|
|
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
|
|
border-radius: 12px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* موبایل: بدون سایهٔ کادر کتاب؛ overflow مخفی تا سایهٔ ورق باعث جابهجایی نشود */
|
|
@media (max-width: 767px) {
|
|
.flipbook-container {
|
|
box-shadow: none;
|
|
border-radius: 2px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.flipbook-container .stf__wrapper {
|
|
overflow: hidden !important;
|
|
}
|
|
|
|
.flipbook-container .stf__item {
|
|
contain: layout style paint;
|
|
overflow: hidden !important;
|
|
}
|
|
}
|
|
|
|
/* استایل برای صفحات داخل flipbook */
|
|
.flipbook-container .stf__item,
|
|
.flipbook-container .page {
|
|
border-radius: 0;
|
|
}
|
|
|
|
/* جلوگیری از نمایش محتوای صفحات غیرفعال هنگام هاور */
|
|
.flipbook-container .stf__item {
|
|
overflow: hidden !important;
|
|
isolation: isolate;
|
|
contain: layout style paint;
|
|
}
|
|
|
|
/* اطمینان از overflow hidden برای محتوای صفحات */
|
|
.flipbook-container .stf__item .page {
|
|
overflow: hidden !important;
|
|
position: relative;
|
|
isolation: isolate;
|
|
}
|
|
|
|
/* سایهٔ هر ورق — inset؛ بدون --simple تا موقع ورق هم بماند */
|
|
.flipbook-container .stf__item.--left .page {
|
|
box-shadow:
|
|
inset -16px 0 24px -12px rgba(0, 0, 0, 0.2),
|
|
inset 0 0 0 1px rgba(0, 0, 0, 0.04);
|
|
}
|
|
|
|
.flipbook-container .stf__item.--right .page {
|
|
box-shadow:
|
|
inset 16px 0 24px -12px rgba(0, 0, 0, 0.2),
|
|
inset 0 0 0 1px rgba(0, 0, 0, 0.04);
|
|
}
|
|
|
|
.flipbook-container .stf__item.--left .page::after,
|
|
.flipbook-container .stf__item.--right .page::after {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
bottom: 0;
|
|
width: 28px;
|
|
pointer-events: none;
|
|
z-index: 5;
|
|
}
|
|
|
|
.flipbook-container .stf__item.--left .page::after {
|
|
right: 0;
|
|
background: linear-gradient(to left, rgba(0, 0, 0, 0.14) 0%, rgba(0, 0, 0, 0.04) 35%, transparent 100%);
|
|
}
|
|
|
|
.flipbook-container .stf__item.--right .page::after {
|
|
left: 0;
|
|
background: linear-gradient(to right, rgba(0, 0, 0, 0.14) 0%, rgba(0, 0, 0, 0.04) 35%, transparent 100%);
|
|
}
|
|
|
|
.flipbook-container .stf__wrapper.--portrait .stf__item .page {
|
|
box-shadow:
|
|
inset 14px 0 22px -12px rgba(0, 0, 0, 0.16),
|
|
inset 0 0 0 1px rgba(0, 0, 0, 0.04);
|
|
}
|
|
|
|
.flipbook-container .stf__wrapper.--portrait .stf__item .page::after {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
width: 32px;
|
|
pointer-events: none;
|
|
z-index: 5;
|
|
background: linear-gradient(to right, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.03) 40%, transparent 100%);
|
|
}
|
|
|
|
@media (max-width: 767px) {
|
|
.flipbook-container .stf__item.--left .page {
|
|
box-shadow:
|
|
inset -12px 0 20px -10px rgba(0, 0, 0, 0.18),
|
|
inset 0 0 0 1px rgba(0, 0, 0, 0.05);
|
|
}
|
|
|
|
.flipbook-container .stf__wrapper.--portrait .stf__item .page {
|
|
box-shadow:
|
|
inset 12px 0 18px -10px rgba(0, 0, 0, 0.14),
|
|
inset 0 0 0 1px rgba(0, 0, 0, 0.05);
|
|
}
|
|
}
|
|
|
|
/* iOS قدیمی: inset box-shadow و contain/isolate خراب میشود */
|
|
.flipbook-container.flipbook-legacy-ios .stf__item {
|
|
contain: none !important;
|
|
isolation: auto !important;
|
|
}
|
|
|
|
.flipbook-container.flipbook-legacy-ios .stf__wrapper {
|
|
isolation: auto;
|
|
}
|
|
|
|
.flipbook-container.flipbook-legacy-ios .stf__item .page {
|
|
isolation: auto;
|
|
box-shadow: none !important;
|
|
}
|
|
|
|
.flipbook-container.flipbook-legacy-ios .stf__item .page::after {
|
|
display: none;
|
|
}
|
|
|
|
.flipbook-container.flipbook-legacy-ios .page .page-paper-shadow {
|
|
position: absolute;
|
|
inset: 0;
|
|
pointer-events: none;
|
|
z-index: 2;
|
|
background:
|
|
linear-gradient(to right, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.06) 16%, transparent 34%),
|
|
linear-gradient(to left, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.04) 14%, transparent 28%);
|
|
}
|
|
|
|
/* مخفی کردن محتوای صفحات غیرفعال - فقط صفحه فعلی قابل تعامل است */
|
|
.flipbook-container .stf__wrapper {
|
|
overflow: hidden;
|
|
isolation: isolate;
|
|
}
|
|
|
|
/* جلوگیری از نمایش محتوای صفحات پشت صفحه فعلی */
|
|
.flipbook-container .stf__item {
|
|
pointer-events: none;
|
|
}
|
|
|
|
/* فعال کردن pointer events فقط برای صفحه فعلی */
|
|
.flipbook-container .stf__item.stf__item--active,
|
|
.flipbook-container .stf__item:hover {
|
|
pointer-events: auto;
|
|
z-index: 100;
|
|
}
|
|
|
|
/* حالت ذرهبین: همهٔ صفحات visible در اسپرد قابل hit-test باشند */
|
|
.flipbook-container.flipbook-magnifier-active .stf__item {
|
|
pointer-events: auto;
|
|
}
|