MediaWiki:Gadget-OralHistoryRecords-Updated.css: Difference between revisions
Appearance
No edit summary |
No edit summary Tag: Reverted |
||
| Line 1: | Line 1: | ||
/* ===== Oral History Records (Compact CSS) ===== */ | /* ===== Oral History Records (Compact CSS) ===== */ | ||
/* --- Page Layout Adjustments --- */ | |||
/* These styles help integrate the list into a multi-column layout */ | |||
.ohr-container { | |||
max-width: 1200px; | |||
margin: 0 auto; | |||
padding: 0 1rem; | |||
} | |||
.ohr-layout-grid { | |||
display: flex; | |||
gap: 1.5rem; /* Reduced gap between list and sidebar */ | |||
align-items: flex-start; | |||
} | |||
.ohr-list-wrapper { | |||
flex: 1; | |||
min-width: 0; | |||
} | |||
/* --- Layout --- */ | /* --- Layout --- */ | ||
| Line 15: | Line 34: | ||
#ohr-search { | #ohr-search { | ||
flex: 1 1 | flex: 1 1 200px; | ||
padding: 0.4rem 0.6rem; | padding: 0.4rem 0.6rem; | ||
border: 1px solid #d1d5db; | border: 1px solid #d1d5db; | ||
| Line 23: | Line 42: | ||
} | } | ||
#ohr-search:focus-visible { | #ohr-search:focus-visible { | ||
outline: none; | outline: none; | ||
| Line 34: | Line 52: | ||
/* --- Record container --- */ | /* --- Record container --- */ | ||
.ohr-item { | .ohr-item { | ||
background: # | background: #f8fbff; /* Slightly lighter for better contrast with page bg */ | ||
border-radius: 0. | border-radius: 0.5rem; | ||
padding: 0. | padding: 0.6rem 0.9rem; /* Further reduced padding */ | ||
box-shadow: 0 1px | box-shadow: 0 1px 2px rgba(0,0,0,0.04); | ||
margin-bottom: 0. | margin-bottom: 0.4rem; /* Tight list spacing */ | ||
border: 1px solid | border: 1px solid rgba(224, 231, 255, 0.5); | ||
transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; | transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; | ||
} | } | ||
| Line 46: | Line 64: | ||
.ohr-item:hover { | .ohr-item:hover { | ||
transform: translateY(-1px); | transform: translateY(-1px); | ||
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0. | box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07); | ||
border-color: # | border-color: #cbd5e1; | ||
} | } | ||
| Line 59: | Line 77: | ||
.ohr-name { | .ohr-name { | ||
margin: 0; | margin: 0; | ||
font-size: | font-size: 1rem; /* Scaled down slightly more */ | ||
font-weight: | font-weight: 700; | ||
color: # | color: #111; | ||
line-height: 1.2; | line-height: 1.2; | ||
} | } | ||
| Line 67: | Line 85: | ||
/* Refined Metadata Colors */ | /* Refined Metadata Colors */ | ||
.ohr-meta { | .ohr-meta { | ||
margin-top: 0. | margin-top: 0.05rem; | ||
font-size: 0. | font-size: 0.82rem; | ||
color: # | color: #374151; | ||
} | } | ||
.ohr-meta span.ohr-label { | .ohr-meta span.ohr-label { | ||
color: #6b7280; | color: #6b7280; | ||
font-weight: 500; | font-weight: 500; | ||
} | } | ||
.ohr-meta .ohr-dot { margin: 0 0.3rem; color: # | .ohr-meta .ohr-dot { margin: 0 0.3rem; color: #d1d5db; } | ||
/* --- Bio / summary --- */ | /* --- Bio / summary --- */ | ||
.ohr-bio { | .ohr-bio { | ||
margin: 0. | margin: 0.35rem 0 0; | ||
font-size: 0. | font-size: 0.88rem; | ||
line-height: 1. | line-height: 1.35; | ||
color: # | color: #4b5563; | ||
} | } | ||
/* --- Links (Directory & Accordion) --- */ | /* --- Links (Directory & Accordion) --- */ | ||
.ohr-links { | .ohr-links { | ||
margin-top: 0. | margin-top: 0.5rem; | ||
display: flex; | display: flex; | ||
flex-wrap: wrap; | flex-wrap: wrap; | ||
gap: 0. | gap: 0.4rem; | ||
} | } | ||
| Line 101: | Line 119: | ||
align-items: center; | align-items: center; | ||
justify-content: center; | justify-content: center; | ||
padding: 0. | padding: 0.2rem 0.5rem; | ||
font-size: 0. | font-size: 0.78rem; | ||
font-weight: 600; | font-weight: 600; | ||
border-radius: 0. | border-radius: 0.4rem; | ||
text-decoration: none; | text-decoration: none; | ||
color: #1f2937; | color: #1f2937; | ||
background: # | background: #e5effa; | ||
border: 1px solid # | border: 1px solid #d1e2f6; | ||
} | } | ||
.ohr-link:hover { | .ohr-link:hover { | ||
background: # | background: #dce8f6; | ||
border-color: #b0c9e8; | border-color: #b0c9e8; | ||
} | } | ||
.ohr-link:focus-visible, .ohr-acc-btn:focus-visible { | .ohr-link:focus-visible, .ohr-acc-btn:focus-visible { | ||
outline: 2px solid #3b82f6; | outline: 2px solid #3b82f6; | ||
| Line 123: | Line 140: | ||
/* --- Session hierarchy --- */ | /* --- Session hierarchy --- */ | ||
.ohr-session { margin-top: 0. | .ohr-session { margin-top: 0.3rem; } | ||
.ohr-session__title { | .ohr-session__title { | ||
font-size: 0. | font-size: 0.9rem; | ||
font-weight: 700; | font-weight: 700; | ||
margin: 0 0 0. | margin: 0 0 0.15rem; | ||
color: #111827; | color: #111827; | ||
} | } | ||
.ohr-resource-label { | .ohr-resource-label { | ||
font-size: 0. | font-size: 0.68rem; | ||
font-weight: 700; | font-weight: 700; | ||
letter-spacing: 0. | letter-spacing: 0.02em; | ||
text-transform: uppercase; | text-transform: uppercase; | ||
color: # | color: #9ca3af; | ||
margin: 0. | margin: 0.1rem 0 0.2rem; | ||
} | } | ||
| Line 143: | Line 160: | ||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
gap: 0. | gap: 0.4rem; | ||
} | } | ||
| Line 151: | Line 168: | ||
flex: 0 0 auto; | flex: 0 0 auto; | ||
background: transparent; | background: transparent; | ||
border: 1px solid # | border: 1px solid #e5e7eb; | ||
border-radius: 0. | border-radius: 0.35rem; | ||
padding: 0. | padding: 0.2rem 0.45rem; | ||
font-size: 0. | font-size: 0.78rem; | ||
font-weight: 600; | font-weight: 600; | ||
color: #4b5563; | |||
cursor: pointer; | cursor: pointer; | ||
} | } | ||
.ohr-acc-btn:hover { | .ohr-acc-btn:hover { | ||
background: # | background: #f9fafb; | ||
border-color: # | border-color: #d1d5db; | ||
color: #111; | |||
} | } | ||
.ohr-acc-panel { | .ohr-acc-panel { | ||
margin-top: 0. | margin-top: 0.5rem; | ||
} | } | ||
.ohr-divider { | .ohr-divider { | ||
margin-top: 0. | margin-top: 0.5rem; | ||
border-top: 1px solid rgba(0,0,0,0. | border-top: 1px solid rgba(0,0,0,0.06); | ||
padding-top: 0. | padding-top: 0.5rem; | ||
} | } | ||
Revision as of 17:20, 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: 1200px;
margin: 0 auto;
padding: 0 1rem;
}
.ohr-layout-grid {
display: flex;
gap: 1.5rem; /* Reduced 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.75rem;
}
#ohr-search {
flex: 1 1 200px;
padding: 0.4rem 0.6rem;
border: 1px solid #d1d5db;
border-radius: 0.4rem;
font-size: 0.9rem;
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.85rem; color: #6b7280; }
/* --- Record container --- */
.ohr-item {
background: #f8fbff; /* Slightly lighter for better contrast with page bg */
border-radius: 0.5rem;
padding: 0.6rem 0.9rem; /* Further reduced padding */
box-shadow: 0 1px 2px rgba(0,0,0,0.04);
margin-bottom: 0.4rem; /* Tight list spacing */
border: 1px solid rgba(224, 231, 255, 0.5);
transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
/* Container Hover Depth */
.ohr-item:hover {
transform: translateY(-1px);
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07);
border-color: #cbd5e1;
}
/* --- Header row --- */
.ohr-head {
display: flex;
gap: 0.5rem;
align-items: center;
}
.ohr-titleblock { flex: 1 1 auto; min-width: 0; }
.ohr-name {
margin: 0;
font-size: 1rem; /* Scaled down slightly more */
font-weight: 700;
color: #111;
line-height: 1.2;
}
/* Refined Metadata Colors */
.ohr-meta {
margin-top: 0.05rem;
font-size: 0.82rem;
color: #374151;
}
.ohr-meta span.ohr-label {
color: #6b7280;
font-weight: 500;
}
.ohr-meta .ohr-dot { margin: 0 0.3rem; color: #d1d5db; }
/* --- Bio / summary --- */
.ohr-bio {
margin: 0.35rem 0 0;
font-size: 0.88rem;
line-height: 1.35;
color: #4b5563;
}
/* --- Links (Directory & Accordion) --- */
.ohr-links {
margin-top: 0.5rem;
display: flex;
flex-wrap: wrap;
gap: 0.4rem;
}
.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.2rem 0.5rem;
font-size: 0.78rem;
font-weight: 600;
border-radius: 0.4rem;
text-decoration: none;
color: #1f2937;
background: #e5effa;
border: 1px solid #d1e2f6;
}
.ohr-link:hover {
background: #dce8f6;
border-color: #b0c9e8;
}
.ohr-link:focus-visible, .ohr-acc-btn:focus-visible {
outline: 2px solid #3b82f6;
outline-offset: 2px;
}
/* --- Session hierarchy --- */
.ohr-session { margin-top: 0.3rem; }
.ohr-session__title {
font-size: 0.9rem;
font-weight: 700;
margin: 0 0 0.15rem;
color: #111827;
}
.ohr-resource-label {
font-size: 0.68rem;
font-weight: 700;
letter-spacing: 0.02em;
text-transform: uppercase;
color: #9ca3af;
margin: 0.1rem 0 0.2rem;
}
.ohr-links-stack {
display: flex;
flex-direction: column;
gap: 0.4rem;
}
/* --- Accordion view --- */
.ohr-acc-btn {
margin-left: auto;
flex: 0 0 auto;
background: transparent;
border: 1px solid #e5e7eb;
border-radius: 0.35rem;
padding: 0.2rem 0.45rem;
font-size: 0.78rem;
font-weight: 600;
color: #4b5563;
cursor: pointer;
}
.ohr-acc-btn:hover {
background: #f9fafb;
border-color: #d1d5db;
color: #111;
}
.ohr-acc-panel {
margin-top: 0.5rem;
}
.ohr-divider {
margin-top: 0.5rem;
border-top: 1px solid rgba(0,0,0,0.06);
padding-top: 0.5rem;
}
/* --- Error --- */
.ohr-error {
color: #b91c1c;
background: #fee2e2;
border-radius: 0.4rem;
padding: 0.75rem;
text-align: center;
}