Module:Information/styles.css: Difference between revisions
From Neodyland Wiki
More actions
fix sibling order |
No edit summary |
||
| Line 25: | Line 25: | ||
/* Layout on mobile devices */ | /* Layout on mobile devices */ | ||
/* | |||
* For some other templates, the class is sometimes on table, | |||
* sometimes on the div.. sigh */ | |||
@media only screen and (max-width:719px) { | @media only screen and (max-width:719px) { | ||
.commons-file-information-table, | .commons-file-information-table, | ||
.commons-file-information-table > table { | .commons-file-information-table > table { | ||
border-spacing: 0; | border-spacing: 0; | ||
padding: 0; | padding: 0; | ||
word-break: break-word; | word-break: break-word; | ||
| Line 40: | Line 42: | ||
} | } | ||
.commons-file-information-table > * > tr > td, | .commons-file-information-table > table > * > tr > td, | ||
.commons-file-information-table > * > tr > th { | .commons-file-information-table > table > * > tr > th { | ||
padding: 0.2em 0.4em; | padding: 0.2em 0.4em; | ||
text-align: left; | text-align: left; | ||
| Line 47: | Line 49: | ||
} | } | ||
.commons-file-information-table > * > tr { | .commons-file-information-table > table > * > tr { | ||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
Revision as of 19:32, 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 */
/*
* For some other templates, the class is sometimes on table,
* sometimes on the div.. sigh */
@media only screen and (max-width:719px) {
.commons-file-information-table,
.commons-file-information-table > table {
border-spacing: 0;
padding: 0;
word-break: break-word;
width: 100% !important;
}
.commons-file-information-table > tbody,
.commons-file-information-table > table > tbody {
display: block;
}
.commons-file-information-table > table > * > tr > td,
.commons-file-information-table > table > * > tr > th {
padding: 0.2em 0.4em;
text-align: left;
text-align: start;
}
.commons-file-information-table > table > * > tr {
display: flex;
flex-direction: column;
}
.fileinfo-paramfield {
box-sizing: border-box;
flex: 1 0 100%;
width: 100%;
}
/* nice and consistent... when we stack with additional templates */
.commons-file-information-table + table.commons-file-information-table,
.commons-file-information-table + div.commons-file-information-table {
margin-top: 0;
}
}