MediaWiki:Gadget-ResponsiveStyle.css: Difference between revisions
From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
/* Responsive CSS applied to both desktop and mobile */ | /* Responsive CSS applied to both desktop and mobile */ | ||
/* Mobile phone */ | |||
@media all and (max-width: 719px) { | |||
/* Responsive tables */ | |||
table.responsive > tbody > tr { | |||
display: block; | |||
margin-bottom: 0.5em; | |||
} | |||
table.responsive > tbody > td { | |||
display: block; | |||
text-align: right; | |||
} | |||
table.responsive > tbody > td::before { | |||
float: left; | |||
font-weight: bold; | |||
content: attr(label); | |||
margin-right: 1em; | |||
} | |||
table.responsive.sortable > thead, | |||
table.responsive:not(.sortable) > tbody > tr:first-child { | |||
display: none; | |||
} | |||
} | |||
/* Desktop/tablet */ | /* Desktop/tablet */ |
Revision as of 07:36, April 9, 2022
/* Responsive CSS applied to both desktop and mobile */
/* Mobile phone */
@media all and (max-width: 719px) {
/* Responsive tables */
table.responsive > tbody > tr {
display: block;
margin-bottom: 0.5em;
}
table.responsive > tbody > td {
display: block;
text-align: right;
}
table.responsive > tbody > td::before {
float: left;
font-weight: bold;
content: attr(label);
margin-right: 1em;
}
table.responsive.sortable > thead,
table.responsive:not(.sortable) > tbody > tr:first-child {
display: none;
}
}
/* Desktop/tablet */
@media all and (min-width: 720px) {
/* Notice templates */
.notice-template.image {
text-align: center;
}
}