Template:UI/publications library/styles.css

From Miniscope
Jump to: navigation, search
/* TemplateStyles for {{UI/publications_library}} — curated
   Publications library page. Sections: header (heading + lead +
   stats) and filtered publications list (SRF format=filtered + the
   entry row partial). The SRF filter sidebar styles itself via its
   own resource module; we only style our wrapper plus the per-entry
   card.

   The earlier chip-strip styles (.publications-library-facets,
   .publications-library-facet*, .publications-library-chip) were
   removed when the chip strip was retired in favor of the filtered
   list — see the template noinclude for the rationale and how to
   bring them back if a no-JS fallback is needed.
*/

.publications-library {
	margin: 0 0 2em 0;
}

.publications-library-lead {
	font-size: 1.05rem;
	color: var(--labki-text-muted, #5a6a7a);
	margin: 0 0 1em 0;
	max-width: 60em;
}

.publications-library-stats {
	margin-bottom: 1.25em;
}

/* ---------- Filtered publications feed ---------- */

.publications-library-feed {
	margin-top: 1.5em;
}

.publications-library-entry {
	padding: 0.8em 0;
	border-bottom: 1px solid var(--labki-border, #d8dde2);
}

.publications-library-entry:last-child {
	border-bottom: none;
}

.publications-library-entry-title {
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.35;
	margin-bottom: 0.25em;
}

.publications-library-entry-type {
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--labki-text-muted, #5a6a7a);
	font-weight: 500;
	padding: 1px 6px;
	border: 1px solid var(--labki-border, #d8dde2);
	border-radius: 3px;
	margin-left: 0.4em;
	vertical-align: middle;
}

.publications-library-entry-byline {
	font-size: 0.9rem;
	color: var(--labki-text, #2c2c2c);
	margin-bottom: 0.2em;
}

.publications-library-entry-citation {
	font-size: 0.85rem;
	color: var(--labki-text-muted, #5a6a7a);
	margin-bottom: 0.3em;
}

.publications-library-entry-citation em {
	color: var(--labki-text, #2c2c2c);
}

.publications-library-entry-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4em;
	font-size: 0.8rem;
}

.publications-library-entry-doi {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	color: var(--labki-accent, #2774AE);
}

/* Chip rendered next to the DOI in .entry-meta. Named for the
   Has paper type property it surfaces (Article / Methods / Review /
   …) — distinct from the kicker .entry-type chip beside the title,
   which surfaces Has publication type. */
.publications-library-entry-paper-type {
	display: inline-block;
	padding: 1px 8px;
	border-radius: 999px;
	background: var(--labki-bg-subtle, #f4f6f8);
	border: 1px solid var(--labki-accent, #2774AE);
	color: var(--labki-accent, #2774AE);
	font-size: 0.75rem;
}

.publications-library-entry-paper-type a,
.publications-library-entry-paper-type a:visited {
	color: inherit;
	text-decoration: none;
}

.publications-library-empty {
	padding: 1em;
	color: var(--labki-text-muted, #5a6a7a);
	font-style: italic;
	text-align: center;
	background: var(--labki-bg-subtle, #f4f6f8);
	border-radius: 4px;
}