| @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) ")"; | |
| } | |
| } |