ميدياويكي:Common.css: الفرق بين النسختين
المظهر
BasraweAdmin (نقاش | مساهمات) لا ملخص تعديل |
BasraweAdmin (نقاش | مساهمات) لا ملخص تعديل |
||
| سطر ٢٥٤: | سطر ٢٥٤: | ||
/* بطاقات أقسام الموسوعة */ | /* بطاقات أقسام الموسوعة */ | ||
/* ========================================= | |||
Basrawe Explore Grid - Final | |||
========================================= */ | |||
.basrawe-explore-grid { | .basrawe-explore-grid { | ||
display: grid; | display: grid !important; | ||
grid-template-columns: repeat(4, minmax(0, 1fr)); | grid-template-columns: repeat(4, minmax(0, 1fr)) !important; | ||
gap: | gap: 12px !important; | ||
} | } | ||
| سطر ٢٦٣: | سطر ٢٦٧: | ||
background: #fff; | background: #fff; | ||
border: 1px solid #dde5e7; | border: 1px solid #dde5e7; | ||
border-radius: | border-radius: 14px; | ||
padding: | padding: 16px; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
min-width: 0; | min-width: 0; | ||
} | } | ||
/* التابلت */ | |||
@media screen and (max-width: 700px) { | |||
.basrawe-explore-grid { | |||
grid-template-columns: repeat(2, minmax(0, 1fr)) !important; | |||
} | |||
} | |||
/* الهاتف */ | |||
@media screen and (max-width: 480px) { | |||
.basrawe-explore-grid { | |||
grid-template-columns: 1fr !important; | |||
} | |||
} | |||
/* الإحصاءات */ | /* الإحصاءات */ | ||
.basrawe-stats-grid { | .basrawe-stats-grid { | ||
مراجعة ١٧:٥١، ٣ سبتمبر ٢٠٢٦
/* الأنماط المتراصة CSS المعروضة هنا ستؤثر على كل الواجهات */
/* إخفاء الأيقونة القديمة والإبقاء على شعار موسوعة بصراوي */
.mw-logo-icon {
display: none !important;
}
.basrawe-home {
max-width: 1200px;
margin: 0 auto;
font-family: inherit;
}
.basrawe-hero {
padding: 38px 28px;
margin-bottom: 28px;
text-align: center;
border: 1px solid #eaecf0;
border-radius: 18px;
background: linear-gradient(135deg, #fffaf0, #f7f9fc);
}
.basrawe-hero h1 {
margin: 0 0 8px;
font-size: 34px;
}
.basrawe-hero p {
margin: 6px 0;
color: #555;
font-size: 17px;
}
.basrawe-section {
margin: 30px 0;
}
.basrawe-section-title {
margin-bottom: 16px;
font-size: 24px;
font-weight: 700;
}
.basrawe-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 14px;
}
.basrawe-card {
display: block;
padding: 22px 18px;
min-height: 110px;
border: 1px solid #e1e5ea;
border-radius: 14px;
background: #fff;
text-decoration: none;
transition: transform .15s ease, box-shadow .15s ease;
}
.basrawe-card:hover {
transform: translateY(-2px);
box-shadow: 0 8px 24px rgba(0,0,0,.08);
text-decoration: none;
}
.basrawe-card-title {
display: block;
margin-bottom: 8px;
font-size: 18px;
font-weight: 700;
}
.basrawe-card-text {
color: #666;
font-size: 14px;
line-height: 1.7;
}
.basrawe-featured {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 18px;
}
.basrawe-box {
padding: 22px;
border: 1px solid #e1e5ea;
border-radius: 14px;
background: #fff;
}
.basrawe-links {
line-height: 2;
}
.basrawe-cta {
margin-top: 32px;
padding: 26px;
text-align: center;
border-radius: 16px;
background: #f7f9fc;
border: 1px solid #e1e5ea;
}
@media (max-width: 900px) {
.basrawe-grid {
grid-template-columns: repeat(2, 1fr);
}
.basrawe-featured {
grid-template-columns: 1fr;
}
}
@media (max-width: 600px) {
.basrawe-grid {
grid-template-columns: 1fr;
}
.basrawe-hero {
padding: 28px 18px;
}
.basrawe-hero h1 {
font-size: 28px;
}
}
/* ==================================================
Basrawe Wiki - Responsive Mobile UI
================================================== */
/* صندوق المعلومات الموحد */
.basrawe-infobox {
width: 310px;
max-width: 100%;
float: left;
margin: 0 0 18px 20px;
border: 1px solid #a2a9b1;
border-collapse: collapse;
background: #f8f9fa;
font-size: 95%;
box-sizing: border-box;
}
.basrawe-infobox th,
.basrawe-infobox td {
padding: 7px 9px;
vertical-align: top;
}
.basrawe-infobox th {
background: #eaecf0;
}
.basrawe-infobox img {
max-width: 100%;
height: auto;
}
/* الصور داخل المقالات */
.mw-parser-output img {
max-width: 100%;
height: auto;
}
/* الجداول العامة */
.mw-parser-output table.wikitable {
max-width: 100%;
}
/* تحسين القراءة */
.mw-parser-output p,
.mw-parser-output li {
line-height: 1.85;
}
/* =========================
الهواتف والأجهزة الصغيرة
========================= */
@media screen and (max-width: 720px) {
/* صندوق المعلومات يصبح بعرض الصفحة */
.basrawe-infobox {
float: none !important;
width: 100% !important;
max-width: 100% !important;
margin: 0 0 18px 0 !important;
font-size: 94%;
}
.basrawe-infobox th {
width: 38%;
}
/* منع الصور من الخروج عن الشاشة */
.mw-parser-output img {
max-width: 100% !important;
height: auto !important;
}
/* تحسين العناوين */
.mw-parser-output h1 {
font-size: 1.75em;
}
.mw-parser-output h2 {
font-size: 1.4em;
line-height: 1.45;
}
.mw-parser-output h3 {
font-size: 1.18em;
}
/* تحسين النص */
.mw-parser-output p {
line-height: 1.9;
text-align: right;
}
/* الجداول الكبيرة تمرر أفقياً بدلاً من كسر الصفحة */
.mw-parser-output .wikitable {
display: block;
overflow-x: auto;
white-space: normal;
-webkit-overflow-scrolling: touch;
}
/* القوائم */
.mw-parser-output ul,
.mw-parser-output ol {
padding-right: 22px;
padding-left: 5px;
}
/* المراجع والروابط الطويلة */
.references li,
.mw-parser-output a {
overflow-wrap: anywhere;
word-break: normal;
}
}
/* =========================================
Basrawe Wiki - Main Page V2
========================================= */
.basrawe-home {
max-width: 1250px;
margin: 0 auto;
direction: rtl;
}
/* بطاقات أقسام الموسوعة */
/* =========================================
Basrawe Explore Grid - Final
========================================= */
.basrawe-explore-grid {
display: grid !important;
grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
gap: 12px !important;
}
.basrawe-explore-card {
background: #fff;
border: 1px solid #dde5e7;
border-radius: 14px;
padding: 16px;
box-sizing: border-box;
min-width: 0;
}
/* التابلت */
@media screen and (max-width: 700px) {
.basrawe-explore-grid {
grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
}
/* الهاتف */
@media screen and (max-width: 480px) {
.basrawe-explore-grid {
grid-template-columns: 1fr !important;
}
}
/* الإحصاءات */
.basrawe-stats-grid {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 12px;
}
/* العمودان الرئيسيان */
.basrawe-feature-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 18px;
}
/* المختارات */
.basrawe-picks-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 12px;
}
/* =========================================
Basrawe Wiki - Responsive Layout
========================================= */
/* الشاشات المتوسطة */
@media (max-width: 800px) {
.basrawe-explore-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.basrawe-picks-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.basrawe-feature-grid {
grid-template-columns: 1fr;
}
}
/* الهواتف */
@media (max-width: 600px) {
.basrawe-home {
width: 100%;
}
.basrawe-explore-grid,
.basrawe-feature-grid,
.basrawe-picks-grid {
grid-template-columns: 1fr;
}
.basrawe-stats-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}