ميدياويكي:Common.css
المظهر
ملاحظة: بعد النشر، أنت قد تحتاج إلى إفراغ الكاش الخاص بمتصفحك لرؤية التغييرات.
- فايرفوكس / سافاري: أمسك Shift أثناء ضغط Reload، أو اضغط على إما Ctrl-F5 أو Ctrl-R (⌘-R على ماك)
- جوجل كروم: اضغط Ctrl-Shift-R (⌘-Shift-R على ماك)
- إنترنت إكسبلورر/إيدج: أمسك Ctrl أثناء ضغط Refresh، أو اضغط Ctrl-F5
- أوبرا: اضغط Ctrl-F5.
/* ===========================================================================
PROFESSIONAL FORMAL TIMELESS WIKI DESIGN
=========================================================================== */
/* CSS Variables for Professional Color Palette */
:root {
/* Professional Primary Colors */
--primary: #2563eb;
--primary-light: #3b82f6;
--primary-dark: #1d4ed8;
/* Professional Secondary Colors */
--secondary: #64748b;
--secondary-light: #94a3b8;
--secondary-dark: #475569;
/* Professional Neutral Colors */
--bg-primary: #ffffff;
--bg-secondary: #f8fafc;
--bg-tertiary: #f1f5f9;
--surface: #ffffff;
--surface-hover: #f8fafc;
/* Professional Border Colors */
--border-primary: #e2e8f0;
--border-secondary: #cbd5e1;
--border-accent: #2563eb;
/* Professional Text Colors */
--text-primary: #1e293b;
--text-secondary: #475569;
--text-muted: #64748b;
--text-inverse: #ffffff;
/* Professional Accent Colors */
--accent-blue: #0ea5e9;
--accent-success: #059669;
--accent-warning: #d97706;
--accent-error: #dc2626;
/* Professional Typography */
--font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
--font-secondary: Georgia, 'Times New Roman', serif;
--font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', monospace;
/* Professional Spacing System */
--space-1: 0.25rem;
--space-2: 0.5rem;
--space-3: 0.75rem;
--space-4: 1rem;
--space-5: 1.25rem;
--space-6: 1.5rem;
--space-8: 2rem;
--space-10: 2.5rem;
--space-12: 3rem;
--space-16: 4rem;
/* Professional Shadows */
--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
/* Professional Border Radius */
--radius-sm: 0.25rem;
--radius-md: 0.375rem;
--radius-lg: 0.5rem;
/* Professional Transitions */
--transition: 0.2s ease-in-out;
}
/* ===========================================================================
GLOBAL RESET & BASE STYLES
=========================================================================== */
* {
box-sizing: border-box;
margin: 0;
padding: 4px !important;
}
.menu-container {
max-width: 600px;
margin: 0 auto;
background: rgba(255, 255, 255, 0.95);
border-radius: 15px;
padding: 30px;
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
backdrop-filter: blur(10px);
}
h1 {
text-align: center;
color: #333;
margin-bottom: 30px;
font-size: 2.5em;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}
.menu-list {
list-style: none;
padding: 0;
margin: 0;
}
.menu-item {
margin-bottom: 10px;
border-radius: 10px;
overflow: hidden;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
transition: transform 0.3s ease;
}
.menu-item:hover {
transform: translateY(-3px);
}
.menu-toggle {
display: none;
}
.menu-label {
display: block;
background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
color: white;
padding: 18px 25px;
cursor: pointer;
position: relative;
font-size: 1.1em;
font-weight: 600;
transition: all 0.3s ease;
border: none;
outline: none;
}
.menu-label:hover {
background: linear-gradient(135deg, #43a3f5 0%, #00e8f5 100%);
transform: scale(1.02);
}
.menu-label:after {
content: '▼';
position: absolute;
left: 25px;
top: 50%;
transform: translateY(-50%);
transition: transform 0.3s ease;
font-size: 0.9em;
}
.menu-toggle:checked + .menu-label:after {
transform: translateY(-50%) rotate(180deg);
}
.submenu {
background: #f8f9fa;
max-height: 0;
overflow: hidden;
transition: max-height 0.4s ease, padding 0.4s ease;
padding: 0 25px;
}
.menu-toggle:checked ~ .submenu {
max-height: 300px;
padding: 20px 25px;
}
.submenu li {
list-style: none;
padding: 12px 0;
border-bottom: 1px solid #e9ecef;
position: relative;
padding-right: 30px;
transition: all 0.3s ease;
}
.submenu li:last-child {
border-bottom: none;
}
.submenu li:before {
content: '●';
position: absolute;
right: 0;
top: 50%;
transform: translateY(-50%);
color: #007bff;
font-size: 1.2em;
}
.submenu li:hover {
background: rgba(0, 123, 255, 0.1);
padding-right: 35px;
border-radius: 8px;
}
.submenu li a {
color: #333;
text-decoration: none;
font-weight: 500;
transition: color 0.3s ease;
}
.submenu li:hover a {
color: #007bff;
}
/* تأثيرات إضافية */
.menu-item:nth-child(1) .menu-label {
background: linear-gradient(135deg, #ff6b6b 0%, #ffa726 100%);
}
.menu-item:nth-child(1) .menu-label:hover {
background: linear-gradient(135deg, #ff5252 0%, #ff9800 100%);
}
.menu-item:nth-child(2) .menu-label {
background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
}
.menu-item:nth-child(2) .menu-label:hover {
background: linear-gradient(135deg, #26c6da 0%, #2e8b57 100%);
}
.menu-item:nth-child(3) .menu-label {
background: linear-gradient(135deg, #a8e6cf 0%, #7fcdcd 100%);
}
.menu-item:nth-child(3) .menu-label:hover {
background: linear-gradient(135deg, #81c784 0%, #4dd0e1 100%);
}
.menu-item:nth-child(4) .menu-label {
background: linear-gradient(135deg, #ffd93d 0%, #ff6b6b 100%);
}
.menu-item:nth-child(4) .menu-label:hover {
background: linear-gradient(135deg, #ffcd02 0%, #ff5252 100%);
}
/* أنيميشن للظهور */
.menu-item {
animation: fadeInUp 0.6s ease forwards;
opacity: 0;
transform: translateY(20px);
}
.menu-item:nth-child(1) { animation-delay: 0.1s; }
.menu-item:nth-child(2) { animation-delay: 0.2s; }
.menu-item:nth-child(3) { animation-delay: 0.3s; }
.menu-item:nth-child(4) { animation-delay: 0.4s; }
@keyframes fadeInUp {
to {
opacity: 1;
transform: translateY(0);
}
}
/* استجابة للأجهزة المحمولة */
@media (max-width: 768px) {
.menu-container {
margin: 10px;
padding: 20px;
}
.menu-label {
padding: 15px 20px;
font-size: 1em;
}
h1 {
font-size: 2em;
}
}
.table-container {
padding: 20px;
overflow-x: auto;
}
table {
width: 100%;
border-collapse: collapse;
margin: 20px 0;
font-size: 14px;
border-radius: 15px;
overflow: hidden;
box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
th {
background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
color: #2c3e50;
padding: 20px 15px;
text-align: center;
font-weight: bold;
font-size: 16px;
text-shadow: 1px 1px 2px rgba(255,255,255,0.7);
}
td {
padding: 15px;
border-bottom: 1px solid #f0f0f0;
vertical-align: top;
transition: all 0.3s ease;
}
tr:hover td {
background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
transform: scale(1.02);
box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.section-basic {
background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}
#bodyContentOuter{
overflow-x: auto;
border-top: 4px solid #bb8960;
border-radius: 15px 5px;
box-shadow: 6px -3px 10px rgba(0, 0, 0, 0.1);
margin: 8px;
padding: 9px 20px !important;
}
.section-colors {
background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}
.section-links {
background: linear-gradient(135deg, #d299c2 0%, #fef9d7 100%);
}
.section-user {
background: linear-gradient(135deg, #89f7fe 0%, #66a6ff 100%);
}
.section-mobile {
background: linear-gradient(135deg, #fdbb2d 0%, #22c1c3 100%);
}
.section-animations {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
}
.code-sample {
background: #f8f9fa;
border: 1px solid #e9ecef;
border-radius: 8px;
padding: 10px;
font-family: 'Courier New', monospace;
font-size: 12px;
color: #495057;
margin: 5px 0;
white-space: pre-wrap;
word-wrap: break-word;
max-width: 300px;
}
.feature-tag {
background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
color: #2c3e50;
padding: 5px 10px;
border-radius: 20px;
font-size: 12px;
font-weight: bold;
display: inline-block;
margin: 2px;
text-shadow: 1px 1px 2px rgba(255,255,255,0.7);
}
.color-indicator {
width: 20px;
height: 20px;
border-radius: 50%;
display: inline-block;
margin-left: 10px;
border: 2px solid #fff;
box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.color-green { background: #28a745; }
.color-blue { background: #007bff; }
.color-yellow { background: #ffc107; }
.color-red { background: #dc3545; }
.color-purple { background: #6f42c1; }
.responsive-note {
background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
padding: 15px;
border-radius: 10px;
margin: 20px 0;
text-align: center;
color: #2c3e50;
font-weight: bold;
}
@media (max-width: 768px) {
.header h1 {
font-size: 1.8em;
}
table {
font-size: 12px;
}
th, td {
padding: 10px 8px;
}
.code-sample {
font-size: 10px;
max-width: 200px;
}
}
html {
font-size: 16px;
line-height: 1.5;
}
body {
font-family: var(--font-primary);
font-size: 1rem;
line-height: 1.6;
color: var(--text-primary);
background-color: var(--bg-secondary);
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
/* ===========================================================================
PROFESSIONAL TYPOGRAPHY
=========================================================================== */
h1, h2, h3, h4, h5, h6 {
font-family: var(--font-primary);
font-weight: 600;
line-height: 1.25;
color: var(--text-primary);
margin-bottom: var(--space-4);
}
h1 {
font-size: 2.25rem;
font-weight: 700;
color: var(--primary-dark);
margin-bottom: var(--space-6);
letter-spacing: -0.025em;
}
h2 {
font-size: 1.875rem;
color: var(--primary);
margin-top: var(--space-8);
margin-bottom: var(--space-5);
padding-bottom: var(--space-3);
border-bottom: 2px solid var(--border-primary);
}
h3 {
font-size: 1.5rem;
color: var(--primary);
margin-top: var(--space-6);
}
h4 {
font-size: 1.25rem;
color: var(--text-primary);
margin-top: var(--space-5);
}
h5 {
font-size: 1.125rem;
color: var(--text-primary);
margin-top: var(--space-4);
}
h6 {
font-size: 1rem;
color: var(--text-secondary);
text-transform: uppercase;
letter-spacing: 0.05em;
font-weight: 600;
margin-top: var(--space-4);
}
p {
margin-bottom: var(--space-4);
color: var(--text-secondary);
line-height: 1.7;
}
/* ===========================================================================
PROFESSIONAL LAYOUT
=========================================================================== */
.mw-body-container {
max-width: 1200px;
margin: 0 auto;
padding: var(--space-6);
}
.mw-body {
background: var(--bg-primary);
border: 1px solid var(--border-primary);
border-radius: var(--radius-lg);
box-shadow: var(--shadow-sm);
overflow: hidden;
}
.mw-content-container {
padding: var(--space-8);
}
.mw-content {
max-width: 100%;
font-size: 1rem;
line-height: 1.7;
}
/* ===========================================================================
PROFESSIONAL HEADER
=========================================================================== */
.mw-header {
background: var(--bg-primary);
border-bottom: 1px solid var(--border-primary);
padding: var(--space-4) 0;
position: sticky;
top: 0;
z-index: 100;
backdrop-filter: blur(8px);
}
.mw-header-container {
max-width: 1200px;
margin: 0 auto;
padding: 0 var(--space-6);
display: flex;
align-items: center;
justify-content: space-between;
}
.mw-logo {
font-size: 1.5rem;
font-weight: 700;
color: var(--primary);
text-decoration: none;
transition: var(--transition);
}
.mw-logo:hover {
color: var(--primary-light);
}
/* ===========================================================================
PROFESSIONAL NAVIGATION
=========================================================================== */
.mw-portlet {
background: var(--bg-primary);
border: 1px solid var(--border-primary);
border-radius: var(--radius-md);
margin-bottom: var(--space-4);
overflow: hidden;
}
.mw-portlet-head {
background: var(--bg-tertiary);
color: var(--text-primary);
padding: var(--space-3) var(--space-4);
font-weight: 600;
font-size: 0.875rem;
text-transform: uppercase;
letter-spacing: 0.05em;
border-bottom: 1px solid var(--border-primary);
}
.mw-portlet-body {
padding: var(--space-2);
}
.mw-portlet-body ul {
list-style: none;
}
.mw-portlet-body li {
margin: 0;
}
.mw-portlet-body a {
display: block;
padding: var(--space-2) var(--space-4);
color: var(--text-secondary);
text-decoration: none;
border-radius: var(--radius-sm);
transition: var(--transition);
font-size: 0.9375rem;
}
.mw-portlet-body a:hover {
background: var(--surface-hover);
color: var(--primary);
}
.mw-portlet-body a:active,
.mw-portlet-body a.active {
background: var(--primary);
color: var(--text-inverse);
}
/* ===========================================================================
PROFESSIONAL LINKS
=========================================================================== */
a {
color: var(--primary);
text-decoration: none;
transition: var(--transition);
}
a:hover {
color: var(--primary-light);
text-decoration: underline;
}
a:visited {
color: var(--primary-dark);
}
/* External links */
a.external::after {
content: ' ↗';
font-size: 0.75em;
color: var(--text-muted);
margin-left: 0.25em;
}
/* ===========================================================================
PROFESSIONAL TABLES
=========================================================================== */
table {
width: 100%;
border-collapse: collapse;
margin: var(--space-6) 0;
background: var(--bg-primary);
border: 1px solid var(--border-primary);
border-radius: var(--radius-md);
overflow: hidden;
}
th {
background: var(--bg-tertiary);
color: var(--text-primary);
padding: var(--space-3) var(--space-4);
text-align: left;
font-weight: 600;
font-size: 0.875rem;
text-transform: uppercase;
letter-spacing: 0.05em;
border-bottom: 1px solid var(--border-primary);
}
td {
padding: var(--space-3) var(--space-4);
border-bottom: 1px solid var(--border-primary);
color: var(--text-secondary);
vertical-align: top;
}
tr:hover {
background: var(--surface-hover);
}
tr:last-child td {
border-bottom: none;
}
/* ===========================================================================
PROFESSIONAL FORMS
=========================================================================== */
input[type="text"],
input[type="search"],
input[type="email"],
input[type="password"],
textarea,
select {
width: 100%;
padding: var(--space-3) var(--space-4);
border: 1px solid var(--border-secondary);
border-radius: var(--radius-md);
font-family: var(--font-primary);
font-size: 1rem;
color: var(--text-primary);
background: var(--bg-primary);
transition: var(--transition);
}
input[type="text"]:focus,
input[type="search"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
outline: none;
border-color: var(--primary);
box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
button,
input[type="submit"],
.mw-ui-button {
padding: var(--space-3) var(--space-6);
background: var(--primary);
color: var(--text-inverse);
border: none;
border-radius: var(--radius-md);
font-family: var(--font-primary);
font-size: 0.9375rem;
font-weight: 600;
cursor: pointer;
transition: var(--transition);
text-transform: uppercase;
letter-spacing: 0.05em;
}
button:hover,
input[type="submit"]:hover,
.mw-ui-button:hover {
background: var(--primary-light);
}
button:active,
input[type="submit"]:active,
.mw-ui-button:active {
background: var(--primary-dark);
}
/* Secondary button style */
.mw-ui-button.mw-ui-quiet {
background: transparent;
color: var(--primary);
border: 1px solid var(--primary);
}
.mw-ui-button.mw-ui-quiet:hover {
background: var(--primary);
color: var(--text-inverse);
}
/* ===========================================================================
PROFESSIONAL CODE BLOCKS
=========================================================================== */
code {
background: var(--bg-tertiary);
color: var(--text-primary);
padding: var(--space-1) var(--space-2);
border-radius: var(--radius-sm);
font-family: var(--font-mono);
font-size: 0.875rem;
border: 1px solid var(--border-primary);
}
pre {
background: var(--bg-tertiary);
color: var(--text-primary);
padding: var(--space-4);
border-radius: var(--radius-md);
overflow-x: auto;
margin: var(--space-6) 0;
border: 1px solid var(--border-primary);
font-family: var(--font-mono);
font-size: 0.875rem;
line-height: 1.5;
}
pre code {
background: transparent;
padding: 0;
border: none;
color: inherit;
}
/* ===========================================================================
PROFESSIONAL BLOCKQUOTES
=========================================================================== */
blockquote {
margin: var(--space-6) 0;
padding: var(--space-4) var(--space-6);
background: var(--bg-tertiary);
border-left: 4px solid var(--primary);
border-radius: var(--radius-md);
color: var(--text-secondary);
font-style: italic;
position: relative;
}
blockquote p:last-child {
margin-bottom: 0;
}
/* ===========================================================================
PROFESSIONAL LISTS
=========================================================================== */
ul, ol {
padding-left: var(--space-6);
margin: var(--space-4) 0;
}
li {
margin: var(--space-2) 0;
color: var(--text-secondary);
line-height: 1.6;
}
ul li::marker {
color: var(--primary);
}
ol li::marker {
color: var(--primary);
font-weight: 600;
}
/* Definition lists */
dl {
margin: var(--space-4) 0;
}
dt {
font-weight: 600;
color: var(--text-primary);
margin-top: var(--space-3);
}
dd {
margin-left: var(--space-4);
color: var(--text-secondary);
}
/* ===========================================================================
PROFESSIONAL IMAGES
=========================================================================== */
img {
max-width: 100%;
height: auto;
border-radius: var(--radius-md);
border: 1px solid var(--border-primary);
}
.thumb {
background: var(--bg-primary);
border: 1px solid var(--border-primary);
border-radius: var(--radius-md);
padding: var(--space-3);
margin: var(--space-4);
box-shadow: var(--shadow-sm);
}
.thumbcaption {
color: var(--text-muted);
font-size: 0.875rem;
margin-top: var(--space-2);
text-align: center;
}
/* ===========================================================================
PROFESSIONAL SEARCH
=========================================================================== */
.mw-search-form {
background: var(--bg-primary);
border: 1px solid var(--border-primary);
border-radius: var(--radius-md);
padding: var(--space-4);
margin: var(--space-6) 0;
}
.mw-search-form input[type="search"] {
font-size: 1rem;
margin-bottom: var(--space-3);
}
/* ===========================================================================
PROFESSIONAL MESSAGES & ALERTS
=========================================================================== */
.mw-message {
padding: var(--space-4);
border-radius: var(--radius-md);
margin: var(--space-4) 0;
border-left: 4px solid;
}
.mw-message.mw-message-success {
background: #f0fdf4;
border-color: var(--accent-success);
color: #166534;
}
.mw-message.mw-message-warning {
background: #fefbf1;
border-color: var(--accent-warning);
color: #92400e;
}
.mw-message.mw-message-error {
background: #fef2f2;
border-color: var(--accent-error);
color: #991b1b;
}
.mw-message.mw-message-info {
background: #eff6ff;
border-color: var(--accent-blue);
color: #1e40af;
}
/* ===========================================================================
PROFESSIONAL RESPONSIVE DESIGN
=========================================================================== */
@media (max-width: 768px) {
.mw-body-container {
padding: var(--space-4);
}
.mw-content-container {
padding: var(--space-6);
}
.mw-header-container {
padding: 0 var(--space-4);
}
h1 {
font-size: 1.875rem;
}
h2 {
font-size: 1.5rem;
}
h3 {
font-size: 1.25rem;
}
table {
font-size: 0.875rem;
}
th, td {
padding: var(--space-2) var(--space-3);
}
}
@media (max-width: 480px) {
.mw-body-container {
padding: var(--space-2);
}
.mw-content-container {
padding: var(--space-4);
}
.mw-header-container {
padding: 0 var(--space-2);
}
h1 {
font-size: 1.5rem;
}
h2 {
font-size: 1.25rem;
}
}
/* ===========================================================================
PROFESSIONAL PRINT STYLES
=========================================================================== */
@media print {
* {
background: transparent !important;
color: black !important;
box-shadow: none !important;
text-shadow: none !important;
}
a,
a:visited {
text-decoration: underline;
}
a[href]:after {
content: " (" attr(href) ")";
}
abbr[title]:after {
content: " (" attr(title) ")";
}
.mw-header,
.mw-portlet {
display: none;
}
h1, h2, h3, h4, h5, h6 {
page-break-after: avoid;
}
p, blockquote {
orphans: 3;
widows: 3;
}
blockquote {
page-break-inside: avoid;
}
}
/* ===========================================================================
PROFESSIONAL ACCESSIBILITY
=========================================================================== */
/* Focus styles */
*:focus {
outline: 2px solid var(--primary);
outline-offset: 2px;
}
/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
* {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
}
}
/* High contrast mode */
@media (prefers-contrast: high) {
:root {
--border-primary: #000000;
--text-primary: #000000;
--text-secondary: #000000;
}
}
.mw-category-generated {
background: #fafcff;
border-radius: 12px;
padding: 30px;
margin-bottom: 40px;
border: 1px solid #e2e8f0;
}
.mw-category-generated h2 {
color: #2d3748;
font-size: 2em;
margin-bottom: 20px;
padding-bottom: 15px;
border-bottom: 2px solid #e2e8f0;
font-weight: 300;
text-align: center;
}
.mw-category-generated p {
color: #718096;
font-size: 1.1em;
margin-bottom: 30px;
text-align: center;
line-height: 1.8;
}
/* Category Groups */
.mw-category {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 30px;
}
.mw-category-group {
background: white;
border-radius: 12px;
border: 1px solid #e2e8f0;
overflow: hidden;
transition: all 0.3s ease;
}
.category-header {
background: #f0f9ff;
padding: 20px;
border-bottom: 1px solid #e2e8f0;
cursor: pointer;
display: flex;
justify-content: space-between;
align-items: center;
transition: all 0.3s ease;
}
.category-header:hover {
background: #e0f2fe;
}
.category-header h3 {
font-size: 1.5em;
color: #1e40af;
font-weight: 400;
margin: 0;
}
.category-arrow {
font-size: 1.2em;
color: #64748b;
transition: transform 0.3s ease;
}
.category-arrow.expanded {
transform: rotate(180deg);
}
.category-content {
max-height: 0;
overflow: hidden;
transition: max-height 0.4s ease;
}
.category-content.expanded {
max-height: 500px;
}
.mw-category-group ul {
list-style: none;
padding: 0;
margin: 0;
}
.mw-category-group li {
padding: 18px 25px;
border-bottom: 1px solid #f1f5f9;
transition: all 0.3s ease;
display: flex;
align-items: center;
justify-content: space-between;
}
.mw-category-group li:last-child {
border-bottom: none;
}
.mw-category-group li:hover {
background: #f8fafc;
}
/* Links */
a {
color: #3b82f6;
text-decoration: none;
font-weight: 400;
transition: color 0.3s ease;
}
a:hover {
color: #1d4ed8;
}
/* Category Tree Styles */
.CategoryTreeSection {
width: 100%;
}
.CategoryTreeItem {
display: flex;
align-items: center;
gap: 12px;
width: 100%;
}
.CategoryTreeToggle {
width: 24px;
height: 24px;
background: #dbeafe;
border-radius: 6px;
display: inline-flex;
align-items: center;
justify-content: center;
color: #1e40af;
cursor: pointer;
transition: all 0.3s ease;
font-size: 0.9em;
font-weight: 500;
}
.CategoryTreeToggle:hover {
background: #bfdbfe;
}
.CategoryTreeEmptyBullet {
width: 8px;
height: 8px;
background: #cbd5e1;
border-radius: 50%;
display: inline-block;
}
/* Page count styling */
span[title] {
background: #f1f5f9;
padding: 6px 12px;
border-radius: 20px;
font-size: 0.85em;
color: #64748b;
border: 1px solid #e2e8f0;
}
/* Pages Section */
#mw-pages {
background: #fffbf5;
border-radius: 12px;
padding: 30px;
margin-top: 40px;
border: 1px solid #fde68a;
}
#mw-pages h2 {
color: #92400e;
font-size: 2em;
margin-bottom: 20px;
padding-bottom: 15px;
border-bottom: 2px solid #fde68a;
font-weight: 300;
text-align: center;
}
#mw-pages .mw-category-group {
border-color: #fde68a;
}
#mw-pages .category-header {
background: #fef3c7;
border-bottom-color: #fde68a;
}
#mw-pages .category-header:hover {
background: #fed7aa;
}
#mw-pages .category-header h3 {
color: #92400e;
}
#mw-pages a {
color: #d97706;
}
#mw-pages a:hover {
color: #92400e;
}
/* Responsive Design */
@media (max-width: 768px) {
.wiki-container {
margin: 15px;
padding: 20px;
border-radius: 12px;
}
.wiki-header {
padding: 30px 20px;
margin-bottom: 30px;
}
.wiki-title {
font-size: 2.2em;
}
.mw-category-generated,
#mw-pages {
padding: 20px;
}
.mw-category {
grid-template-columns: 1fr;
gap: 20px;
}
.category-header {
padding: 15px;
}
.mw-category-group li {
padding: 15px 20px;
}
}
/* Focus styles for accessibility */
a:focus,
.CategoryTreeToggle:focus,
.category-header:focus {
outline: 2px solid #3b82f6;
outline-offset: 2px;
}
/* Smooth transitions */
.category-header,
.mw-category-group li,
.CategoryTreeToggle {
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}