ميدياويكي:Common.css: الفرق بين النسختين
BasraweAdmin (نقاش | مساهمات) لا ملخص تعديل |
BasraweAdmin (نقاش | مساهمات) لا ملخص تعديل |
||
| (٩ مراجعات متوسّطة بواسطة نفس المستخدِم غير معروضة) | |||
| سطر ٢٤٠: | سطر ٢٤٠: | ||
overflow-wrap: anywhere; | overflow-wrap: anywhere; | ||
word-break: normal; | 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)); | |||
} | |||
} | |||
/* ========================================= | |||
Basrawe Home - Mobile Final | |||
========================================= */ | |||
@media screen and (max-width: 600px) { | |||
/* الغلاف */ | |||
.basrawe-home-hero { | |||
padding: 25px 15px !important; | |||
border-radius: 14px !important; | |||
margin-bottom: 18px !important; | |||
} | |||
.basrawe-home-hero-title { | |||
font-size: 27px !important; | |||
line-height: 1.4 !important; | |||
} | |||
.basrawe-home-hero-text { | |||
font-size: 13.5px !important; | |||
line-height: 1.8 !important; | |||
} | |||
/* الإحصاءات: 2 × 2 */ | |||
.basrawe-home-stats { | |||
display: grid !important; | |||
grid-template-columns: repeat(2, minmax(0,1fr)) !important; | |||
gap: 8px !important; | |||
} | |||
/* استكشف البصرة: بطاقة واحدة أفقية */ | |||
.basrawe-home-explore { | |||
display: grid !important; | |||
grid-template-columns: 1fr !important; | |||
gap: 9px !important; | |||
} | |||
.basrawe-home-explore-card { | |||
min-width: 0 !important; | |||
padding: 12px 14px !important; | |||
border-radius: 11px !important; | |||
display: grid !important; | |||
grid-template-columns: 42px minmax(0,1fr) !important; | |||
grid-template-areas: | |||
"icon title" | |||
"icon desc" !important; | |||
column-gap: 10px !important; | |||
row-gap: 3px !important; | |||
text-align: right !important; | |||
align-items: center !important; | |||
} | |||
.basrawe-home-explore-card .basrawe-icon { | |||
grid-area: icon !important; | |||
font-size: 25px !important; | |||
margin: 0 !important; | |||
text-align: center !important; | |||
} | |||
.basrawe-home-explore-card .basrawe-title { | |||
grid-area: title !important; | |||
font-size: 15px !important; | |||
line-height: 1.5 !important; | |||
margin: 0 !important; | |||
word-break: normal !important; | |||
overflow-wrap: normal !important; | |||
} | |||
.basrawe-home-explore-card .basrawe-desc { | |||
grid-area: desc !important; | |||
font-size: 11.5px !important; | |||
line-height: 1.65 !important; | |||
margin: 0 !important; | |||
word-break: normal !important; | |||
overflow-wrap: normal !important; | |||
} | |||
/* المختارات تبقى بطاقتين في الصف لأنها نصوصها قصيرة */ | |||
.basrawe-home-picks { | |||
display: grid !important; | |||
grid-template-columns: repeat(2, minmax(0,1fr)) !important; | |||
gap: 8px !important; | |||
} | |||
} | |||
/* ========================================= | |||
Basrawe Explore - Compact Mobile Cards | |||
========================================= */ | |||
@media screen and (max-width: 600px) { | |||
.basrawe-home-explore { | |||
display: grid !important; | |||
grid-template-columns: 1fr !important; | |||
gap: 8px !important; | |||
} | |||
.basrawe-home-explore-card { | |||
display: flex !important; | |||
flex-direction: row !important; | |||
align-items: center !important; | |||
gap: 12px !important; | |||
min-height: 0 !important; | |||
height: auto !important; | |||
padding: 13px 15px !important; | |||
border-radius: 11px !important; | |||
text-align: right !important; | |||
} | |||
.basrawe-home-explore-card .basrawe-icon { | |||
flex: 0 0 34px !important; | |||
width: 34px !important; | |||
font-size: 25px !important; | |||
margin: 0 !important; | |||
text-align: center !important; | |||
} | |||
.basrawe-home-explore-card .basrawe-title { | |||
flex: 1 1 auto !important; | |||
margin: 0 !important; | |||
font-size: 16px !important; | |||
line-height: 1.5 !important; | |||
font-weight: 700 !important; | |||
word-break: normal !important; | |||
overflow-wrap: normal !important; | |||
} | |||
/* الوصف يبقى على الكمبيوتر ويختفي فقط من الموبايل */ | |||
.basrawe-home-explore-card .basrawe-desc { | |||
display: none !important; | |||
} | |||
} | |||
/* ========================================= | |||
Basrawe Explore - Mobile Compact Final | |||
========================================= */ | |||
@media screen and (max-width: 600px) { | |||
.basrawe-home-explore { | |||
gap: 7px !important; | |||
} | |||
.basrawe-home-explore-card { | |||
height: 76px !important; | |||
min-height: 76px !important; | |||
max-height: 76px !important; | |||
padding: 10px 14px !important; | |||
margin: 0 !important; | |||
display: flex !important; | |||
flex-direction: row !important; | |||
align-items: center !important; | |||
justify-content: flex-start !important; | |||
gap: 12px !important; | |||
box-sizing: border-box !important; | |||
} | |||
.basrawe-home-explore-card .basrawe-icon { | |||
flex: 0 0 36px !important; | |||
width: 36px !important; | |||
font-size: 25px !important; | |||
line-height: 1 !important; | |||
text-align: center !important; | |||
} | |||
.basrawe-home-explore-card .basrawe-title { | |||
flex: 1 1 auto !important; | |||
font-size: 16px !important; | |||
line-height: 1.45 !important; | |||
margin: 0 !important; | |||
} | |||
.basrawe-home-explore-card .basrawe-desc { | |||
display: none !important; | |||
} | |||
} | |||
/* إزالة الفراغات التي يولدها MediaWiki بين بطاقات الرئيسية */ | |||
@media screen and (max-width: 600px) { | |||
.basrawe-home-explore > p, | |||
.basrawe-home-explore > br { | |||
display: none !important; | |||
margin: 0 !important; | |||
padding: 0 !important; | |||
height: 0 !important; | |||
min-height: 0 !important; | |||
} | |||
.basrawe-home-explore { | |||
row-gap: 8px !important; | |||
margin: 0 !important; | |||
} | |||
.basrawe-home-explore-card { | |||
margin-top: 0 !important; | |||
margin-bottom: 0 !important; | |||
} | |||
} | |||
/* ========================================= | |||
Basrawe Main Page - Clean Interface | |||
إخفاء عنوان وأدوات المقالة من الرئيسية فقط | |||
========================================= */ | |||
/* عنوان الصفحة */ | |||
body.page-الصفحة_الرئيسية #firstHeading, | |||
body.page-الصفحة_الرئيسية .firstHeading, | |||
body.page-الصفحة_الرئيسية .mw-first-heading, | |||
body.page-الصفحة_الرئيسية .page-heading { | |||
display: none !important; | |||
} | |||
/* شريط اقرأ / عدل / تاريخ / نقاش على الكمبيوتر */ | |||
body.page-الصفحة_الرئيسية .vector-page-toolbar, | |||
body.page-الصفحة_الرئيسية #p-views, | |||
body.page-الصفحة_الرئيسية #p-cactions { | |||
display: none !important; | |||
} | |||
/* أدوات الصفحة في Minerva على الموبايل */ | |||
body.page-الصفحة_الرئيسية .page-actions-menu, | |||
body.page-الصفحة_الرئيسية .minerva__tab-container { | |||
display: none !important; | |||
} | |||
/* تقليل الفراغ أعلى المحتوى */ | |||
body.page-الصفحة_الرئيسية #bodyContent, | |||
body.page-الصفحة_الرئيسية .mw-body-content { | |||
margin-top: 0 !important; | |||
} | |||
/* ========================================= | |||
Basrawe Main Page - Wide Desktop Layout | |||
========================================= */ | |||
@media screen and (min-width: 1000px) { | |||
/* إخفاء العمودين الجانبيين في الصفحة الرئيسية فقط */ | |||
body.page-الصفحة_الرئيسية .vector-column-start, | |||
body.page-الصفحة_الرئيسية .vector-column-end { | |||
display: none !important; | |||
} | |||
/* جعل محتوى الرئيسية يستفيد من العرض */ | |||
body.page-الصفحة_الرئيسية .mw-page-container-inner { | |||
grid-template-columns: minmax(0, 1fr) !important; | |||
} | |||
body.page-الصفحة_الرئيسية .mw-body { | |||
grid-column: 1 !important; | |||
width: 100% !important; | |||
max-width: none !important; | |||
} | |||
body.page-الصفحة_الرئيسية .mw-content-container { | |||
max-width: 1400px !important; | |||
margin-left: auto !important; | |||
margin-right: auto !important; | |||
} | } | ||
} | } | ||