simyan1's picture
یک صفحه اول دایره المعارف فارسی طراحی کن مانند ویکیپدیا باشد. به همراه یک صفحه که صفحه ویکی . تمام استانداردهای یک ویکی رعایت شود. کامل باشد و حرفه ای
4c317d9 verified
@tailwind base;
@tailwind components;
@tailwind utilities;
/* Custom Wiki Styles */
body {
background-color: #f8f9fa;
color: #202122;
}
/* Typography tweaks for RTL */
h1, h2, h3, h4, h5, h6 {
font-weight: 700;
}
a {
color: #0645ad;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
/* Mobile Sidebar Animation */
#sidebar {
transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}
/* Mobile Menu Overlay */
.mobile-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0,0,0,0.5);
z-40;
opacity: 0;
pointer-events: none;
transition: opacity 0.3s;
}
.mobile-overlay.active {
opacity: 1;
pointer-events: auto;
}
/* Infobox float fix for RTL */
@media (min-width: 1024px) {
.wiki-infobox {
float: left; /* In RTL context, this might need to be right depending on preference, but standard wiki floats usually follow LTR logic if not careful. Let's stick to Tailwind float-left in HTML but for RTL float-right is preferred. */
/* Actually in Persian Wikipedia, infobox is on the left of the page content (visual left). So float-left is correct for desktop layout in a 2-column flex where content is on the left?
Wait, Persian Wikipedia has content on the right (visual right) and sidebar on the left (visual left).
So float-left puts it on the left side of the text, which is correct.
*/
}
}
/* Print styles */
@media print {
header, footer, aside, .no-print {
display: none;
}
.container {
width: 100%;
max-width: none;
padding: 0;
}
a {
text-decoration: none;
color: black;
}
a[href]:after {
content: " (" attr(href) ")";
}
}