Jump to content

MediaWiki:Gadget-OralHistoryRecords-Updated.css

Revision as of 17:11, 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) ===== */

/* --- 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; /* Reduced from 1rem */
}
#ohr-search {
  flex: 1 1 240px;
  padding: 0.4rem 0.6rem; /* Slimmer padding */
  border: 1px solid #d1d5db;
  border-radius: 0.4rem;
  font-size: 0.9rem;
}
#ohr-search:focus { outline: 2px solid #9ec5fe; outline-offset: 2px; }
.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; /* Reduced from 1rem 1.25rem */
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  margin-bottom: 0.6rem; /* Tighter list spacing */
}

/* --- Header row --- */
.ohr-head {
  display: flex;
  gap: 0.5rem;
  align-items: center; /* Centered instead of top-aligned for single-line names */
}
.ohr-titleblock { flex: 1 1 auto; min-width: 0; }
.ohr-name {
  margin: 0;
  font-size: 1.05rem; /* Slightly smaller */
  font-weight: 750;
  color: #000;
  line-height: 1.2;
}
.ohr-meta {
  margin-top: 0.1rem;
  font-size: 0.85rem; /* Smaller meta text */
  color: #111;
}
.ohr-meta .ohr-dot { margin: 0 0.3rem; color: #9ca3af; }

/* --- Bio / summary --- */
.ohr-bio {
  margin: 0.4rem 0 0; /* Reduced from 0.65rem */
  font-size: 0.9rem;
  line-height: 1.4;
  color: #374151;
}

/* --- Links (Directory & Accordion) --- */
.ohr-links {
  margin-top: 0.6rem; /* Reduced from 0.75rem */
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem; /* Tighter button grouping */
}

.ohr-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.6rem; /* Even more compact */
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 0.5rem; 
  text-decoration: none;
  color: #1f2937;
  background: #dce8f6;
  border: 1px solid #c8d9ef;
  transition: background 0.1s ease;
}
.ohr-link:hover {
  background: #cfdff3;
}

/* --- Session hierarchy (Inside Accordion) --- */
.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; /* Tiny labels */
  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: rgba(0,0,0,0.04); }

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