د "ميډياويکي:Gadget-responsiveContentBaseTimeless.css" د بڼو تر مېنځ توپير

Content deleted Content added
د ABreault (WMF) (خبرې اترې) له خوا شوې 297966 بڼه بېرته وګرځول شوه
نښلن: ناکړل
 
۱ کرښه:
/*
@media (max-width:850px) {
* have to override Timeless being a little aggressive with tables in
table.tmbox:not(.mbox-small),table.ambox:not(.mbox-small),
* the 720-850 range
table.imbox:not(.mbox-small),table.cmbox:not(.mbox-small),
*/
table.ombox:not(.mbox-small) {
@media (min-width: 720px) and (max-width: 850px) {
margin: 0;
table.ambox:not(.mbox-small-left),
padding: 5px;
table.cmbox,
box-sizing: border-box;
table.imbox,
border-collapse: separate;
table.ombox:not(.mbox-small),
}
table.tmbox:not(.mbox-small) {
width: 80%;
.mw-body-content td.mbox-image.mbox-image {
float: left;
padding: 0 4px;
}
.mw-body-content td.mbox-imageright.mbox-imageright {
float:right;
padding: 0 4px;
}
.mw-body-content td.mbox-text {
display: block;
width: auto;
}
/* Main page fixes */
#mp-topbanner > tbody > tr {
display: flex;
flex-wrap: wrap;
width: auto !important;
}
#mp-topbanner > tbody > tr > td:nth-child(1) {
flex:3 0 auto;
width: auto !important;
}
#mp-topbanner > tbody > tr > td:nth-child(n+2) {
flex:0 0 auto;
width: auto !important;
}
/* main page table */
#mp-upper > tbody > tr,
#mp-upper > tbody > tr > *,
#mp-bottom > tbody > tr,
#mp-bottom > tbody > tr > *,
#mp-tfp > table > tbody > tr,
#mp-tfp > table > tbody > tr > * {
display: block;
width: 100% !important;
max-width: 100%;
box-sizing: border-box;
}
}
 
@media only screen and ( max-width: 550px ) {
/* !important to ignore inline styles */
/* .mw-body-content to increase specificity */
.mw-body-content table {
float: none !important;
margin-left: auto !important;
margin-right: auto !important;
}
 
.mw-body-content table {
overflow: auto;
overflow-y: hidden;
overflow-x: auto;
display: block;
max-width: 100% !important;
}
 
.mw-body-content .thumb {,
.mw-body-content figure[typeof~='mw:File/Thumb'],
.mw-body-content figure[typeof~='mw:File/Frame'] {
float: none;
clear: none;
margin: 0.5em auto;
}
 
.mw-body-content .thumbinner {
margin: 0 auto;
Line ۷۸ ⟶ ۴۴:
background-color: transparent;
}
 
.mw-body-content .thumbinner .thumbimage {
max-width: 100%;
Line ۸۳ ⟶ ۵۰:
object-fit: contain;
}
 
.mw-body-content .thumbimage {
border: 0;
background-color: transparent;
}
 
.mw-body-content figure[typeof~='mw:File/Thumb'],
.mw-body-content figure[typeof~='mw:File/Frame'],
.mw-body-content figure[typeof~='mw:File/Thumb'] > figcaption,
.mw-body-content figure[typeof~='mw:File/Frame'] > figcaption {
border: 0;
background-color: transparent;
padding: 0;
}
 
.mw-body-content figure[typeof~='mw:File/Thumb'] > :not(figcaption) .mw-file-element,
.mw-body-content figure[typeof~='mw:File/Frame'] > :not(figcaption) .mw-file-element {
margin: 0 auto 0.5em auto;
max-width: 100% !important;
height: auto;
object-fit: contain;
box-sizing: border-box;
border: 0;
background-color: transparent;
}
 
.mw-body-content .thumbcaption > .magnify {
display: none;
}
 
.mw-body-content figure[typeof~='mw:File/Thumb'] > figcaption::before,
.mw-body-content figure[typeof~='mw:File/Thumb'] > .mw-file-description::after,
.mw-body-content figure[typeof~='mw:File/Thumb'] > .mw-file-magnify::after {
content: none;
}
 
/* amboxes become normal blocks */
.mw-body-content table.ambox > tbody,
Line ۹۶ ⟶ ۹۱:
display: block;
}
 
/* of which we hide some parts by default to shorten them */
.mw-body-content .ambox .mbox-image,
Line ۱۰۲ ⟶ ۹۸:
cursor: pointer;
}
 
.mw-body-content table.ambox {
font-size: 80%;
Line ۱۰۹ ⟶ ۱۰۶:
border-width: 0 0 0 3px;
}
 
.mw-body-content .ambox .mbox-text-span {
text-overflow: ellipsis;
Line ۱۱۵ ⟶ ۱۱۳:
display: block;
}
 
/* But we can flip a class to undo the hiding */
.ambox.mbox-expand .mbox-text-span {
Line ۱۲۱ ⟶ ۱۲۰:
overflow: auto;
}
 
.ambox.mbox-expand .mbox-text .hide-when-compact {
display: inline;
۱۳۱ کرښه:
.mw-body-content .infobox,
.mw-body-content .vertical-navbox,
.mw-body-content .navbox,
.mw-body-content .navbox > .navbox-inner {
Line ۱۳۸ ⟶ ۱۳۷:
display: table;
}
 
/* Single column refs */
.mw-body-content .references-column-count,
.mw-body-content .column-count {
-moz-column-width: 35em;
-webkit-column-width: 35em;
column-width: 35em;
}
.mw-body-content .image > img {
max-width: 100%;
Line ۱۵۱ ⟶ ۱۴۴:
object-fit: contain;
}
 
.mw-body-content {
word-wrap: break-word;
Line ۱۵۶ ⟶ ۱۵۰:
}
 
@media only screen and ( max-width: 550px ) and ( -webkit-min-device-pixel-ratio: 1.5 ),
only screen and ( max-width: 550px ) and ( min-resolution: 1.5dppx ) {
@supports ( object-fit: contain ) {
{
.mw-body-content div.thumbinner,
@supports (object-fit: contain) {
.mw-body-content div.thumbinner {figure[typeof~='mw:File/Thumb'],
.mw-body-content figure[typeof~='mw:File/Frame'] {
width: 100% !important;
padding: 0 !important;
}
 
.mw-body-content div.thumbinner .thumbimage {
.mw-body-content div.thumbinner .thumbimage,
.mw-body-content figure[typeof~='mw:File/Thumb'] > :not(figcaption) .mw-file-element,
.mw-body-content figure[typeof~='mw:File/Frame'] > :not(figcaption) .mw-file-element {
width: 100%;
object-fit: contain;