MediaWiki:Common.css
Jump to navigation
Jump to search
Note: After saving, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Go to Menu → Settings (Opera → Preferences on a Mac) and then to Privacy & security → Clear browsing data → Cached images and files.
/* CSS placed here will be applied to all skins */
/* hide comments and references h2 */
/* remove unnecessary br */
.cdependent, .fileupload-container br {
display: none;
}
/** CARDS */
@media screen and (min-width: 540px) and (max-width: 1024px) {
.card-columns {
columns: 2 !important;
}
.card-group > .card, .card-deck .card {
flex: 1 0 50% !important;
}
}
@media screen and (min-width: 1024px) {
.card-columns {
columns: 3 !important;
}
.card-group > .card, .card-deck .card {
flex: 1 0 30% !important;
}
}
/** FORM CREATE */
[name="createbox"] p,
.pfFormInputWrapper {
margin: 0 !important;
}
/** INFOBOX */
.infobox {
border: 1px solid #dfdfdf;
border-radius: 3px;
background-color: #f8f9fa;
clear: right;
color: black;
float: right;
font-size: .92em;
line-height: 1.4em;
margin: 0.5em 0 2em 1em;
max-width: 400px;
padding-bottom: 1em;
}
.infobox-image img {
height: auto;
width: 100% !important;
}
.infobox-image-caption {
color: darkcyan;
font-size: 0.97em;
padding: 0 1em;
text-align: center;
}
@media screen and ( max-width: 720px ) {
.infobox {
max-width: unset;
width: 100% !important;
}
}
.infobox-header {
background: #f0f0f0;
border: 1px solid #ddd;
font-weight: bold;
font-size: 1.2em;
margin: .2em;
margin-top: .75em;
text-align: center;
}
.infobox-header:first-of-type {
margin-top: .2em;
}
.infobox > div > div > div:first-of-type {
color: #444;
font-style: italic;
font-size: .9em;
line-height: 1.3em;
padding-top: 10px;
text-align: right;
width: 90px;
}
.infobox > div > div > div:last-of-type {
padding-left: 16px;
vertical-align: text-top;
}
/** TILES */
.tile-halves {
display:flex;
flex-flow:row wrap;
border: 1px solid rgba(0,0,0,.15);
background: #ffffff;
/* box-shadow: 0 0.25rem 0.35rem -0.25rem rgba(0,0,0,.5); */
}
.tile-top.tile-image {
display:flex;
align-items:center;
background-color:#949eaa;
overflow:hidden;
padding:0;
height:11vw;
max-height:11em;
border-top-left-radius: 3px;
border-top-right-radius: 3px;
}
.tile-top.tile-image a {
width:100%
}
.tile-top.tile-image img {
width:100%;
height:auto;
transition:0.4s ease-out
}
.mainpage-recent-updates .tile-halves {
flex:1;
align-content:flex-start;
}
.mainpage-recent-updates .tile-halves:hover .tile-top img,
.block-right .tile-halves:hover .tile-top img {
transform:scale(1.04)
}
.mainpage-recent-updates .tile-halves:last-child {
}
body.wgl-readermode .mainpage-recent-updates .tile-image {
max-height:10.5em
}
.mainpage-recent-updates .tile-bottom.link-button a {
text-align:left;
}
.mainpage-recent-updates h2 {
margin:-0.5em 0 0.3em
}
.mainpage-recent-updates p:not(.byline) {
/* font-size:0.9em; */
line-height:1.45em;
color:#444e5a
}
.mainpage-recent-updates .jagex-promotion .byline {
color:#855cd8
}
@media only screen and (max-width:767px) {
.mainpage-recent-updates .tile-row, .tile-row {
flex-flow: column wrap !important;
}
.mainpage-recent-updates .tile-halves {
margin-bottom: 1rem;
width: 100%;
}
.dataTables_wrapper .top {
flex-direction: column;
}
}