انتقل إلى المحتوى

ميدياويكي:Gadget-Site.css

من ويكيبيديا، الموسوعة الحرة

ملاحظة: بعد الحفظ، قد يلزمك محو الاختزان لرؤية التغييرات (محو الاختزان الآن).

/**
 * هذه الصفحة تحتوي على الأنماط الخاصة بالموقع المشتركة بين الجوال وسطح المكتب
 */

/* Hide stuff meant for accounts with special permissions. Made visible again in
   [[MediaWiki:Group-checkuser.css]], [[MediaWiki:Group-sysop.css]], [[MediaWiki:Group-abusefilter.css]],
   [[MediaWiki:Group-reviewer.css]],
   [[MediaWiki:Group-templateeditor.css]], [[MediaWiki:Group-extendedmover.css]],
   [[MediaWiki:Group-editor.css]], and [[Mediawiki:Group-autoconfirmed.css]]. */
.checkuser-show,
.sysop-show,
.abusefilter-show,
.reviewer-show,
.templateeditor-show,
.extendedmover-show,
.editor-show,
.autoconfirmed-show,
.user-show {
  display: none;
}

/**
 * Style for horizontal lists (separator following item).
 * @source https://www.mediawiki.org/wiki/Snippets/Horizontal_lists
 * @revision 9 (2016-08-10)
 * @author [[User:Edokter]]
 */
.hlist dl,
.hlist ol,
.hlist ul {
  margin: 0;
  padding: 0;
}

/* Display list items inline */
.hlist dd,
.hlist dt,
.hlist li {
  /* don't trust the note that says margin doesn't work with inline
    * removing margin: 0 makes dds have margins again */
  margin: 0;
  display: inline;
}

/* Display nested lists inline */
.hlist.inline,
.hlist.inline dl,
.hlist.inline ol,
.hlist.inline ul,
.hlist dl dl,
.hlist dl ol,
.hlist dl ul,
.hlist ol dl,
.hlist ol ol,
.hlist ol ul,
.hlist ul dl,
.hlist ul ol,
.hlist ul ul {
  display: inline;
}

/* Hide empty list items */
.hlist .mw-empty-li,
.hlist .mw-empty-elt {
  display: none;
}

/* Generate interpuncts */
.hlist dt:after {
  content: ": ";
}

.hlist dd:after,
.hlist li:after {
  content: " · ";
  font-weight: bold;
}

.hlist dd:last-child:after,
.hlist dt:last-child:after,
.hlist li:last-child:after {
  content: none;
}

/* Add parentheses around nested lists */
.hlist dd dd:first-child:before,
.hlist dd dt:first-child:before,
.hlist dd li:first-child:before,
.hlist dt dd:first-child:before,
.hlist dt dt:first-child:before,
.hlist dt li:first-child:before,
.hlist li dd:first-child:before,
.hlist li dt:first-child:before,
.hlist li li:first-child:before {
  content: " (";
  font-weight: normal;
}

.hlist dd dd:last-child:after,
.hlist dd dt:last-child:after,
.hlist dd li:last-child:after,
.hlist dt dd:last-child:after,
.hlist dt dt:last-child:after,
.hlist dt li:last-child:after,
.hlist li dd:last-child:after,
.hlist li dt:last-child:after,
.hlist li li:last-child:after {
  content: ")";
  font-weight: normal;
}

/* Put ordinals in front of ordered list items */
.hlist ol {
  counter-reset: listitem;
}

.hlist ol>li {
  counter-increment: listitem;
}

.hlist ol>li:before {
  content: " " counter(listitem) "\a0";
}

.hlist dd ol>li:first-child:before,
.hlist dt ol>li:first-child:before,
.hlist li ol>li:first-child:before {
  content: " (" counter(listitem) "\a0";
}

/* إضافات على hlist من [[Mediawiki:common.css]] */
.hlist li {
  white-space: normal !important;
}

.ns--1 .hlist li {
  padding-left: 4px !important;
}

/* Hatnotes and disambiguation notices */
.rellink,
.dablink,
.hatnote {
  font-style: italic;
}

.rellink i,
.dablink i,
.hatnote i {
  font-style: normal;
}

div.rellink,
div.dablink,
div.hatnote {
  /* @noflip */
  padding-right: 1.6em;
  margin-bottom: 0.5em;
}

/* Prevent line breaks in silly places where desired (nowrap)
   and links when we don't want them to (nowraplinks a) */
.nowrap,
.nowraplinks a {
	white-space: nowrap;
}

/* But allow wrapping where desired: */
.wrap,
.wraplinks a {
	white-space: normal;
}

/*
تعريب رموز المراجع
*/
@counter-style arabic-abajed {
  system: additive;
  range: 1 1000;
  additive-symbols: 1000 "غ", 900 "ظ", 800 "ض", 700 "ذ", 600 "خ", 500 "ث", 400 "ت", 300 "ش", 200 "ر", 100 "ق",
    90 "ق", 80 "ص", 70 "ف", 60 "ص", 50 "ن", 40 "م", 30 "ل", 20 "ك", 10 "ي",
    9 "ط", 8 "ح", 7 "ز", 6 "و", 5 "ه", 4 "د", 3 "ج", 2 "ب", 1 "ا";
  suffix: ". ";
}

.reflist-arabic-abajed .references>li {
  list-style-type: arabic-abajed !important;
}

@counter-style arabic-alfabeth {
  system: alphabetic;
  symbols: "أ" "ب" "ت" "ث" "ج" "ح" "خ" "د" "ذ" "ر" "ز" "س" "ش" "ص" "ض" "ط" "ظ" "ع" "غ" "ف" "ق" "ك" "ل" "ط" "ن" "ه" "و" "ي";
  suffix: ". ";
}

.reflist-arabic-alfabeth .references>li {
  list-style-type: arabic-alfabeth !important;
}

/*
=== Parsoid ===
*/
/* T156351: Support for Parsoid's Cite implementation */
span[rel="mw:referencedBy"] {
  counter-reset: mw-ref-linkback 0;
}
span[rel="mw:referencedBy"] > a::before {
  font-weight: bold;
  font-style: italic;
  content: counter( mw-ref-linkback, arabic-abajed );
  line-height: 1.3em; /* to match the <sup> rule  */
}
[rel="mw:referencedBy"]::before {
  font-weight: bold;
  content: "^";
}
span[rel="mw:referencedBy"] a:first-child {
  margin-right: 0.2em;
}

/*زر إغلاق الإعلان المحلي*/
.arabicads-notice,
.mw-dismissable-notice {
  position: relative;
}

.arabicads-notice-close,
.mw-dismissable-notice-close {
  position: absolute;
  top: .4em;
  z-index: 1;
  opacity: .6;
  background: #eaecf0;
  border-radius: 20%;
  padding: .2em;
  transition: opacity .1s ease-in-out;
  left: .4em;
  margin: 0;
}

.arabicads-notice-close:hover,
.mw-dismissable-notice-close:hover {
  opacity: 1;
}

.arabicads-notice-close a,
.mw-dismissable-notice-close a {
  background: transparent url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2220%22 height=%2220%22 viewBox=%220 0 20 20%22%3E%3Ctitle%3Eclose%3C/title%3E%3Cpath d=%22M4.34 2.93l12.73 12.73-1.41 1.41L2.93 4.35z%22/%3E%3Cpath d=%22M17.07 4.34L4.34 17.07l-1.41-1.41L15.66 2.93z%22/%3E%3C/svg%3E");
  width: 1.5em;
  height: 1.5em;
  display: block;
}

.sitedir-rtl .mw-dismissable-notice-body {
  margin: 0;
}

/* ضبط زر النسخ في الأكواد */
/* @noflip */ 
.mw-highlight-copy--bound[dir="ltr"] button {
	right: -0.9em;
	left:unset;
}