Jump to content

MediaWiki:Gadget-OralHistoryRecords-Updated.css

Revision as of 17:20, 22 February 2026 by Hthach (talk | contribs)

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: 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;
}