Jump to content
Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:FacetBrowser/accession.css

Template page
/* ============================================ */
/* ACCESSION CARDS                              */
/* Template:FacetBrowser/accession.css          */
/* Loaded by All accessions; the accession      */
/* renderer in MediaWiki:FacetBrowser.js draws  */
/* the markup. The page's server-rendered table */
/* keeps Template:Browse/styles.css.            */
/* ============================================ */

.lw-accs {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px 12px;
	margin: 0.75rem 0 1rem;
}

.lw-acc {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 12px;
	min-width: 0;
	padding: 8px;
	border: 1px solid #e3e8df;
	border-radius: 6px;
	background: #ffffff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.lw-acc:hover {
	border-color: #b9c8ae;
	box-shadow: 0 2px 8px rgba(20, 40, 25, 0.08);
}

@media (prefers-reduced-motion: reduce) {
	.lw-acc {
		transition: none;
	}
}

/* Square photo, cropped */
.lw-acc__thumb {
	position: relative;
	flex: 0 0 76px;
	width: 76px;
	height: 76px;
	border-radius: 4px;
	overflow: hidden;
	background: #d4ddc6;
}

.lw-acc__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

/* No photo: the lettered placeholder of the Browse tiles */
.lw-acc__thumb--none {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(160deg, #eef4f0, #e2ebe5);
}

.lw-acc__initial {
	font-family: Georgia, serif;
	font-size: 1.6rem;
	font-weight: 700;
	line-height: 1;
	color: #7f9a8b;
}

.lw-acc__text {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
	flex: 1 1 auto;
}

.lw-acc__top {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 2px 10px;
	font-size: 0.72rem;
	line-height: 1.35;
	color: #6c757d;
}

.lw-acc__id {
	font-family: Menlo, Consolas, "Liberation Mono", monospace;
	font-size: 0.7rem;
	overflow-wrap: anywhere;
}

.lw-acc__year {
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.lw-acc__name {
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.lw-acc__name a,
.lw-acc__name a:visited {
	color: #2d5016;
	text-decoration: none;
}

.lw-acc__name a:hover {
	text-decoration: underline;
}

/* The name's link covers the whole card: one link, one tab stop */
.lw-acc__name a::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
}

.lw-acc__name a:focus {
	outline: none;
}

.lw-acc__name a:focus::after {
	outline: 2px solid #2d5016;
	outline-offset: -2px;
	border-radius: 6px;
}

.lw-acc__meta {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	font-size: 0.75rem;
	line-height: 1.35;
	color: #495057;
}

.lw-acc__where {
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Classification label; the facet chips' dots use the same colours */
.lw-acc__cls {
	flex: 0 0 auto;
	padding: 1px 7px;
	border-radius: 999px;
	font-size: 0.68rem;
	font-weight: 600;
	white-space: nowrap;
	background: #eef0f2;
	color: #495057;
}

.lw-acc__cls--landrace {
	background: #e3eed8;
	color: #2d5016;
}

.lw-acc__cls--landraceibl {
	background: #dcebe4;
	color: #24563f;
}

.lw-acc__cls--feral {
	background: #f3ead8;
	color: #6f5420;
}

.lw-acc__cls--hybrid {
	background: #e6e3f0;
	color: #4f4677;
}

/* .lwf-chip in front: Template:FacetBrowser/styles.css loads later on the page
   and its grey .lwf-chip__dot would otherwise win on equal weight */
.lwf-chip .lwf-chip__dot--landrace { background: #5b7a45; }
.lwf-chip .lwf-chip__dot--landraceibl { background: #3f7d62; }
.lwf-chip .lwf-chip__dot--feral { background: #b08a3e; }
.lwf-chip .lwf-chip__dot--hybrid { background: #7a6ca8; }

@media screen and (max-width: 720px) {
	.lw-accs {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media screen and (max-width: 400px) {
	.lw-acc__thumb {
		flex-basis: 64px;
		width: 64px;
		height: 64px;
	}
}