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
m Reverted 12 edits by Neveselbert (mobile) (talk) (TwinkleGlobal)
new mobile styling
Line 25: Line 25:


/* Layout on mobile devices */
/* Layout on mobile devices */
@media  
@media only screen and (max-width:719px)  {
only screen and (max-width:719px)  {
.commons-file-information-table,
/* Force table to not be like tables anymore */
.commons-file-information-table > table {
.fileinfotpl-type-information,
border-spacing: 0;
.fileinfotpl-type-information table,
box-sizing: border-box;
.fileinfotpl-type-information tbody,
padding: 0;
.fileinfotpl-type-information th,
word-break: break-word;
.fileinfotpl-type-information td,
width: 100% !important;
.fileinfotpl-type-information tr {  
}
 
.commons-file-information-table > tbody,
.commons-file-information-table > table > tbody {
display: block;
display: block;
}
}
.fileinfotpl-type-information th,
 
.fileinfotpl-type-information td {
.commons-file-information-table td,
width: auto !important;
.commons-file-information-table th {
text-align: center;
padding: 0.2em 0.4em;
text-align: left;
text-align: start;
}
 
.commons-file-information-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;
}
}
}
}

Revision as of 19:15, 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 and (max-width:719px)  {
	.commons-file-information-table,
	.commons-file-information-table > table {
		border-spacing: 0;
		box-sizing: border-box;
		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 td,
	.commons-file-information-table th	{
		padding: 0.2em 0.4em;
		text-align: left;
		text-align: start;
	}

	.commons-file-information-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;
	}
}
Cookies help us deliver our services. By using our services, you agree to our use of cookies.