MediaWiki:Common.css

From davispedia
Revision as of 04:26, 29 September 2026 by Josh (talk | contribs) (Created page with "→CSS placed here will be applied to all skins: .davispedia-feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1.5rem 0; } .davispedia-feature-card { box-sizing: border-box; min-height: 160px; padding: 1.4rem 1.5rem; border: 1px solid rgba(0, 0, 0, 0.12); border-radius: 12px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06); } .davispedia-feature-card h2 { margin: 0 0 0.65rem; padding: 0; border: 0; font-size: 1...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.
/* CSS placed here will be applied to all skins */
.davispedia-feature-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	margin: 1.5rem 0;
}

.davispedia-feature-card {
	box-sizing: border-box;
	min-height: 160px;
	padding: 1.4rem 1.5rem;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 12px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.davispedia-feature-card h2 {
	margin: 0 0 0.65rem;
	padding: 0;
	border: 0;
	font-size: 1.35rem;
}

.davispedia-feature-card h2 a {
	color: #202122;
	text-decoration: none;
}

.davispedia-feature-card h2 a:hover {
	text-decoration: underline;
}

.davispedia-feature-card p {
	margin: 0;
	color: #363636;
	line-height: 1.5;
}

/* Pastel card colors */
.davispedia-feature-red {
	background: #f8d7da;
}

.davispedia-feature-green {
	background: #d8eedc;
}

.davispedia-feature-yellow {
	background: #fff1bf;
}

.davispedia-feature-blue {
	background: #d7e9f7;
}

/* Stack the cards on phones */
@media screen and (max-width: 700px) {
	.davispedia-feature-grid {
		grid-template-columns: 1fr;
	}
}