MediaWiki:Gadget-OralHistoryRecords-Updated.css: Difference between revisions
Appearance
No edit summary Tag: Reverted |
No edit summary Tags: Manual revert Reverted |
||
| Line 2: | Line 2: | ||
/* --- Page Layout Adjustments --- */ | /* --- Page Layout Adjustments --- */ | ||
/* These styles help integrate the list into a multi-column layout */ | |||
.ohr-container { | .ohr-container { | ||
max-width: 1100px; | max-width: 1100px; /* Narrower container for better readability */ | ||
margin: 0 auto; | margin: 0 auto; | ||
padding: 0 1rem; | padding: 0 1rem; | ||
| Line 10: | Line 11: | ||
.ohr-layout-grid { | .ohr-layout-grid { | ||
display: flex; | display: flex; | ||
gap: 1.25rem; | gap: 1.25rem; /* Tighter gap between list and sidebar */ | ||
align-items: flex-start; | align-items: flex-start; | ||
} | } | ||
| Line 29: | Line 30: | ||
.ohr-toolbar { | .ohr-toolbar { | ||
display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; | display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; | ||
margin-bottom: 0.5rem; | margin-bottom: 0.5rem; /* Reduced from 0.75rem */ | ||
} | } | ||
| Line 44: | Line 45: | ||
outline: none; | outline: none; | ||
border-color: #3b82f6; | border-color: #3b82f6; | ||
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0. | box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2); | ||
} | } | ||
| Line 51: | Line 52: | ||
/* --- Record container --- */ | /* --- Record container --- */ | ||
.ohr-item { | .ohr-item { | ||
background: # | background: #f8fbff; | ||
border-radius: 0. | border-radius: 0.4rem; /* Sharper corners for a cleaner look */ | ||
padding: 0.4rem 0.75rem; /* Significantly reduced vertical padding */ | |||
padding: 0. | box-shadow: 0 1px 2px rgba(0,0,0,0.03); | ||
box-shadow: 0 1px 2px rgba(0,0,0,0. | margin-bottom: 0.3rem; /* Tighter vertical rhythm in the list */ | ||
margin-bottom: 0. | border: 1px solid rgba(224, 231, 255, 0.4); | ||
border: 1px solid | transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease; | ||
transition: | |||
} | } | ||
/* Container Hover Depth */ | |||
.ohr-item:hover { | .ohr-item:hover { | ||
transform: translateY(-1px); | |||
box-shadow: 0 3px 5px -1px rgba(0, 0, 0, 0.06); | |||
border-color: #cbd5e1; | border-color: #cbd5e1; | ||
} | } | ||
| Line 77: | Line 72: | ||
display: flex; | display: flex; | ||
gap: 0.4rem; | gap: 0.4rem; | ||
align-items: center; | align-items: center; /* Keep everything vertically centered for unexpanded state */ | ||
} | } | ||
.ohr-titleblock { flex: 1 1 auto; min-width: 0; } | .ohr-titleblock { flex: 1 1 auto; min-width: 0; } | ||
.ohr-name { | .ohr-name { | ||
margin: 0; | margin: 0; | ||
font-size: 0. | font-size: 0.95rem; /* Slightly smaller for density */ | ||
font-weight: 700; | font-weight: 700; | ||
color: # | color: #111; | ||
line-height: 1; | line-height: 1.1; | ||
} | } | ||
/* Refined Metadata | /* Refined Metadata Colors */ | ||
.ohr-meta { | .ohr-meta { | ||
margin: 0. | margin-top: 0.05rem; | ||
font-size: 0. | font-size: 0.8rem; | ||
color: # | color: #374151; | ||
} | } | ||
.ohr-meta span.ohr-label { | .ohr-meta span.ohr-label { | ||
color: # | color: #94a3b8; /* Lighter label color for better hierarchy */ | ||
font-weight: | font-weight: 500; | ||
font-size: 0. | font-size: 0.75rem; | ||
text-transform: uppercase; | text-transform: uppercase; | ||
letter-spacing: 0. | letter-spacing: 0.01em; | ||
} | } | ||
.ohr-meta .ohr-dot { margin: 0 0.25rem; color: # | .ohr-meta .ohr-dot { margin: 0 0.25rem; color: #e2e8f0; } | ||
/* --- Bio / summary --- */ | /* --- Bio / summary --- */ | ||
.ohr-bio { | .ohr-bio { | ||
margin: 0. | margin: 0.25rem 0 0; /* Reduced margin */ | ||
font-size: 0. | font-size: 0.85rem; | ||
line-height: 1. | line-height: 1.3; | ||
color: #4b5563; | 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) --- */ | /* --- Links (Directory & Accordion) --- */ | ||
.ohr-links { | .ohr-links { | ||
margin-top: 0. | margin-top: 0.4rem; | ||
display: flex; | display: flex; | ||
flex-wrap: wrap; | flex-wrap: wrap; | ||
gap: 0. | gap: 0.35rem; | ||
} | } | ||
.ohr-link, .ohr-acc-btn { | .ohr-link, .ohr-acc-btn { | ||
transition: | transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease; | ||
} | } | ||
| Line 128: | Line 124: | ||
align-items: center; | align-items: center; | ||
justify-content: center; | justify-content: center; | ||
padding: 0.15rem 0. | padding: 0.15rem 0.45rem; | ||
font-size: 0. | font-size: 0.75rem; | ||
font-weight: 600; | font-weight: 600; | ||
border-radius: 0. | border-radius: 0.3rem; | ||
text-decoration: none; | text-decoration: none; | ||
color: # | color: #1f2937; | ||
background: # | background: #eef4fb; /* Softer background */ | ||
border: 1px solid # | border: 1px solid #d9e6f5; | ||
} | } | ||
.ohr-link:hover { | .ohr-link:hover { | ||
background: # | background: #e1ecf8; | ||
border-color: # | border-color: #c4d8f0; | ||
} | } | ||
.ohr-link:focus-visible, .ohr-acc-btn:focus-visible { | |||
.ohr- | outline: 2px solid #3b82f6; | ||
outline-offset: 2px; | |||
} | } | ||
/* --- Session hierarchy --- */ | |||
.ohr-session { margin-top: 0.25rem; } | |||
.ohr-session__title { | .ohr-session__title { | ||
font-size: 0. | font-size: 0.88rem; | ||
font-weight: 700; | font-weight: 700; | ||
margin: 0 0 0.1rem; | margin: 0 0 0.1rem; | ||
color: # | color: #111827; | ||
} | } | ||
.ohr-resource-label { | .ohr-resource-label { | ||
font-size: 0.65rem; | font-size: 0.65rem; | ||
font-weight: | font-weight: 700; | ||
letter-spacing: 0. | letter-spacing: 0.02em; | ||
text-transform: uppercase; | text-transform: uppercase; | ||
color: # | color: #a1a1aa; | ||
margin: 0. | margin: 0.1rem 0 0.15rem; | ||
} | } | ||
| Line 169: | Line 165: | ||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
gap: 0. | gap: 0.35rem; | ||
} | } | ||
| Line 176: | Line 172: | ||
margin-left: auto; | margin-left: auto; | ||
flex: 0 0 auto; | flex: 0 0 auto; | ||
background: | background: transparent; | ||
border: 1px solid # | border: 1px solid #e5e7eb; | ||
border-radius: 0. | border-radius: 0.3rem; | ||
padding: 0.15rem 0.4rem; | padding: 0.15rem 0.4rem; | ||
font-size: 0. | font-size: 0.75rem; | ||
font-weight: 600; | font-weight: 600; | ||
color: # | color: #6b7280; | ||
cursor: pointer; | cursor: pointer; | ||
} | } | ||
.ohr-acc-btn:hover { | .ohr-acc-btn:hover { | ||
background: # | background: #f9fafb; | ||
border-color: # | border-color: #d1d5db; | ||
color: #374151; | |||
} | } | ||
.ohr-acc-panel { | .ohr-acc-panel { | ||
margin-top: 0. | margin-top: 0.4rem; | ||
} | } | ||
.ohr-divider { | .ohr-divider { | ||
margin-top: 0.4rem; | margin-top: 0.4rem; | ||
border-top: 1px solid | border-top: 1px solid rgba(0,0,0,0.05); | ||
padding-top: 0.4rem; | padding-top: 0.4rem; | ||
} | } | ||
| Line 202: | Line 199: | ||
/* --- Error --- */ | /* --- Error --- */ | ||
.ohr-error { | .ohr-error { | ||
color: # | color: #b91c1c; | ||
background: # | background: #fee2e2; | ||
border-radius: 0.3rem; | border-radius: 0.3rem; | ||
padding: 0. | padding: 0.6rem; | ||
font-size: 0. | font-size: 0.85rem; | ||
text-align: center; | text-align: center; | ||
} | } | ||
Revision as of 17:33, 22 February 2026
/* ===== 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;
}