Jump to content
Toggle menu
  • 8 articles
  • 75 files
  • 7 users
  • 37.8K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:Information/styles.css: Difference between revisions

From Neodyland Wiki
mNo edit summary
More documentation
Line 2: Line 2:
  * Generally we have div.commons-file-information-table > table.fileinfotpl-type-information
  * Generally we have div.commons-file-information-table > table.fileinfotpl-type-information
  * But additional cells have table.commons-file-information-table
  * But additional cells have table.commons-file-information-table
* We currently only deal with tbody, as there are no known usages of thead/tfoot
  */
  */
table.commons-file-information-table,
table.commons-file-information-table,
Line 14: Line 15:
width: 100%;
width: 100%;
}
}
table.commons-file-information-table > tbody > tr,
table.commons-file-information-table > tbody > tr,
.fileinfotpl-type-information > tbody > tr {
.fileinfotpl-type-information > tbody > tr {
vertical-align: top;
vertical-align: top;
}
}
table.commons-file-information-table > tbody > tr > td,
table.commons-file-information-table > tbody > tr > td,
table.commons-file-information-table > tbody > tr > th,  
table.commons-file-information-table > tbody > tr > th,  
Line 24: Line 27:
padding: 4px;
padding: 4px;
}
}
/* This should be removed from MediaWiki:Filepage.css and MediaWiki:Common.css */
.fileinfo-paramfield {
.fileinfo-paramfield {
background: #ccf;
background: #ccf;
Line 30: Line 35:
width: 15%;
width: 15%;
font-weight: bold;
font-weight: bold;
}
/* stack with additional adjacent templates */
.commons-file-information-table + table.commons-file-information-table,
.commons-file-information-table + div.commons-file-information-table {
margin-top: -1px;
}
}


Line 66: Line 77:
flex: 1 0 100%;
flex: 1 0 100%;
width: 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: -1px;
}
}
}
}

Revision as of 19:48, 21 January 2023

/**
 * Generally we have div.commons-file-information-table > table.fileinfotpl-type-information
 * But additional cells have table.commons-file-information-table
 * We currently only deal with tbody, as there are no known usages of thead/tfoot
 */
table.commons-file-information-table,
.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%;
}

table.commons-file-information-table > tbody > tr,
.fileinfotpl-type-information > tbody > tr {
	vertical-align: top;
}

table.commons-file-information-table > tbody > tr > td,
table.commons-file-information-table > tbody > tr > th, 
.fileinfotpl-type-information > tbody > tr > td,
.fileinfotpl-type-information > tbody > tr > th {
	padding: 4px;
}

/* This should be removed from MediaWiki:Filepage.css and MediaWiki:Common.css */
.fileinfo-paramfield {
	background: #ccf;
	text-align: right;
	padding-right: 0.4em;
	width: 15%;
	font-weight: bold;
}

/* stack with additional adjacent templates */
.commons-file-information-table + table.commons-file-information-table,
.commons-file-information-table + div.commons-file-information-table {
	margin-top: -1px;
}

/* Layout on mobile devices */
@media only screen and (max-width:719px)  {
	table.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 > tbody > tr > td,
	.commons-file-information-table > tbody > tr > th,
	.commons-file-information-table > table > tbody > tr > td,
	.commons-file-information-table > table > tbody > tr > th {
		padding: 0.2em 0.4em;
		text-align: left;
		text-align: start;
	}

	.commons-file-information-table > tbody > tr,
	.commons-file-information-table > table > tbody > tr {
		display: flex;
		flex-direction: column;
	}

	.fileinfo-paramfield {
		box-sizing: border-box;
		flex: 1 0 100%;
		width: 100%;
	}
}
Cookies help us deliver our services. By using our services, you agree to our use of cookies.