MediaWiki:Gadget-OralHistoryRecords-Updated.css
Appearance
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.
/* ===== Oral History Records (Compact CSS) ===== */
/* --- Page Layout Adjustments --- */
/* These styles help integrate the list into a multi-column layout */
.ohr-container {
max-width: 1100px; /* Narrower container for better readability */
margin: 0 auto;
padding: 0 1rem;
}
.ohr-layout-grid {
display: flex;
gap: 1.25rem; /* Tighter gap between list and sidebar */
align-items: flex-start;
}
.ohr-list-wrapper {
flex: 1;
min-width: 0;
}
/* --- Layout --- */
.ohr-list { display: block; }
/* --- Utilities --- */
.ohr-hidden { display: none; }
.ohr-muted { color: #6b7280; }
/* --- Toolbar --- */
.ohr-toolbar {
display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center;
margin-bottom: 0.5rem; /* Reduced from 0.75rem */
}
#ohr-search {
flex: 1 1 200px;
padding: 0.35rem 0.6rem;
border: 1px solid #d1d5db;
border-radius: 0.3rem;
font-size: 0.88rem;
transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
#ohr-search:focus-visible {
outline: none;
border-color: #3b82f6;
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}
.ohr-count { margin-left: auto; font-size: 0.82rem; color: #6b7280; }
/* --- Record container --- */
.ohr-item {
background: #f8fbff;
border-radius: 0.4rem; /* Sharper corners for a cleaner look */
padding: 0.4rem 0.75rem; /* Significantly reduced vertical padding */
box-shadow: 0 1px 2px rgba(0,0,0,0.03);
margin-bottom: 0.3rem; /* Tighter vertical rhythm in the list */
border: 1px solid rgba(224, 231, 255, 0.4);
transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
/* Container Hover Depth */
.ohr-item:hover {
transform: translateY(-1px);
box-shadow: 0 3px 5px -1px rgba(0, 0, 0, 0.06);
border-color: #cbd5e1;
}
/* --- Header row --- */
.ohr-head {
display: flex;
gap: 0.4rem;
align-items: center; /* Keep everything vertically centered for unexpanded state */
}
.ohr-titleblock { flex: 1 1 auto; min-width: 0; }
.ohr-name {
margin: 0;
font-size: 0.95rem; /* Slightly smaller for density */
font-weight: 700;
color: #111;
line-height: 1.1;
}
/* Refined Metadata Colors */
.ohr-meta {
margin-top: 0.05rem;
font-size: 0.8rem;
color: #374151;
}
.ohr-meta span.ohr-label {
color: #94a3b8; /* Lighter label color for better hierarchy */
font-weight: 500;
font-size: 0.75rem;
text-transform: uppercase;
letter-spacing: 0.01em;
}
.ohr-meta .ohr-dot { margin: 0 0.25rem; color: #e2e8f0; }
/* --- Bio / summary --- */
.ohr-bio {
margin: 0.25rem 0 0; /* Reduced margin */
font-size: 0.85rem;
line-height: 1.3;
color: #4b5563;
/* Option: uncomment below to limit bio length in list view */
/* display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; */
}
/* --- Links (Directory & Accordion) --- */
.ohr-links {
margin-top: 0.4rem;
display: flex;
flex-wrap: wrap;
gap: 0.35rem;
}
.ohr-link, .ohr-acc-btn {
transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.ohr-link {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0.15rem 0.45rem;
font-size: 0.75rem;
font-weight: 600;
border-radius: 0.3rem;
text-decoration: none;
color: #1f2937;
background: #eef4fb; /* Softer background */
border: 1px solid #d9e6f5;
}
.ohr-link:hover {
background: #e1ecf8;
border-color: #c4d8f0;
}
.ohr-link:focus-visible, .ohr-acc-btn:focus-visible {
outline: 2px solid #3b82f6;
outline-offset: 2px;
}
/* --- Session hierarchy --- */
.ohr-session { margin-top: 0.25rem; }
.ohr-session__title {
font-size: 0.88rem;
font-weight: 700;
margin: 0 0 0.1rem;
color: #111827;
}
.ohr-resource-label {
font-size: 0.65rem;
font-weight: 700;
letter-spacing: 0.02em;
text-transform: uppercase;
color: #a1a1aa;
margin: 0.1rem 0 0.15rem;
}
.ohr-links-stack {
display: flex;
flex-direction: column;
gap: 0.35rem;
}
/* --- Accordion view --- */
.ohr-acc-btn {
margin-left: auto;
flex: 0 0 auto;
background: transparent;
border: 1px solid #e5e7eb;
border-radius: 0.3rem;
padding: 0.15rem 0.4rem;
font-size: 0.75rem;
font-weight: 600;
color: #6b7280;
cursor: pointer;
}
.ohr-acc-btn:hover {
background: #f9fafb;
border-color: #d1d5db;
color: #374151;
}
.ohr-acc-panel {
margin-top: 0.4rem;
}
.ohr-divider {
margin-top: 0.4rem;
border-top: 1px solid rgba(0,0,0,0.05);
padding-top: 0.4rem;
}
/* --- Error --- */
.ohr-error {
color: #b91c1c;
background: #fee2e2;
border-radius: 0.3rem;
padding: 0.6rem;
font-size: 0.85rem;
text-align: center;
}