مدیاویکی:Common.css: تفاوت میان نسخه‌ها

بدون خلاصۀ ویرایش
بدون خلاصۀ ویرایش
خط ۹۶: خط ۹۶:


sup, sub {
sup, sub {
     line-height: 1em;     /* Prevent tall lines from inline sup/sub */
     line-height: 1em;
}
}


خط ۱۱۴: خط ۱۱۴:
}
}


/* Down‑size headings by one step */
.mw-body h1,
.mw-body h1,
.mw-body #firstHeading {
.mw-body #firstHeading {
خط ۱۵۳: خط ۱۵۲:
   7. Main Page Customizations
   7. Main Page Customizations
   ============================================================ */
   ============================================================ */
/* Border on edit tab for practice pages */
body.page-ویکی‌پدیا_صفحه_تمرین #ca-edit,
body.page-ویکی‌پدیا_صفحه_تمرین #ca-edit,
body.page-ویکی‌پدیا_آشنایی #ca-edit {
body.page-ویکی‌پدیا_آشنایی #ca-edit {
خط ۱۶۴: خط ۱۶۲:
}
}


/* Top banner on main page */
body.page-صفحهٔ_اصلی #mp-topbanner {
body.page-صفحهٔ_اصلی #mp-topbanner {
     clear: both;
     clear: both;
}
}


/* Hide certain elements on main page */
body.page-صفحهٔ_اصلی #ca-delete,
body.page-صفحهٔ_اصلی #ca-delete,
body.page-صفحهٔ_اصلی #deleteconfirm,
body.page-صفحهٔ_اصلی #deleteconfirm,
خط ۲۲۱: خط ۲۱۷:
}
}


cite:target {
    background-color: #ecf0fa;
}
/* Hide print‑only citation content on screen */
@media screen, handheld, projection {
@media screen, handheld, projection {
     cite *.printonly {
     cite *.printonly {
خط ۲۵۱: خط ۲۴۲:
}
}


/* Nested lists inline */
.hlist.inline,
.hlist.inline,
.hlist.inline dl,
.hlist.inline dl,
خط ۲۶۲: خط ۲۵۲:
}
}


/* Interpuncts and parentheses */
.hlist dt:after {
.hlist dt:after {
     content: ": ";
     content: ": ";
خط ۲۹۲: خط ۲۸۱:
}
}


/* Ordered lists with Persian counter */
.hlist ol {
.hlist ol {
     counter-reset: listitem;
     counter-reset: listitem;
خط ۳۳۱: خط ۳۱۹:
}
}


/* Lists inside table cells are right‑aligned in RTL, unless hlist */
html[dir=rtl] .wikitable td ul,
html[dir=rtl] .wikitable td ul,
html[dir=rtl] .wikitable td ol,
html[dir=rtl] .wikitable td ol,
خط ۳۶۶: خط ۳۵۳:
}
}


/* Navbar inside infobox and navbox */
.infobox .navbar {
.infobox .navbar {
     font-size: 100%;
     font-size: 100%;
خط ۳۸۳: خط ۳۶۹:


/* ============================================================
/* ============================================================
   14. Collapse Buttons (JavaScript‑generated)
   14. Collapse Buttons
   ============================================================ */
   ============================================================ */
.collapseButton {
.collapseButton {
خط ۴۸۰: خط ۴۶۶:
}
}


/* Bordered infobox */
.infobox.bordered {
.infobox.bordered {
     border-collapse: collapse;
     border-collapse: collapse;
خط ۵۰۴: خط ۴۸۹:
}
}


/* Sister project infobox */
.infobox.sisterproject {
.infobox.sisterproject {
     width: 20em;
     width: 20em;
خط ۵۱۰: خط ۴۹۴:
}
}


/* Geography infoboxes */
.infobox.geography {
.infobox.geography {
     border-collapse: collapse;
     border-collapse: collapse;
خط ۵۷۲: خط ۵۵۵:
   17. Persondata and Metadata (hidden)
   17. Persondata and Metadata (hidden)
   ============================================================ */
   ============================================================ */
table.InChI, /* temporary */
table.InChI,
table.persondata {
table.persondata {
     border: 1px solid #a2a9b1;
     border: 1px solid #a2a9b1;
خط ۵۷۸: خط ۵۶۱:
     speak: none;
     speak: none;
}
}
.InChI-label, /* temporary */
.InChI-label,
.persondata-label {
.persondata-label {
     color: #a2a9b1;
     color: #a2a9b1;
خط ۶۲۷: خط ۶۱۰:


/* ============================================================
/* ============================================================
   20. Column Layouts (CSS‑based)
   20. Column Layouts
   ============================================================ */
   ============================================================ */
div.columns-2 div.column {
div.columns-2 div.column {
خط ۶۶۸: خط ۶۵۱:


/* ============================================================
/* ============================================================
   22. Messagebox Templates (generic)
   22. Messagebox Templates
   ============================================================ */
   ============================================================ */
.messagebox {
.messagebox {
خط ۷۱۷: خط ۷۰۰:
     margin: 0px 10%;
     margin: 0px 10%;
     border: 1px solid #a2a9b1;
     border: 1px solid #a2a9b1;
     border-right: 10px solid #36c; /* Default "notice" blue */
     border-right: 10px solid #36c;
     background: #f8f9fa;
     background: #f8f9fa;
}
}
خط ۷۳۴: خط ۷۱۷:
}
}


/* Colour variants */
table.ambox-notice   { border-right: 10px solid #36c; }
table.ambox-notice {
table.ambox-speedy   { border-right: 10px solid #DD0000; background: #fee7e6; }
    border-right: 10px solid #36c;
table.ambox-delete   { border-right: 10px solid #DD0000; }
}
table.ambox-content   { border-right: 10px solid #FF5D00; }
table.ambox-speedy {
table.ambox-style     { border-right: 10px solid #fc3; }
    border-right: 10px solid #DD0000;
table.ambox-move     { border-right: 10px solid #9932cc; }
    background: #fee7e6;
table.ambox-protection { border-right: 10px solid #a2a9b1; }
}
table.ambox-delete {
    border-right: 10px solid #DD0000;
}
table.ambox-content {
    border-right: 10px solid #FF5D00;
}
table.ambox-style {
    border-right: 10px solid #fc3;
}
table.ambox-move {
    border-right: 10px solid #9932cc;
}
table.ambox-protection {
    border-right: 10px solid #a2a9b1;
}




خط ۷۸۱: خط ۷۴۸:
     background: #f8f9fa;
     background: #f8f9fa;
}
}
table.fmbox-system {
table.fmbox-system { background: var(--background-color-interactive-subtle, #f8f9fa); }
    background: var(--background-color-interactive-subtle, #f8f9fa);
table.fmbox-warning { border: 1px solid #DD0000; background: var(--background-color-destructive-subtle, #fee7e6); }
}
table.fmbox-editnotice { background: transparent; }
table.fmbox-warning {
    border: 1px solid #DD0000;
    background: var(--background-color-destructive-subtle, #fee7e6);
}
table.fmbox-editnotice {
    background: transparent;
}


/* Div‑based warning fmbox messages */
div.mw-warning-with-logexcerpt,
div.mw-warning-with-logexcerpt,
div.mw-lag-warn-high,
div.mw-lag-warn-high,
خط ۸۰۳: خط ۷۶۲:
     padding: 0.25em 0.9em;
     padding: 0.25em 0.9em;
}
}
/* Div‑based system fmbox messages */
div.mw-lag-warn-normal,
div.mw-lag-warn-normal,
div.fmbox-system {
div.fmbox-system {
خط ۸۲۴: خط ۷۸۲:
     box-sizing: border-box;
     box-sizing: border-box;
}
}
table.ombox-notice {
table.ombox-notice     { border: 1px solid #a2a9b1; }
    border: 1px solid #a2a9b1;
table.ombox-speedy     { border: 2px solid #b32424; background-color: #fee7e6; }
}
table.ombox-delete     { border: 2px solid #b32424; }
table.ombox-speedy {
table.ombox-content   { border: 1px solid #f28500; }
    border: 2px solid #b32424;
table.ombox-style     { border: 1px solid #fc3; }
    background-color: #fee7e6;
table.ombox-move       { border: 1px solid #9932cc; }
}
table.ombox-protection { border: 2px solid #a2a9b1; }
table.ombox-delete {
    border: 2px solid #b32424;
}
table.ombox-content {
    border: 1px solid #f28500;
}
table.ombox-style {
    border: 1px solid #fc3;
}
table.ombox-move {
    border: 1px solid #9932cc;
}
table.ombox-protection {
    border: 2px solid #a2a9b1;
}




خط ۱٬۰۷۸: خط ۱٬۰۲۱:
   37. Geographical Coordinates
   37. Geographical Coordinates
   ============================================================ */
   ============================================================ */
.geo-default {
.geo-default   { display: inline; }
    display: inline;
.geo-nondefault { display: none; }
}
.geo-dms       { display: inline; }
.geo-nondefault {
.geo-dec       { display: inline; }
    display: none;
.geo-multi-punct { display: none; }
}
.longitude .latitude { white-space: nowrap; }
.geo-dms {
    display: inline;
}
.geo-dec {
    display: inline;
}
.geo-multi-punct {
    display: none;
}
.longitude .latitude {
    white-space: nowrap;
}
.geo { /* empty, kept for completeness */ }




خط ۱٬۱۱۷: خط ۱٬۰۴۷:
}
}


/* Limit TOC levels */
.toclimit-2 .toclevel-2 { display: none; }
.toclimit-2 .toclevel-2 { display: none; }
.toclimit-3 .toclevel-3 { display: none; }
.toclimit-3 .toclevel-3 { display: none; }
خط ۱٬۱۲۷: خط ۱٬۰۵۶:


/* ============================================================
/* ============================================================
   39. Listify (for transcluded pages)
   39. Listify
   ============================================================ */
   ============================================================ */
.listify td { display: list-item; }
.listify td   { display: list-item; }
.listify tr { display: block; }
.listify tr   { display: block; }
.listify table { display: block; }
.listify table { display: block; }


خط ۱٬۱۷۳: خط ۱٬۱۰۲:


/* ============================================================
/* ============================================================
   44. Message Box Cell Sizing (generic)
   44. Message Box Cell Sizing
   ============================================================ */
   ============================================================ */
th.mbox-text,
th.mbox-text,
خط ۱٬۱۹۴: خط ۱٬۱۲۳:


/* ============================================================
/* ============================================================
   45. sup / sub Line Height (already defined above, kept for clarity)
   45. WikiProject Banner Headers
  ============================================================ */
/* Already set in section 4 */
 
 
/* ============================================================
  46. WikiProject Banner Headers
   ============================================================ */
   ============================================================ */
.wpbs-inner .wpb .wpb-header {
.wpbs-inner .wpb .wpb-header {
خط ۱٬۲۰۸: خط ۱٬۱۳۱:


/* ============================================================
/* ============================================================
   47. Abuse Filter Tag Styling
   46. Abuse Filter Tag Styling
   ============================================================ */
   ============================================================ */
.mw-tag-markers {
.mw-tag-markers {
خط ۱٬۲۱۷: خط ۱٬۱۴۰:


/* ============================================================
/* ============================================================
   48. Hide Special Permission Elements
   47. Hide Special Permission Elements
   ============================================================ */
   ============================================================ */
.checkuser-show,
.checkuser-show,
خط ۱٬۲۳۲: خط ۱٬۱۵۵:


/* ============================================================
/* ============================================================
   49. Hieroglyph Table
   48. Hieroglyph Table
   ============================================================ */
   ============================================================ */
.mw-hierotable,
.mw-hierotable,
خط ۱٬۲۴۶: خط ۱٬۱۶۹:


/* ============================================================
/* ============================================================
   50. Template:Ref Printing Workaround
   49. Template:Ref Printing Workaround
   ============================================================ */
   ============================================================ */
.plainlinksneverexpand a.external.text:after,
.plainlinksneverexpand a.external.text:after,
خط ۱٬۲۵۵: خط ۱٬۱۷۸:


/* ============================================================
/* ============================================================
   51. Main Page Globe Icon
   50. Main Page Globe Icon
   ============================================================ */
   ============================================================ */
.globegris {
.globegris {
خط ۱٬۲۶۳: خط ۱٬۱۸۶:


/* ============================================================
/* ============================================================
   52. Preferences Section
   51. Preferences Section
   ============================================================ */
   ============================================================ */
.prefsection fieldset {
.prefsection fieldset {
خط ۱٬۲۷۱: خط ۱٬۱۹۴:


/* ============================================================
/* ============================================================
   53. Hidden Categories Font Size
   52. Hidden Categories Font Size
   ============================================================ */
   ============================================================ */
#mw-hidden-catlinks {
#mw-hidden-catlinks {
خط ۱٬۲۷۹: خط ۱٬۲۰۲:


/* ============================================================
/* ============================================================
   54. Listify Spacing
   53. Listify Spacing
   ============================================================ */
   ============================================================ */
.listify {
.listify {
خط ۱٬۲۸۸: خط ۱٬۲۱۱:


/* ============================================================
/* ============================================================
   55. Filter Rules Direction (LTR for code)
   54. Filter Rules Direction
   ============================================================ */
   ============================================================ */
#wpFilterRules {
#wpFilterRules {
خط ۱٬۲۹۶: خط ۱٬۲۱۹:


/* ============================================================
/* ============================================================
   56. Edit Summary Bidi Fixes
   55. Edit Summary Bidi Fixes
   ============================================================ */
   ============================================================ */
.comment > span {
.comment > span {
خط ۱٬۳۰۸: خط ۱٬۲۳۱:


/* ============================================================
/* ============================================================
   57. Upload Description Height
   56. Upload Description Height
   ============================================================ */
   ============================================================ */
#wpUploadDescription {
#wpUploadDescription {
خط ۱٬۳۱۶: خط ۱٬۲۳۹:


/* ============================================================
/* ============================================================
   58. User Comment Highlighter
   57. User Comment Highlighter
   ============================================================ */
   ============================================================ */
.mycomment {
.mycomment {
خط ۱٬۳۲۴: خط ۱٬۲۴۷:


/* ============================================================
/* ============================================================
   59. Pie Chart Test: Transparent Borders
   58. Pie Chart Test: Transparent Borders
   ============================================================ */
   ============================================================ */
.transborder {
.transborder {
خط ۱٬۳۳۲: خط ۱٬۲۵۵:


/* ============================================================
/* ============================================================
   60. Hide Edittools Base (for non‑gadget users)
   59. Hide Edittools Base
   ============================================================ */
   ============================================================ */
#mw-edittools-charinsert {
#mw-edittools-charinsert {
خط ۱٬۳۴۰: خط ۱٬۲۶۳:


/* ============================================================
/* ============================================================
   61. Category Tree Styling
   60. Category Tree Styling
   ============================================================ */
   ============================================================ */
#mw-subcategories ul {
#mw-subcategories ul {
خط ۱٬۳۵۸: خط ۱٬۲۸۱:


/* ============================================================
/* ============================================================
   62. Notice for Sandbox Pages
   61. Notice for Sandbox Pages
   ============================================================ */
   ============================================================ */
body.ns-2[class*="_صفحه_تمرین"] #firstHeading::after {
body.ns-2[class*="_صفحه_تمرین"] #firstHeading::after {
خط ۱٬۳۷۰: خط ۱٬۲۹۳:


/* ============================================================
/* ============================================================
   63. Recent Changes Font Adjustments
   62. Recent Changes Font Adjustments
   ============================================================ */
   ============================================================ */
.mw-fr-reviewlink,
.mw-fr-reviewlink,
خط ۱٬۳۸۱: خط ۱٬۳۰۴:


/* ============================================================
/* ============================================================
   64. Temporary Fixes (jQuery UI)
   63. Temporary Fixes (jQuery UI)
   ============================================================ */
   ============================================================ */
.ui-dialog {
.ui-dialog {
خط ۱٬۳۹۲: خط ۱٬۳۱۵:


/* ============================================================
/* ============================================================
   65. Hide Checkboxes in Inputbox
   64. Hide Checkboxes in Inputbox
   ============================================================ */
   ============================================================ */
.inputbox-hidecheckboxes form .inputbox-element {
.inputbox-hidecheckboxes form .inputbox-element {
خط ۱٬۴۰۰: خط ۱٬۳۲۳:


/* ============================================================
/* ============================================================
   66. Tag Highlighter Visibility (hide a specific tag)
   65. Tag Highlighter Visibility
   ============================================================ */
   ============================================================ */
.mw-tag-marker-نیازمند_بازبینی {
.mw-tag-marker-نیازمند_بازبینی {
خط ۱٬۴۰۸: خط ۱٬۳۳۱:


/* ============================================================
/* ============================================================
   67. Reduce Page Jumps for Watchlist
   66. Reduce Page Jumps for Watchlist
   ============================================================ */
   ============================================================ */
.client-js .mw-special-Watchlist #watchlist-message {
.client-js .mw-special-Watchlist #watchlist-message {
خط ۱٬۴۱۶: خط ۱٬۳۳۹:


/* ============================================================
/* ============================================================
   68. Emphasize Create Article Links
   67. Emphasize Create Article Links
   ============================================================ */
   ============================================================ */
.mw-warning-with-logexcerpt a[title="ویکی‌پدیا:ایجاد مقاله"] {
.mw-warning-with-logexcerpt a[title="ویکی‌پدیا:ایجاد مقاله"] {
خط ۱٬۴۲۵: خط ۱٬۳۴۸:


/* ============================================================
/* ============================================================
   69. Admin Editing Protected Page
   68. Admin Editing Protected Page
   ============================================================ */
   ============================================================ */
.mw-textarea-protected {
.mw-textarea-protected {
خط ۱٬۴۳۳: خط ۱٬۳۵۶:


/* ============================================================
/* ============================================================
   70. Color Diff Links
   69. Color Diff Links
   ============================================================ */
   ============================================================ */
.mw-diff-undo a,
.mw-diff-undo a,
خط ۱٬۴۴۶: خط ۱٬۳۶۹:


/* ============================================================
/* ============================================================
   71. Cite and dfn Styling
   70. Cite and dfn Styling
   ============================================================ */
   ============================================================ */
cite,
cite,
خط ۱٬۴۵۵: خط ۱٬۳۷۸:


/* ============================================================
/* ============================================================
   72. LTR Citations
   71. LTR Citations
   ============================================================ */
   ============================================================ */
li.mw-cite-dir-ltr {
li.mw-cite-dir-ltr {
خط ۱٬۴۶۹: خط ۱٬۳۹۲:


/* ============================================================
/* ============================================================
   73. Persian Alphabet Ordered List Counter
   72. Persian Alphabet Ordered List Counter
   ============================================================ */
   ============================================================ */
@counter-style persian-alpha {
@counter-style persian-alpha {
خط ۱٬۴۸۵: خط ۱٬۴۰۸:


/* ============================================================
/* ============================================================
   74. Parsoid Cite Implementation (counter overrides)
   73. Parsoid Cite Implementation
   ============================================================ */
   ============================================================ */
.mw-ref > a[data-mw-group=lower-greek]::after {
.mw-ref > a[data-mw-group=lower-greek]::after { content: '[' counter(mw-Ref, lower-greek) ']'; }
    content: '[' counter(mw-Ref, lower-greek) ']';
.mw-ref > a[data-mw-group=upper-roman]::after { content: '[' counter(mw-Ref, upper-roman) ']'; }
}
.mw-ref > a[data-mw-group=upper-alpha]::after { content: '[' counter(mw-Ref, upper-alpha) ']'; }
.mw-ref > a[data-mw-group=upper-roman]::after {
.mw-ref > a[data-mw-group=persian-alpha]::after { content: '[' counter(mw-Ref, persian-alpha) ']'; }
    content: '[' counter(mw-Ref, upper-roman) ']';
.mw-ref > a[data-mw-group=lower-roman]::after { content: '[' counter(mw-Ref, lower-roman) ']'; }
}
.mw-ref > a[data-mw-group=lower-alpha]::after { content: '[' counter(mw-Ref, lower-alpha) ']'; }
.mw-ref > a[data-mw-group=upper-alpha]::after {
    content: '[' counter(mw-Ref, upper-alpha) ']';
}
.mw-ref > a[data-mw-group=persian-alpha]::after {
    content: '[' counter(mw-Ref, persian-alpha) ']';
}
.mw-ref > a[data-mw-group=lower-roman]::after {
    content: '[' counter(mw-Ref, lower-roman) ']';
}
.mw-ref > a[data-mw-group=lower-alpha]::after {
    content: '[' counter(mw-Ref, lower-alpha) ']';
}
span[rel="mw:referencedBy"] > a::before {
span[rel="mw:referencedBy"] > a::before {
     content: counter(mw-references, persian) '٫' counter(mw-ref-linkback, persian);
     content: counter(mw-references, persian) '٫' counter(mw-ref-linkback, persian);
خط ۱٬۵۱۱: خط ۱٬۴۲۲:


/* ============================================================
/* ============================================================
   75. Table Alignment Adjustments
   74. Table Alignment Adjustments
   ============================================================ */
   ============================================================ */
table[align="left"] {
table[align="left"] {
خط ۱٬۵۲۳: خط ۱٬۴۳۴:


/* ============================================================
/* ============================================================
   76. User‑select Prevention for Indicators
   75. User-select Prevention for Indicators
   ============================================================ */
   ============================================================ */
.mw-indicator,
.mw-indicator,
خط ۱٬۵۳۶: خط ۱٬۴۴۷:


/* ============================================================
/* ============================================================
   77. Title Padding for Italic Headings
   76. Title Padding for Italic Headings
   ============================================================ */
   ============================================================ */
html[dir=rtl] #firstHeading > i:first-child {
html[dir=rtl] #firstHeading > i:first-child {
خط ۱٬۵۴۴: خط ۱٬۴۵۵:


/* ============================================================
/* ============================================================
   78. Persian Numerals for Static Row Numbers
   77. Persian Numerals for Static Row Numbers
   ============================================================ */
   ============================================================ */
body:not(.skin-minerva) .static-row-numbers.sortable tbody tr:not(.static-row-header):not(.static-row-numbers-norank)::before,
body:not(.skin-minerva) .static-row-numbers.sortable tbody tr:not(.static-row-header):not(.static-row-numbers-norank)::before,
خط ۱٬۵۵۴: خط ۱٬۴۶۵:


/* ============================================================
/* ============================================================
   79. Dark Mode Background Fix
   78. Dark Mode Background Fix
   ============================================================ */
   ============================================================ */
html.skin-theme-clientpref-night {
html.skin-theme-clientpref-night {
خط ۱٬۵۶۷: خط ۱٬۴۷۸:


/* ============================================================
/* ============================================================
   80. Main Page Logos (section icons)
   79. Main Page Logos (section icons)
   ============================================================ */
   ============================================================ */
#mp-article .mp-h2 span:before,
#mp-article .mp-h2 span:before,
خط ۱٬۵۷۶: خط ۱٬۴۸۷:
     background: url('https://imamreza.org/w/images/6/64/Favicon.ico') no-repeat center center;
     background: url('https://imamreza.org/w/images/6/64/Favicon.ico') no-repeat center center;
}
}
/* ============================================================
  Design by ali.jafari | @elnino799
  ============================================================ */