Files
persian-ping-frontend/src/index.css
2024-07-03 14:51:40 +03:30

112 lines
3.1 KiB
CSS

@tailwind base;
@tailwind components;
@tailwind utilities;
@layer base {
@font-face {
font-family: "kalameh"; /* نام فونت */
src: url("./assets/font/kalameh/WebFonts/_eot/KalamehWeb-Medium.eot"); /* مسیر فایل فونت در فرمت EOT */
src: url("./assets/font/kalameh/WebFonts/_Woff2/KalamehWeb-Medium.woff2")
format("woff2"),
/* مسیر فایل فونت در فرمت WOFF2 */
url("./assets/font/kalameh/WebFonts/_Woff/KalamehWeb-Medium.woff")
format("woff"),
/* مسیر فایل فونت در فرمت WOFF */
url("./assets/font/kalameh/TTF/Kalameh-Medium.ttf") format("truetype");
/* مسیر فایل فونت در فرمت TTF */
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* استایل‌های سفارشی برای autofill */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
-webkit-box-shadow: 0 0 0 30px #2d3748 inset !important; /* رنگ پس‌زمینه مورد نظر */
-webkit-text-fill-color: #e2e8f0 !important; /* رنگ متن مورد نظر */
}
body {
font-family: "kalameh";
line-height: 1.6;
background-color: #333;
color: #fff;
}
.glass {
@apply bg-[rgba(17,25,40,0.25)] rounded-xl;
}
/* برای مرورگرهای WebKit (مثل Chrome و Safari) */
::-webkit-scrollbar {
width: 12px; /* عرض نوار اسکرول */
}
::-webkit-scrollbar-track {
background: transparent; /* پس‌زمینه نوار اسکرول */
}
::-webkit-scrollbar-thumb {
@apply bg-secondTheme; /* رنگ نوار اسکرول */
border-radius: 20px; /* گرد کردن نوار اسکرول */
border: 3px solid transparent; /* ایجاد فضای خالی در اطراف نوار اسکرول */
background-clip: content-box; /* اطمینان از حفظ فضای خالی */
}
/* برای مرورگر Firefox */
* {
scrollbar-width: thin; /* عرض نوار اسکرول */
scrollbar-color: #71fbb2 transparent; /* رنگ نوار اسکرول و پس‌زمینه */
}
/* برای مرورگرهای مبتنی بر Blink (مثل Edge) */
::-webkit-scrollbar {
width: 12px;
}
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb {
@apply bg-secondTheme;
border-radius: 20px;
border: 3px solid transparent;
background-clip: content-box;
}
.path {
animation: dash 2s linear forwards;
}
@keyframes dash {
from {
stroke-dashoffset: 126;
}
to {
stroke-dashoffset: -20;
}
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
/* Firefox */
input[type="number"] {
-moz-appearance: textfield;
}
button {
-webkit-appearance: none; /* غیرفعال کردن سبک پیش‌فرض Safari */
appearance: none; /* غیرفعال کردن سبک پیش‌فرض */
}
*,
*::before,
*::after {
box-sizing: border-box;
}
}