ميدياويكي:Common.css
المظهر
ملاحظة: بعد الحفظ، قد يلزمك محو الاختزان الخاص بمتصفحك لرؤية التغييرات.
- فايرفوكس / سافاري: أمسك Shift أثناء ضغط Reload، أو اضغط على إما Ctrl-F5 أو Ctrl-R (⌘-R على ماك)
- جوجل كروم: اضغط Ctrl-Shift-R (⌘-Shift-R على ماك)
- إنترنت إكسبلورر/إيدج: أمسك Ctrl أثناء ضغط Refresh، أو اضغط Ctrl-F5
- أوبرا: اضغط Ctrl-F5.
/* الأنماط المتراصة 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));
}
}
/* =========================================
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;
}
}