Module:Information/styles.css: Difference between revisions
From Neodyland Wiki
More actions
like mobile version |
add standard styling into this templatestyles as well |
||
| Line 1: | Line 1: | ||
.fileinfotpl-type-information { | |||
/* toccolours */ | |||
border: 1px solid #a2a9b1; | |||
background-color: #f8f9fa; | |||
padding: 5px; | |||
font-size: 95%; | |||
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 */ | /* Layout on mobile devices */ | ||
@media | @media | ||
Revision as of 19:23, 18 October 2021
.fileinfotpl-type-information {
/* toccolours */
border: 1px solid #a2a9b1;
background-color: #f8f9fa;
padding: 5px;
font-size: 95%;
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 and (max-width:719px) {
/* 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;
}
}