MediaWiki:Gadget-OralHistoryRecords-Updated.css: Difference between revisions
Appearance
No edit summary Tags: Manual revert Reverted |
No edit summary Tag: Manual revert |
||
| Line 1: | Line 1: | ||
/* ===== Oral History Records (Compact CSS) ===== */ | /* ===== Oral History Records (Compact CSS) ===== */ | ||
/* --- Layout --- */ | /* --- Layout --- */ | ||
| Line 30: | Line 11: | ||
.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. | margin-bottom: 0.75rem; | ||
} | } | ||
#ohr-search { | #ohr-search { | ||
flex: 1 1 | flex: 1 1 240px; | ||
padding: 0. | padding: 0.4rem 0.6rem; | ||
border: 1px solid #d1d5db; | border: 1px solid #d1d5db; | ||
border-radius: 0. | border-radius: 0.4rem; | ||
font-size: 0. | font-size: 0.9rem; | ||
transition: border-color 0.2s ease, box-shadow 0.2s ease; | transition: border-color 0.2s ease, box-shadow 0.2s ease; | ||
} | } | ||
/* Enhanced Focus State */ | |||
#ohr-search:focus-visible { | #ohr-search:focus-visible { | ||
outline: none; | outline: none; | ||
| Line 48: | Line 30: | ||
} | } | ||
.ohr-count { margin-left: auto; font-size: 0. | .ohr-count { margin-left: auto; font-size: 0.85rem; color: #6b7280; } | ||
/* --- Record container --- */ | /* --- Record container --- */ | ||
.ohr-item { | .ohr-item { | ||
background: # | background: #f5faff; | ||
border-radius: 0. | border-radius: 0.6rem; | ||
padding: | padding: 0.75rem 1rem; | ||
box-shadow: 0 1px | box-shadow: 0 1px 3px rgba(0,0,0,0.05); | ||
margin-bottom: 0. | margin-bottom: 0.6rem; | ||
border: 1px solid | border: 1px solid transparent; | ||
transition: transform 0. | transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; | ||
} | } | ||
| Line 64: | Line 46: | ||
.ohr-item:hover { | .ohr-item:hover { | ||
transform: translateY(-1px); | transform: translateY(-1px); | ||
box-shadow: 0 | box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04); | ||
border-color: # | border-color: #e0e7ff; | ||
} | } | ||
| Line 71: | Line 53: | ||
.ohr-head { | .ohr-head { | ||
display: flex; | display: flex; | ||
gap: 0. | gap: 0.5rem; | ||
align-items: center; | align-items: center; | ||
} | } | ||
.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: | font-size: 1.05rem; | ||
font-weight: | font-weight: 750; | ||
color: # | color: #000; | ||
line-height: 1. | line-height: 1.2; | ||
} | } | ||
/* Refined Metadata Colors */ | /* Refined Metadata Colors */ | ||
.ohr-meta { | .ohr-meta { | ||
margin-top: 0. | margin-top: 0.1rem; | ||
font-size: 0. | font-size: 0.85rem; | ||
color: # | color: #111; /* Value color */ | ||
} | } | ||
.ohr-meta span.ohr-label { | .ohr-meta span.ohr-label { | ||
color: # | color: #6b7280; /* Softer label color */ | ||
font-weight: 500; | font-weight: 500; | ||
} | } | ||
.ohr-meta .ohr-dot { margin: 0 0. | .ohr-meta .ohr-dot { margin: 0 0.3rem; color: #9ca3af; } | ||
/* --- Bio / summary --- */ | /* --- Bio / summary --- */ | ||
.ohr-bio { | .ohr-bio { | ||
margin: 0. | margin: 0.4rem 0 0; | ||
font-size: 0. | font-size: 0.9rem; | ||
line-height: 1. | line-height: 1.4; | ||
color: # | color: #374151; | ||
} | } | ||
/* --- Links (Directory & Accordion) --- */ | /* --- Links (Directory & Accordion) --- */ | ||
.ohr-links { | .ohr-links { | ||
margin-top: 0. | margin-top: 0.6rem; | ||
display: flex; | display: flex; | ||
flex-wrap: wrap; | flex-wrap: wrap; | ||
gap: 0. | gap: 0.5rem; | ||
} | } | ||
| Line 124: | Line 101: | ||
align-items: center; | align-items: center; | ||
justify-content: center; | justify-content: center; | ||
padding: 0. | padding: 0.25rem 0.6rem; | ||
font-size: 0. | font-size: 0.8rem; | ||
font-weight: 600; | font-weight: 600; | ||
border-radius: 0. | border-radius: 0.5rem; | ||
text-decoration: none; | text-decoration: none; | ||
color: #1f2937; | color: #1f2937; | ||
background: # | background: #dce8f6; | ||
border: 1px solid # | border: 1px solid #c8d9ef; | ||
} | } | ||
.ohr-link:hover { | .ohr-link:hover { | ||
background: # | background: #cfdff3; | ||
border-color: # | border-color: #b0c9e8; | ||
} | } | ||
/* Focus states for buttons */ | |||
.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 145: | Line 123: | ||
/* --- Session hierarchy --- */ | /* --- Session hierarchy --- */ | ||
.ohr-session { margin-top: 0. | .ohr-session { margin-top: 0.35rem; } | ||
.ohr-session__title { | .ohr-session__title { | ||
font-size: 0. | font-size: 0.95rem; | ||
font-weight: 700; | font-weight: 700; | ||
margin: 0 0 0. | margin: 0 0 0.2rem; | ||
color: #111827; | color: #111827; | ||
} | } | ||
.ohr-resource-label { | .ohr-resource-label { | ||
font-size: 0. | font-size: 0.7rem; | ||
font-weight: 700; | font-weight: 700; | ||
letter-spacing: 0. | letter-spacing: 0.03em; | ||
text-transform: uppercase; | text-transform: uppercase; | ||
color: # | color: #6b7280; | ||
margin: 0. | margin: 0.15rem 0 0.25rem; | ||
} | } | ||
| Line 165: | Line 143: | ||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
gap: 0. | gap: 0.5rem; | ||
} | } | ||
| Line 173: | Line 151: | ||
flex: 0 0 auto; | flex: 0 0 auto; | ||
background: transparent; | background: transparent; | ||
border: 1px solid # | border: 1px solid #d1d5db; | ||
border-radius: 0. | border-radius: 0.4rem; | ||
padding: 0. | padding: 0.25rem 0.5rem; | ||
font-size: 0. | font-size: 0.82rem; | ||
font-weight: 600; | font-weight: 600; | ||
cursor: pointer; | cursor: pointer; | ||
} | } | ||
.ohr-acc-btn:hover { | .ohr-acc-btn:hover { | ||
background: # | background: #f3f4f6; | ||
border-color: # | border-color: #9ca3af; | ||
} | } | ||
.ohr-acc-panel { | .ohr-acc-panel { | ||
margin-top: 0. | margin-top: 0.6rem; | ||
} | } | ||
.ohr-divider { | .ohr-divider { | ||
margin-top: 0. | margin-top: 0.6rem; | ||
border-top: 1px solid rgba(0,0,0,0. | border-top: 1px solid rgba(0,0,0,0.08); | ||
padding-top: 0. | padding-top: 0.6rem; | ||
} | } | ||
| Line 201: | Line 177: | ||
color: #b91c1c; | color: #b91c1c; | ||
background: #fee2e2; | background: #fee2e2; | ||
border-radius: 0. | border-radius: 0.4rem; | ||
padding: 0. | padding: 0.75rem; | ||
text-align: center; | text-align: center; | ||
} | } | ||
Revision as of 17:34, 22 February 2026
/* ===== Oral History Records (Compact CSS) ===== */
/* --- 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 240px;
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;
}
/* Enhanced Focus State */
#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: #f5faff;
border-radius: 0.6rem;
padding: 0.75rem 1rem;
box-shadow: 0 1px 3px rgba(0,0,0,0.05);
margin-bottom: 0.6rem;
border: 1px solid transparent;
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.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
border-color: #e0e7ff;
}
/* --- 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: 1.05rem;
font-weight: 750;
color: #000;
line-height: 1.2;
}
/* Refined Metadata Colors */
.ohr-meta {
margin-top: 0.1rem;
font-size: 0.85rem;
color: #111; /* Value color */
}
.ohr-meta span.ohr-label {
color: #6b7280; /* Softer label color */
font-weight: 500;
}
.ohr-meta .ohr-dot { margin: 0 0.3rem; color: #9ca3af; }
/* --- Bio / summary --- */
.ohr-bio {
margin: 0.4rem 0 0;
font-size: 0.9rem;
line-height: 1.4;
color: #374151;
}
/* --- Links (Directory & Accordion) --- */
.ohr-links {
margin-top: 0.6rem;
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
}
.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.25rem 0.6rem;
font-size: 0.8rem;
font-weight: 600;
border-radius: 0.5rem;
text-decoration: none;
color: #1f2937;
background: #dce8f6;
border: 1px solid #c8d9ef;
}
.ohr-link:hover {
background: #cfdff3;
border-color: #b0c9e8;
}
/* Focus states for buttons */
.ohr-link:focus-visible, .ohr-acc-btn:focus-visible {
outline: 2px solid #3b82f6;
outline-offset: 2px;
}
/* --- Session hierarchy --- */
.ohr-session { margin-top: 0.35rem; }
.ohr-session__title {
font-size: 0.95rem;
font-weight: 700;
margin: 0 0 0.2rem;
color: #111827;
}
.ohr-resource-label {
font-size: 0.7rem;
font-weight: 700;
letter-spacing: 0.03em;
text-transform: uppercase;
color: #6b7280;
margin: 0.15rem 0 0.25rem;
}
.ohr-links-stack {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
/* --- Accordion view --- */
.ohr-acc-btn {
margin-left: auto;
flex: 0 0 auto;
background: transparent;
border: 1px solid #d1d5db;
border-radius: 0.4rem;
padding: 0.25rem 0.5rem;
font-size: 0.82rem;
font-weight: 600;
cursor: pointer;
}
.ohr-acc-btn:hover {
background: #f3f4f6;
border-color: #9ca3af;
}
.ohr-acc-panel {
margin-top: 0.6rem;
}
.ohr-divider {
margin-top: 0.6rem;
border-top: 1px solid rgba(0,0,0,0.08);
padding-top: 0.6rem;
}
/* --- Error --- */
.ohr-error {
color: #b91c1c;
background: #fee2e2;
border-radius: 0.4rem;
padding: 0.75rem;
text-align: center;
}