Module:Information/styles.css: Difference between revisions
From Neodyland Wiki
More actions
m Undo revision 726598101 by Neveselbert (mobile) (talk) - not cause |
Undo revision 726598215 by Neveselbert (mobile) (talk) - same as w:mediawiki:Vector-2022.css |
||
| Line 26: | Line 26: | ||
/* Layout on mobile devices */ | /* Layout on mobile devices */ | ||
@media | @media | ||
only screen | only screen { | ||
/* Force table to not be like tables anymore */ | /* Force table to not be like tables anymore */ | ||
.fileinfotpl-type-information, | .fileinfotpl-type-information, | ||
Revision as of 04:37, 21 January 2023
.fileinfotpl-type-information {
/* toccolours */
border: 1px solid #a2a9b1;
background-color: #f8f9fa;
padding: 5px;
font-size: 95%;
/* end of toccolours */
box-sizing: border-box;
width: 100%;
}
.fileinfotpl-type-information > * > tr {
vertical-align: top;
}
.fileinfotpl-type-information > * > tr > td,
.fileinfotpl-type-information > * > tr > th {
padding: 4px;
}
.fileinfo-paramfield {
background: #ccf;
text-align: right;
padding-right: 0.4em;
width: 15%;
font-weight: bold;
}
/* Layout on mobile devices */
@media
only screen {
/* Force table to not be like tables anymore */
.fileinfotpl-type-information,
.fileinfotpl-type-information table,
.fileinfotpl-type-information tbody,
.fileinfotpl-type-information th,
.fileinfotpl-type-information td,
.fileinfotpl-type-information tr {
display: block;
}
.fileinfotpl-type-information th,
.fileinfotpl-type-information td {
width: auto !important;
text-align: center;
}
}