MediaWiki:Common.css: Revizyonlar arasındaki fark

korna ansiklopedisi sitesinden
Gezinti kısmına atlaArama kısmına atla
düzenleme özeti yok
Değişiklik özeti yok
Etiket: Geri alındı
Değişiklik özeti yok
Etiket: Elle geri alma
 
1. satır: 1. satır:
/* Buraya konulacak CSS kodu tüm temalarda etkin olur */
/*
/* İleti kutusu şablonları */
* This is the CSS common to all desktop skins on en.Wikipedia.
.messagebox {
* Styling inside .mw-parser-output should generally use TemplateStyles.
border: 1px solid #a2a9b1;
*/
background-color: #f8f9fa;
/* Reset italic styling set by user agent */
width: 80%;
cite,
margin: 0 auto 1em auto;
dfn {
padding: .2em;
font-style: inherit;
}
}
.messagebox.merge {
 
border: 1px solid #c0b8cc;
/* Straight quote marks for <q> */
background-color: #f0e5ff;
q {
text-align: center;
quotes: '"' '"' "'" "'";
}
}
.messagebox.cleanup {
 
border: 1px solid #9f9fff;
/* Avoid collision of blockquote with floating elements by swapping margin and padding */
background-color: #efefff;
blockquote {
text-align: center;
overflow: hidden;
margin: 1em 0;
padding: 0 40px;
}
}
.messagebox.standard-talk {
 
border: 1px solid #c0c090;
/* Consistent size for <small>, <sub> and <sup> */
background-color: #f8eaba;
small {
margin: 4px auto;
font-size: 85%;
}
}


/* Cell sizes for ambox/tmbox/imbox/cmbox/ombox/fmbox/dmbox message boxes */
.mw-body-content sub,
th.mbox-text, td.mbox-text {   /* The message body cell(s) */
.mw-body-content sup {
border: none;
font-size: 80%;
/* @noflip */
padding: 0.25em 0.9em;    /* 0.9em left/right */
width: 100%;               /* Make all mboxes the same width regardless of text length */
}
}
td.mbox-image {                /* The left image cell */
 
border: none;
/* Same spacing for indented and unindented paragraphs on talk pages */
/* @noflip */
.ns-talk .mw-body-content dd {
padding: 2px 0 2px 0.9em; /* 0.9em left, 0px right */
margin-top: 0.4em;
text-align: center;
margin-bottom: 0.4em;
}
}
td.mbox-imageright {          /* The right image cell */
 
border: none;
/* Reduce page jumps by hiding collapsed/dismissed content */
/* @noflip */
.client-js .collapsible:not( .mw-made-collapsible).collapsed > tbody > tr:not(:first-child),
padding: 2px 0.9em 2px 0;  /* 0px left, 0.9em right */
 
text-align: center;
/* Avoid FOUC/reflows on collapsed elements. */
/* This copies MediaWiki's solution for T42812 to apply to innercollapse/outercollapse (T325115). */
/* TODO: Use :is() selector at some reasonable future when support is good for Most Clients */
/* Reference: https://gerrit.wikimedia.org/g/mediawiki/core/+/ecda06cb2aef55b77c4b4d7ecda492d634419ead/resources/src/jquery/jquery.makeCollapsible.styles.less#75 */
.client-js .outercollapse .innercollapse.mw-collapsible:not( .mw-made-collapsible ) > p,
.client-js .outercollapse .innercollapse.mw-collapsible:not( .mw-made-collapsible ) > table,
.client-js .outercollapse .innercollapse.mw-collapsible:not( .mw-made-collapsible ) > thead + tbody,
.client-js .outercollapse .innercollapse.mw-collapsible:not( .mw-made-collapsible ) tr:not( :first-child ),
.client-js .outercollapse .innercollapse.mw-collapsible:not( .mw-made-collapsible ) .mw-collapsible-content,
 
/* Hide charinsert base for those not using the gadget */
#editpage-specialchars {
display: none;
}
}
td.mbox-empty-cell {          /* An empty narrow cell */
 
border: none;
/* Different margin on references */
padding: 0;
.references {
width: 1px;
margin-bottom: 0.5em;
}
}


/* Article message box styles */
/* Cite customizations */
table.ambox {
span[ rel="mw:referencedBy" ] {
margin: 0 10%;                  /* 10% = Will not overlap with other elements */
counter-reset: mw-ref-linkback 0;
border: 1px solid #a2a9b1;
/* @noflip */
border-left: 10px solid #36c;  /* Default "notice" blue */
background-color: #fbfbfb;
box-sizing: border-box;
}
}
table.ambox + table.ambox {     /* Single border between stacked boxes. */
 
margin-top: -1px;
span[ rel='mw:referencedBy' ] > a::before {
content: counter( mw-ref-linkback, lower-alpha );
font-size: 80%;
font-weight: bold;
font-style: italic;
}
}
.ambox th.mbox-text,
 
.ambox td.mbox-text {            /* The message body cell(s) */
a[ rel="mw:referencedBy" ]::before {
padding: 0.25em 0.5em;       /* 0.5em left/right */
font-weight: bold;
content: "^";
}
}
.ambox td.mbox-image {           /* The left image cell */
 
/* @noflip */
span[ rel="mw:referencedBy" ]::before {
padding: 2px 0 2px 0.5em;   /* 0.5em left, 0px right */
content: "^ ";
}
}
.ambox td.mbox-imageright {     /* The right image cell */
 
/* @noflip */
/* Styling for jQuery makeCollapsible, matching that of collapseButton */
padding: 2px 0.5em 2px 0;   /* 0px left, 0.5em right */
.mw-parser-output .mw-collapsible-toggle:not(.mw-ui-button) {
font-weight: normal;
padding-right: 0.2em;
padding-left: 0.2em;
}
}


table.ambox-notice {
.mw-collapsible-leftside-toggle .mw-collapsible-toggle {
/* @noflip */
/* @noflip */
border-left: 10px solid #36c;       /* Blue */
float: left;
}
}
table.ambox-speedy {
 
/* Lists in wikitable data cells are always left-aligned */
.wikitable td ul,
.wikitable td ol,
.wikitable td dl {
/* @noflip */
/* @noflip */
border-left: 10px solid #b32424;    /* Red */
text-align: left;
background-color: #fee7e6;         /* Pink */
}
}
table.ambox-delete {
 
/* Change the external link icon to a PDF icon for all PDF files */
.mw-parser-output a[href$=".pdf"].external,
.mw-parser-output a[href*=".pdf?"].external,
.mw-parser-output a[href*=".pdf#"].external,
.mw-parser-output a[href$=".PDF"].external,
.mw-parser-output a[href*=".PDF?"].external,
.mw-parser-output a[href*=".PDF#"].external {
background: url("//upload.wikimedia.org/wikipedia/commons/4/4d/Icon_pdf_file.png") no-repeat right;
/* @noflip */
/* @noflip */
border-left: 10px solid #b32424;   /* Red */
padding: 8px 18px 8px 0;
}
}
table.ambox-content {
 
/* @noflip */
/* System messages styled similarly to fmbox */
border-left: 10px solid #f28500;   /* Orange */
/* for .mw-warning-with-logexcerpt, behavior of this line differs between
* the edit-protected notice and the special:Contribs for blocked users
* The latter has specificity of 3 classes so we have to triple up here.
*/
.mw-warning-with-logexcerpt.mw-warning-with-logexcerpt.mw-warning-with-logexcerpt,
div.mw-lag-warn-high,
div.mw-cascadeprotectedwarning,
div#mw-protect-cascadeon {
clear: both;
margin: 0.2em 0;
border: 1px solid #bb7070;
background-color: var(--background-color-error-subtle, #ffdbdb);
padding: 0.25em 0.9em;
box-sizing: border-box;
}
}
table.ambox-style {
 
/* @noflip */
/* default colors for partial block message */
border-left: 10px solid #fc3;       /* Yellow */
/* gotta get over the hump introduced by the triple class above */
.mw-contributions-blocked-notice-partial .mw-warning-with-logexcerpt.mw-warning-with-logexcerpt {
border-color: #fc3;
background-color: var(--background-color-warning-subtle, #fef6e7);
}
}
table.ambox-move {
 
/* @noflip */
/* Minimum thumb width */
border-left: 10px solid #9932cc;   /* Purple */
@media (min-width: 640px) {
figure[typeof~='mw:File/Thumb'],
figure[typeof~='mw:File/Frame'],
.thumbinner {
min-width: 100px;
}
}
}
table.ambox-protection {
 
/* @noflip */
/* Prevent floating boxes from overlapping any category listings,
border-left: 10px solid #a2a9b1;   /* Gray-gold */
  file histories, edit previews, and edit [Show changes] views. */
#mw-subcategories,
#mw-pages,
#mw-category-media,
#filehistory,
#wikiPreview,
#wikiDiff {
clear: both;
}
}


/* Image message box styles */
/* Hide stuff meant for accounts with special permissions. Made visible again in
table.imbox {
  [[MediaWiki:Group-checkuser.css]], [[MediaWiki:Group-sysop.css]], [[MediaWiki:Group-abusefilter.css]],
margin: 4px 10%;
  [[MediaWiki:Group-abusefilter-helper.css]], [[MediaWiki:Group-patroller.css]],
border-collapse: collapse;
  [[MediaWiki:Group-templateeditor.css]], [[MediaWiki:Group-extendedmover.css]],
border: 3px solid #36c;    /* Default "notice" blue */
  [[MediaWiki:Group-extendedconfirmed.css]], and [[Mediawiki:Group-autoconfirmed.css]]. */
background-color: #fbfbfb;
.checkuser-show,
box-sizing: border-box;
.sysop-show,
.abusefilter-show,
.abusefilter-helper-show,
.patroller-show,
.templateeditor-show,
.extendedmover-show,
.extendedconfirmed-show,
.autoconfirmed-show,
.user-show {
display: none;
}
}
.imbox .mbox-text .imbox {  /* For imboxes inside imbox-text cells. */
 
margin: 0 -0.5em;      /* 0.9 - 0.5 = 0.4em left/right.       */
/* Hide the redlink generated by {{Editnotice}},
display: block;         /* Fix for webkit to force 100% width.  */
  this overrides the ".sysop-show { display: none; }" above that applies
  to the same link as well. See [[phab:T45013]]
 
  Hide the images in editnotices to keep them readable in VE view.
  Long term, editnotices should become a core feature so that they can be designed responsive. */
.ve-ui-mwNoticesPopupTool-item .editnotice-redlink,
.ve-ui-mwNoticesPopupTool-item .mbox-image,
.ve-ui-mwNoticesPopupTool-item .mbox-imageright {
display: none !important;
}
}
.mbox-inside .imbox {      /* For imboxes inside other templates.  */
 
margin: 4px;
/* Remove bullets when there are multiple edit page warnings */
ul.permissions-errors {
margin: 0;
}
}


table.imbox-notice {
ul.permissions-errors > li {
border: 3px solid #36c;       /* Blue */
list-style: none;
}
}
table.imbox-speedy {
 
border: 3px solid #b32424;    /* Red */
/* larger inline math */
background-color: #fee7e6;   /* Pink */
span.mwe-math-mathml-inline {
font-size: 118%;
}
}
table.imbox-delete {
 
border: 3px solid #b32424;   /* Red */
/* Make <math display="block"> be left aligned with one space indent for
* compatibility with style conventions
*/
.mwe-math-fallback-image-display,
.mwe-math-mathml-display {
margin-left: 1.6em !important;
margin-top: 0.6em;
margin-bottom: 0.6em;
}
}
table.imbox-content {
 
border: 3px solid #f28500;   /* Orange */
.mwe-math-mathml-display math {
display: inline;
}
}
table.imbox-style {
 
border: 3px solid #fc3;       /* Yellow */
@media screen {
/* Put a chequered background behind images, only visible if they have transparency,
* except on main, user, and portal namespaces
*/
body:not(.ns-0):not(.ns-2):not(.ns-100) .gallerybox .thumb img {
background: #fff url(//upload.wikimedia.org/wikipedia/commons/5/5d/Checker-16x16.png) repeat;
}
 
/* Display "From Wikipedia, the free encyclopedia" in skins that support it,
  do not apply to print mode */
#siteSub {
display: block;
}
/* Make the list of references smaller
* Keep in sync with Template:Refbegin/styles.css
* And Template:Reflist/styles.css
*/
.references {
font-size: 90%;
}
}
}
table.imbox-move {
 
border: 3px solid #9932cc;    /* Purple */
/* Hide FlaggedRevs notice UI when there are no pending changes */
}
.flaggedrevs_draft_synced,
table.imbox-protection {
.flaggedrevs_stable_synced,
border: 3px solid #a2a9b1;    /* Gray-gold */
/* "Temporary" to remove links in sidebar T255381 */
}
#t-upload,
table.imbox-license {
/* Hide broken download box on Special:Book pending T285400 */
border: 3px solid #88a;      /* Dark gray */
.mw-special-Book #coll-downloadbox {
background-color: #f7f8ff;    /* Light gray */
display: none;
}
table.imbox-featured {
border: 3px solid #cba135;   /* Brown-gold */
}
}


/* Category message box styles */
/*
table.cmbox {
* BELOW HERE THERE BE SOONTOBE TEMPLATESTYLES THINGS;
margin: 3px 10%;
* SEE [[MediaWiki talk:Common.css/to do]]
border-collapse: collapse;
* CSS is separated by component (which is why media queries are not joined)
*/
 
/* Infoboxes */
.infobox {
border: 1px solid #a2a9b1;
border: 1px solid #a2a9b1;
background-color: #dfe8ff;   /* Default "notice" blue */
color: black;
box-sizing: border-box;
padding: 0.2em;
font-size: 88%;
line-height: 1.5em;
border-spacing: 3px;
}
}


table.cmbox-notice {
@media screen {
background-color: #d8e8ff;   /* Blue */
.infobox {
background-color: #f8f9fa;
    }
}
}
table.cmbox-speedy {
 
margin-top: 4px;
@media (max-width: 640px) {
margin-bottom: 4px;
.infobox {
border: 4px solid #b32424;   /* Red */
width: 100%;
background-color: #ffdbdb;    /* Pink */
}
   
.infobox .nowrap {
white-space: normal;
}
}
}
table.cmbox-delete {
 
background-color: #ffdbdb;   /* Pink */
@media (min-width: 640px) {
.infobox {
/* @noflip */
margin: 0.5em 0 0.5em 1em;
/* @noflip */
float: right;
/* @noflip */
clear: right;
width: 22em;
}
}
}
table.cmbox-content {
 
background-color: #ffe7ce;   /* Orange */
.infobox-header,
.infobox-label,
.infobox-above,
.infobox-full-data,
.infobox-data,
.infobox-below,
.infobox-subheader,
.infobox-image,
.infobox-navbar,
/* Remove element selector when every .infobox thing is using the standard module/templates  */
.infobox th,
.infobox td {
vertical-align: top;
}
}
table.cmbox-style {
 
background-color: #fff9db;    /* Yellow */
.infobox-label,
.infobox-data,
/* Remove element selector when every .infobox thing is using the standard module/templates  */
.infobox th,
.infobox td {
/* @noflip */
text-align: left;
}
}
table.cmbox-move {
 
background-color: #e4d8ff;   /* Purple */
/* Remove .infobox when element selectors above are removed */
.infobox .infobox-above,
.infobox .infobox-title,
/* Remove element selector when every .infobox thing is using the standard module/templates  */
.infobox caption {
font-size: 125%;
font-weight: bold;
text-align: center;
}
}
table.cmbox-protection {
 
background-color: #efefe1;   /* Gray-gold */
.infobox-title,
/* Remove element selector when every .infobox thing is using the standard module/templates  */
.infobox caption {
padding: 0.2em;
}
}


/* Other pages message box styles */
/* Remove .infobox when element selectors above are removed */
table.ombox {
.infobox .infobox-header,
margin: 4px 10%;
.infobox .infobox-subheader,
border-collapse: collapse;
.infobox .infobox-image,
border: 1px solid #a2a9b1;    /* Default "notice" gray */
.infobox .infobox-full-data,
background-color: #f8f9fa;
.infobox .infobox-below {
box-sizing: border-box;
text-align: center;
}
}


table.ombox-notice {
/* Remove .infobox when element selectors above are removed */
border: 1px solid #a2a9b1;    /* Gray */
.infobox .infobox-navbar {
/* @noflip */
text-align: right;
}
}
table.ombox-speedy {
 
border: 2px solid #b32424;    /* Red */
/* Normal font styling for wikitable row headers with scope="row" tag */
background-color: #fee7e6;    /* Pink */
.wikitable.plainrowheaders th[scope=row],
}
.wikitable.plainrowheaders th[scope=rowgroup] {
table.ombox-delete {
font-weight: normal;
border: 2px solid #b32424;    /* Red */
/* @noflip */
}
text-align: left;
table.ombox-content {
border: 1px solid #f28500;   /* Orange */
}
table.ombox-style {
border: 1px solid #fc3;      /* Yellow */
}
table.ombox-move {
border: 1px solid #9932cc;    /* Purple */
}
table.ombox-protection {
border: 2px solid #a2a9b1;   /* Gray-gold */
}
}


/* Talk page message box styles */
/* Remove underlines from certain links */
table.tmbox {
.nounderlines a,
margin: 4px 10%;
.IPA a:link,
border-collapse: collapse;
.IPA a:visited {
border: 1px solid #c0c090;    /* Default "notice" gray-brown */
text-decoration: none !important;
background-color: #f8eaba;
min-width: 80%;
box-sizing: border-box;
}
.tmbox.mbox-small {
min-width: 0;                /* reset the min-width of tmbox above        */
}
.mediawiki .mbox-inside .tmbox { /* For tmboxes inside other templates. The "mediawiki" class ensures that */
margin: 2px 0;              /* this declaration overrides other styles (including mbox-small above)  */
width: 100%;                /* For Safari and Opera */
}
.mbox-inside .tmbox.mbox-small { /* "small" tmboxes should not be small when  */
line-height: 1.5em;          /* also "nested", so reset styles that are  */
font-size: 100%;             /* set in "mbox-small" above.                */
}
}


table.tmbox-speedy {
/* Prevent line breaks in silly places where desired (nowrap)
border: 2px solid #b32424;    /* Red */
   and links when we don't want them to (nowraplinks a) */
background-color: #fee7e6;   /* Pink */
.nowrap,
}
.nowraplinks a {
table.tmbox-delete {
white-space: nowrap;
border: 2px solid #b32424;    /* Red */
}
table.tmbox-content {
border: 2px solid #f28500;    /* Orange */
}
table.tmbox-style {
border: 2px solid #fc3;      /* Yellow */
}
table.tmbox-move {
border: 2px solid #9932cc;    /* Purple */
}
table.tmbox-protection,
table.tmbox-notice {
border: 1px solid #c0c090;   /* Gray-brown */
}
}


/* Footer and header message box styles */
/* But allow wrapping where desired: */
table.fmbox {
.wrap,
clear: both;
.wraplinks a {
margin: 0.2em 0;
white-space: normal;
width: 100%;
border: 1px solid #a2a9b1;
background-color: #f8f9fa;    /* Default "system" gray */
box-sizing: border-box;
}
table.fmbox-system {
background-color: #f8f9fa;
}
table.fmbox-warning {
border: 1px solid #bb7070;  /* Dark pink */
background-color: #ffdbdb;  /* Pink */
}
table.fmbox-editnotice {
background-color: transparent;
}
/* Div based "warning" style fmbox messages. */
div.mw-warning-with-logexcerpt,
div.mw-lag-warn-high,
div.mw-cascadeprotectedwarning,
div#mw-protect-cascadeon,
div.titleblacklist-warning,
div.locked-warning {
clear: both;
margin: 0.2em 0;
border: 1px solid #bb7070;
background-color: #ffdbdb;
padding: 0.25em 0.9em;
box-sizing: border-box;
}
}


/* These mbox-small classes must be placed after all other
/* texhtml class for inline math (based on generic times-serif class) */
  ambox/tmbox/ombox etc classes. "html body.mediawiki" is so
/* remove spans when this is TemplateStyled */
  they override "table.ambox + table.ambox" above. */
span.texhtml {
html body.mediawiki .mbox-small {   /* For the "small=yes" option. */
font-family: "Nimbus Roman No9 L", "Times New Roman", Times, serif;
/* @noflip */
font-size: 118%;
clear: right;
line-height: 1;
/* @noflip */
/* Force tabular and lining display for texhtml */
float: right;
font-variant-numeric: lining-nums tabular-nums;
/* @noflip */
font-kerning: none;
margin: 4px 0 4px 1em;
box-sizing: border-box;
width: 238px;
font-size: 88%;
line-height: 1.25em;
}
html body.mediawiki .mbox-small-left {  /* For the "small=left" option. */
/* @noflip */
margin: 4px 1em 4px 0;
box-sizing: border-box;
overflow: hidden;
width: 238px;
border-collapse: collapse;
font-size: 88%;
line-height: 1.25em;
}
}


/* Style for compact ambox */
span.texhtml span.texhtml {
/* Hide the images */
.compact-ambox table .mbox-image,
.compact-ambox table .mbox-imageright,
.compact-ambox table .mbox-empty-cell {
display: none;
}
/* Remove borders, backgrounds, padding, etc. */
.compact-ambox table.ambox {
border: none;
border-collapse: collapse;
background-color: transparent;
margin: 0 0 0 1.6em !important;
padding: 0 !important;
width: auto;
display: block;
}
body.mediawiki .compact-ambox table.mbox-small-left {
font-size: 100%;
font-size: 100%;
width: auto;
margin: 0;
}
}
/* Style the text cell as a list item and remove its padding */
 
.compact-ambox table .mbox-text {
@media (min-width: 640px) {
padding: 0 !important;
span.texhtml {
margin: 0 !important;
white-space: nowrap;
}
}
}
.compact-ambox table .mbox-text-span {
 
display: list-item;
/* Prevent flags in tables from collapsing: Fix for T116318
line-height: 1.5em;
* TODO: Remove when [[phab:T368469]] merges [[phab:T367463]] for the other skins
list-style-type: square;
*/
list-style-image: url(/w/skins/MonoBook/resources/images/bullet.svg);
@media (max-width: 640px) {
.flagicon a > img,
.flagicon noscript > img {
max-width: none !important;
}
}
}
.skin-vector .compact-ambox table .mbox-text-span {
 
list-style-type: disc;
@media screen {
list-style-image: url(/w/skins/Vector/resources/skins.vector.styles/images/bullet-icon.svg);
.nochecker .gallerybox .thumb img {
}
background-image: none;
/* Allow for hiding text in compact form */
}
.compact-ambox .hide-when-compact {
display: none;
}
}
/*
* Put anything you mean to be a sitewide addition above the TemplateStyles
* comment above.
*/

Gezinti menüsü