MediaWiki:Common.css

From davispedia
Revision as of 06:18, 29 September 2026 by Josh (talk | contribs)
Jump to navigation Jump to search

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
@media screen and (min-width: 701px) {
	.davispedia-feature-grid {
		grid-auto-rows: 1fr;
	}
}

.davispedia-feature-card {
	height: 100%;
}

/* Picture-of-the-day card layout */
.davispedia-feature-red {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.davispedia-potd-entry {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
	min-height: 0;
}

.davispedia-potd-credit {
	margin-bottom: 1rem;
}

.davispedia-potd-image {
	display: flex;
	align-items: center;
	justify-content: center;

	box-sizing: border-box;
	width: 100%;
	height: 260px;
	margin-top: auto;
	padding: 0;
	overflow: hidden;

	border-radius: 8px;
	background: rgba(255, 255, 255, 0.32);
}

.davispedia-potd-image p,
.davispedia-potd-image figure,
.davispedia-potd-image span,
.davispedia-potd-image a {
	display: flex;
	align-items: center;
	justify-content: center;

	box-sizing: border-box;
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	margin: 0;
	padding: 0;
}

.davispedia-feature-red .davispedia-potd-image img,
.davispedia-feature-red .davispedia-potd-image .mw-file-element {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	margin: 0;

	object-fit: contain;
	object-position: center;
	border-radius: 8px;
}

@media screen and (max-width: 700px) {
	.davispedia-feature-grid {
		grid-template-columns: 1fr;
		grid-auto-rows: auto;
	}

	.davispedia-potd-image {
		height: 220px;
	}
}