MediaWiki:Gadget-OralHistoryRecords-Updated.css: Difference between revisions
Appearance
No edit summary Tag: Reverted |
No edit summary Tag: Reverted |
||
| Line 1: | Line 1: | ||
/* ===== Oral History Records (Compact CSS) ===== */ | /* ===== Oral History Records (Compact CSS) ===== */ | ||
/* --- Page Layout --- */ | /* --- Page Layout Adjustments --- */ | ||
.ohr-container { | .ohr-container { | ||
max-width: 1100px; | max-width: 1100px; | ||
| Line 53: | Line 53: | ||
background: #fcfdfe; | background: #fcfdfe; | ||
border-radius: 0.3rem; | border-radius: 0.3rem; | ||
padding: 0.5rem 0. | /* Balanced padding: 0.5rem top for name, 0.5rem bottom for meta */ | ||
padding: 0.5rem 0.75rem; | |||
box-shadow: 0 1px 2px rgba(0,0,0,0.02); | box-shadow: 0 1px 2px rgba(0,0,0,0.02); | ||
margin-bottom: 0.2rem; | margin-bottom: 0.2rem; | ||
border: 1px solid #edf2f7; | border: 1px solid #edf2f7; | ||
transition: background 0.15s ease, border-color 0.15s ease; | transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease; | ||
} | } | ||
| Line 65: | Line 66: | ||
} | } | ||
/* Significantly clearer blue background for the open state */ | |||
.ohr-item.is-open { | .ohr-item.is-open { | ||
background: # | background: #e1effe; /* Deeper, more distinct light blue */ | ||
border-color: # | border-color: #b6d4fe; /* Defined border for the expanded card */ | ||
box-shadow: 0 | box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); | ||
} | } | ||
| Line 86: | Line 88: | ||
} | } | ||
/* Metadata Hierarchy */ | /* Refined Metadata Hierarchy */ | ||
.ohr-meta { | .ohr-meta { | ||
margin-top: 0.05rem; /* | margin-top: 0.05rem; | ||
margin-bottom: 0; /* Ensures the years sit precisely 0.5rem from the bottom edge */ | |||
font-size: 0.78rem; | font-size: 0.78rem; | ||
color: #4a5568; | color: #4a5568; | ||
} | } | ||
.ohr-meta span.ohr-label { | .ohr-meta span.ohr-label { | ||
color: #718096; | color: #718096; | ||
font-weight: 600; | font-weight: 600; | ||
font-size: 0.7rem; | font-size: 0.7rem; | ||
| Line 99: | Line 102: | ||
letter-spacing: 0.02em; | letter-spacing: 0.02em; | ||
} | } | ||
.ohr-meta .ohr-dot { margin: 0 0.25rem; color: # | .ohr-meta .ohr-dot { margin: 0 0.25rem; color: #d1d5db; } | ||
/* --- Bio / summary --- */ | /* --- Bio / summary --- */ | ||
.ohr-bio { | .ohr-bio { | ||
margin: 0.5rem 0 0.2rem; | margin: 0.5rem 0 0.2rem; | ||
font-size: 0.82rem; | font-size: 0.82rem; | ||
line-height: 1.35; | line-height: 1.35; | ||
| Line 149: | Line 152: | ||
margin-top: 0.2rem; | margin-top: 0.2rem; | ||
padding-left: 0.25rem; | padding-left: 0.25rem; | ||
border-left: 2px solid # | border-left: 2px solid #cbdcf0; /* Subtle blue line to match expanded state */ | ||
} | } | ||
.ohr-session__title { | .ohr-session__title { | ||
| Line 158: | Line 161: | ||
} | } | ||
/* WCAG Compliant Resource Labels - Darkened for high contrast */ | |||
.ohr-resource-label { | .ohr-resource-label { | ||
font-size: 0.65rem; | font-size: 0.65rem; | ||
| Line 163: | Line 167: | ||
letter-spacing: 0.03em; | letter-spacing: 0.03em; | ||
text-transform: uppercase; | text-transform: uppercase; | ||
color: # | color: #4a5568; | ||
margin: 0.15rem 0 0.2rem; | margin: 0.15rem 0 0.2rem; | ||
} | } | ||
| Line 178: | Line 182: | ||
flex: 0 0 auto; | flex: 0 0 auto; | ||
background: transparent; | background: transparent; | ||
border: 1px solid # | border: 1px solid #d1d5db; | ||
border-radius: 0.25rem; | border-radius: 0.25rem; | ||
padding: 0.15rem 0.4rem; | padding: 0.15rem 0.4rem; | ||
font-size: 0.72rem; | font-size: 0.72rem; | ||
font-weight: 600; | font-weight: 600; | ||
color: #4a5568; | color: #4a5568; | ||
cursor: pointer; | cursor: pointer; | ||
} | } | ||
| Line 198: | Line 202: | ||
.ohr-divider { | .ohr-divider { | ||
margin-top: 0.35rem; | margin-top: 0.35rem; | ||
border-top: 1px solid # | border-top: 1px solid #cbdcf0; /* Divider matches expanded border */ | ||
padding-top: 0.35rem; | padding-top: 0.35rem; | ||
} | } | ||
Revision as of 17:30, 22 February 2026
/* ===== Oral History Records (Compact CSS) ===== */
/* --- Page Layout Adjustments --- */
.ohr-container {
max-width: 1100px;
margin: 0 auto;
padding: 0 1rem;
}
.ohr-layout-grid {
display: flex;
gap: 1.25rem;
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;
}
#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.15);
}
.ohr-count { margin-left: auto; font-size: 0.82rem; color: #6b7280; }
/* --- Record container --- */
.ohr-item {
background: #fcfdfe;
border-radius: 0.3rem;
/* Balanced padding: 0.5rem top for name, 0.5rem bottom for meta */
padding: 0.5rem 0.75rem;
box-shadow: 0 1px 2px rgba(0,0,0,0.02);
margin-bottom: 0.2rem;
border: 1px solid #edf2f7;
transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.ohr-item:hover {
background: #f8fbff;
border-color: #cbd5e1;
}
/* Significantly clearer blue background for the open state */
.ohr-item.is-open {
background: #e1effe; /* Deeper, more distinct light blue */
border-color: #b6d4fe; /* Defined border for the expanded card */
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
/* --- Header row --- */
.ohr-head {
display: flex;
gap: 0.4rem;
align-items: center;
}
.ohr-titleblock { flex: 1 1 auto; min-width: 0; }
.ohr-name {
margin: 0;
font-size: 0.92rem;
font-weight: 700;
color: #1a202c;
line-height: 1.2;
}
/* Refined Metadata Hierarchy */
.ohr-meta {
margin-top: 0.05rem;
margin-bottom: 0; /* Ensures the years sit precisely 0.5rem from the bottom edge */
font-size: 0.78rem;
color: #4a5568;
}
.ohr-meta span.ohr-label {
color: #718096;
font-weight: 600;
font-size: 0.7rem;
text-transform: uppercase;
letter-spacing: 0.02em;
}
.ohr-meta .ohr-dot { margin: 0 0.25rem; color: #d1d5db; }
/* --- Bio / summary --- */
.ohr-bio {
margin: 0.5rem 0 0.2rem;
font-size: 0.82rem;
line-height: 1.35;
color: #4b5563;
}
/* --- Links (Directory & Accordion) --- */
.ohr-links {
margin-top: 0.35rem;
display: flex;
flex-wrap: wrap;
gap: 0.3rem;
}
.ohr-link, .ohr-acc-btn {
transition: all 0.15s ease;
}
.ohr-link {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0.15rem 0.4rem;
font-size: 0.72rem;
font-weight: 600;
border-radius: 0.25rem;
text-decoration: none;
color: #2d3748;
background: #edf2f7;
border: 1px solid #e2e8f0;
}
.ohr-link:hover {
background: #e2e8f0;
border-color: #cbd5e1;
}
.ohr-link:focus-visible, .ohr-acc-btn:focus-visible {
outline: 2px solid #3b82f6;
outline-offset: 2px;
}
/* --- Session hierarchy (Expanded State) --- */
.ohr-session {
margin-top: 0.2rem;
padding-left: 0.25rem;
border-left: 2px solid #cbdcf0; /* Subtle blue line to match expanded state */
}
.ohr-session__title {
font-size: 0.85rem;
font-weight: 700;
margin: 0 0 0.1rem;
color: #1a202c;
}
/* WCAG Compliant Resource Labels - Darkened for high contrast */
.ohr-resource-label {
font-size: 0.65rem;
font-weight: 700;
letter-spacing: 0.03em;
text-transform: uppercase;
color: #4a5568;
margin: 0.15rem 0 0.2rem;
}
.ohr-links-stack {
display: flex;
flex-direction: column;
gap: 0.3rem;
}
/* --- Accordion view --- */
.ohr-acc-btn {
margin-left: auto;
flex: 0 0 auto;
background: transparent;
border: 1px solid #d1d5db;
border-radius: 0.25rem;
padding: 0.15rem 0.4rem;
font-size: 0.72rem;
font-weight: 600;
color: #4a5568;
cursor: pointer;
}
.ohr-acc-btn:hover {
background: #f7fafc;
border-color: #cbd5e1;
color: #2d3748;
}
.ohr-acc-panel {
margin-top: 0.35rem;
}
.ohr-divider {
margin-top: 0.35rem;
border-top: 1px solid #cbdcf0; /* Divider matches expanded border */
padding-top: 0.35rem;
}
/* --- Error --- */
.ohr-error {
color: #c53030;
background: #fff5f5;
border-radius: 0.3rem;
padding: 0.5rem;
font-size: 0.8rem;
border: 1px solid #feb2b2;
text-align: center;
}