MediaWiki:Common.css: Difference between revisions
Abhishek.it (talk | contribs) No edit summary |
Hide the language icon on mobile too |
||
| (19 intermediate revisions by 3 users not shown) | |||
| Line 622: | Line 622: | ||
align-items: center; | align-items: center; | ||
flex-grow: 1; | flex-grow: 1; | ||
} | |||
@media (min-width: 992px) { | |||
.ab-col-md-for-5 { | |||
flex: 0 0 20%; | |||
max-width: 20%; | |||
} | |||
} | } | ||
.ab-row.ab-justify-content-between { | .ab-row.ab-justify-content-between { | ||
justify-content : space-between; | justify-content : space-between !important; | ||
} | |||
.ab-row.ab-justify-content-center { | |||
justify-content : center !important; | |||
} | |||
.ab-col-3.ab-portal-box,.ab-col-md-2.ab-portal-box { | |||
min-height:200px !important; | |||
margin-bottom:30px; | |||
} | |||
.ab-col-3.ab-portal-box pre,.ab-col-md-2.ab-portal-box pre{ | |||
background:transparent; | |||
border : 0px; | |||
} | |||
.ab-col-3.ab-portal-box pre,.ab-col-md-2.ab-portal-box pre{ | |||
display:flex; | |||
flex-direction:column; | |||
align-items:center; | |||
justify-content:space-between; | |||
text-align:center; | |||
height:100%; | |||
font-family : sans-serif; | |||
padding:0px; | |||
margin:0px; | |||
gap:20px; | |||
} | |||
.ab-col-3.ab-portal-box pre img,.ab-col-md-2.ab-portal-box pre img{ | |||
width : 100%; | |||
height:auto; | |||
max-width:135px; | |||
} | |||
.ab-col-3.ab-portal-box pre span,.ab-col-md-2.ab-portal-box pre span { | |||
display: flex; | |||
justify-content: center; | |||
align-items: center; | |||
flex-grow: 1; | |||
} | |||
/**/ | |||
.ab-col-md-for-5.ab-portal-box { | |||
min-height:200px !important; | |||
margin-bottom:30px; | |||
} | |||
.ab-col-md-for-5.ab-portal-box pre{ | |||
background:transparent; | |||
border : 0px; | |||
} | |||
.ab-col-md-for-5.ab-portal-box pre{ | |||
display:flex; | |||
flex-direction:column; | |||
align-items:center; | |||
justify-content:space-between; | |||
text-align:center; | |||
height:100%; | |||
font-family : sans-serif; | |||
padding:0px; | |||
margin:0px; | |||
gap:20px; | |||
} | |||
.ab-col-md-for-5.ab-portal-box pre img{ | |||
width : 100%; | |||
height:auto; | |||
max-width:135px; | |||
} | |||
.ab-col-md-for-5.ab-portal-box pre span { | |||
display: flex; | |||
justify-content: center; | |||
align-items: center; | |||
flex-grow: 1; | |||
} | |||
@media screen and (max-width:767px){ | |||
.ab-no-home .ab-col-md-for-5.ab-portal-box pre b{ | |||
display:flex; | |||
height:70px; | |||
font-size:12px; | |||
} | |||
.ab-no-home .ab-col-md-for-5.ab-portal-box pre img{ | |||
width : 80% !important; | |||
} | |||
.ab-no-home .ab-col-md-for-5.ab-portal-box pre{ | |||
align-items:end; | |||
} | |||
.ab-no-home .ab-col-md-for-5.ab-portal-box{ | |||
min-height:50px !important; | |||
margin-bottom:10px; | |||
padding:8px !important; | |||
} | |||
.ab-no-home .ab-col-md-for-5.ab-portal-box pre span{ | |||
align-items:center !important; | |||
} | |||
} | |||
/* Uniform size for all article images (thumb/frame) across the site — same outer width as the infobox (22em ≈ 271px) */ | |||
.mw-parser-output figure[typeof~="mw:File/Thumb"] > a > img, | |||
.mw-parser-output figure[typeof~="mw:File/Thumb"] > span > img, | |||
.mw-parser-output figure[typeof~="mw:File/Frame"] > a > img, | |||
.mw-parser-output figure[typeof~="mw:File/Frame"] > span > img { | |||
width: 263px !important; | |||
height: auto !important; | |||
max-width: 100%; | |||
} | |||
.mw-parser-output figure[typeof~="mw:File/Thumb"] > figcaption, | |||
.mw-parser-output figure[typeof~="mw:File/Frame"] > figcaption { | |||
max-width: 263px; | |||
} | |||
.mw-parser-output .infobox figure img { width: auto !important; } | |||
/* Hide "Switch to old look" in the main menu */ | |||
.vector-main-menu-action-opt-out { display: none !important; } | |||
/* Family trees: fit the page width; shrink, and scroll horizontally only when still too wide */ | |||
.familytree-wrap { max-width: 100%; overflow-x: auto; overflow-y: hidden; } | |||
.familytree { font-size: 78%; margin: 0 auto; } | |||
.familytree td { line-height: 1.25; } | |||
.familytree td > div[style*="width: 2em"] { width: 1.3em !important; } /* narrower spacer columns */ | |||
.familytree-navbox, .familytree-navbox table { table-layout: fixed; width: 100%; } | |||
.familytree-navbox table.familytree, .familytree-navbox table.familytree table { table-layout: auto; width: auto; } | |||
@media (max-width: 720px) { .familytree { font-size: 68%; } } | |||
/* Hide the old GNU FDL license icon in the footer */ | |||
#footer-copyrightico { display: none !important; } | |||
/* Sidebars (navigation side boxes): keep exactly 22em like the infobox and images — long titles wrap instead of widening the box */ | |||
.mw-parser-output .sidebar { | |||
table-layout: fixed; | |||
} | |||
.mw-parser-output .sidebar .sidebar-title a, | |||
.mw-parser-output .sidebar .sidebar-above a { | |||
white-space: normal; | |||
} | |||
/* Hide the language menu in the title bar: the "Read in Hebrew" button replaces it (see MediaWiki:ReadInHebrew.js) */ | |||
#p-lang-btn, | |||
#language-selector { | |||
display: none !important; | |||
} | } | ||