MediaWiki:Gadget-ResponsiveStyle.css: Difference between revisions
From Destinypedia, the Destiny wiki
No edit summary |
No edit summary |
||
Line 6: | Line 6: | ||
table.responsive > tbody > tr { | table.responsive > tbody > tr { | ||
display: block; | display: block; | ||
} | } | ||
table.responsive > tbody > tr > td { | table.responsive > tbody > tr > td { | ||
Line 17: | Line 16: | ||
content: attr(data-label); | content: attr(data-label); | ||
margin-right: 0.75em; | margin-right: 0.75em; | ||
} | |||
table.responsive > tbody > tr:not(:last-child) { | |||
margin-bottom: 0.5em; | |||
} | } | ||
table.responsive.jquery-tablesorter > thead, | table.responsive.jquery-tablesorter > thead, |
Revision as of 08:46, 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;
}
table.responsive > tbody > tr > td {
display: block;
text-align: right;
}
table.responsive > tbody > tr > td::before {
float: left;
font-weight: bold;
content: attr(data-label);
margin-right: 0.75em;
}
table.responsive > tbody > tr:not(:last-child) {
margin-bottom: 0.5em;
}
table.responsive.jquery-tablesorter > thead,
table.responsive:not(.jquery-tablesorter) > tbody > tr:first-child {
display: none;
}
/* User board */
.user-board-message {
width: auto !important;
}
.user-page-message-form textarea {
width: 100% !important;
}
/* PdfHandler */
.multipageimage > tbody > tr > td:nth-of-type(2) {
display: none !important;
}
}
/* Desktop/tablet */
@media all and (min-width: 720px) {
/* User profile */
#user-page-left > .profile-info-container > div {
width: 50%;
float: left;
}
}