Jump to content

MediaWiki:Gadget-OralHistoryRecords-Updated.css: Difference between revisions

No edit summary
Tag: Manual revert
No edit summary
Line 1: Line 1:
/* ===== Oral History Records (Compact CSS) ===== */
/* ===== Oral History Records (Compact CSS) ===== */
/* --- Page Layout Adjustments --- */
.ohr-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}
.ohr-layout-grid {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.ohr-list-wrapper {
  flex: 1;
  min-width: 0;
}


/* --- Layout --- */
/* --- Layout --- */
Line 11: Line 29:
.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.75rem;
   margin-bottom: 0.5rem;
}
}


#ohr-search {
#ohr-search {
   flex: 1 1 240px;
   flex: 1 1 200px;
   padding: 0.4rem 0.6rem;
   padding: 0.35rem 0.6rem;
   border: 1px solid #d1d5db;
   border: 1px solid #d1d5db;
   border-radius: 0.4rem;
   border-radius: 0.3rem;
   font-size: 0.9rem;
   font-size: 0.88rem;
   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;
   border-color: #3b82f6;
   border-color: #3b82f6;
   box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
   box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
}


.ohr-count { margin-left: auto; font-size: 0.85rem; color: #6b7280; }
.ohr-count { margin-left: auto; font-size: 0.82rem; color: #6b7280; }


/* --- Record container --- */
/* --- Record container --- */
.ohr-item {
.ohr-item {
   background: #f5faff;
   background: #fcfdfe;
   border-radius: 0.6rem;
   border-radius: 0.3rem;
   padding: 0.75rem 1rem;
   padding: 0.5rem 0.75rem; /* Balanced padding (0.5rem top/bottom) */
   box-shadow: 0 1px 3px rgba(0,0,0,0.05);
   box-shadow: 0 1px 2px rgba(0,0,0,0.02);
   margin-bottom: 0.6rem;
   margin-bottom: 0.2rem;
   border: 1px solid transparent;
   border: 1px solid #edf2f7;
   transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
   transition: background 0.15s ease, border-color 0.15s ease;
}
}


/* Container Hover Depth */
.ohr-item:hover {
.ohr-item:hover {
   transform: translateY(-1px);
   background: #f8fbff;
   box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  border-color: #cbd5e1;
  border-color: #e0e7ff;
}
 
/* Darker blue background for the open state */
.ohr-item.is-open {
  background: #eef6ff;
  border-color: #cbdcf0;
   box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}
}


Line 53: Line 75:
.ohr-head {
.ohr-head {
   display: flex;
   display: flex;
   gap: 0.5rem;
   gap: 0.4rem;
   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: 1.05rem;
   font-size: 0.92rem;  
   font-weight: 750;
   font-weight: 700;
   color: #000;
   color: #1a202c;
   line-height: 1.2;
   line-height: 1.2;
}
}


/* Refined Metadata Colors */
/* Refined Metadata Hierarchy */
.ohr-meta {
.ohr-meta {
   margin-top: 0.1rem;
   margin-top: 0.05rem; /* Slight gap for breathing room */
   font-size: 0.85rem;
   font-size: 0.78rem;
   color: #111; /* Value color */
   color: #4a5568;
}
}
.ohr-meta span.ohr-label {
.ohr-meta span.ohr-label {
   color: #6b7280; /* Softer label color */
   color: #718096; /* Darkened slightly for better visibility */
   font-weight: 500;
   font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
}
.ohr-meta .ohr-dot { margin: 0 0.3rem; color: #9ca3af; }
.ohr-meta .ohr-dot { margin: 0 0.25rem; color: #e2e8f0; }


/* --- Bio / summary --- */
/* --- Bio / summary --- */
.ohr-bio {
.ohr-bio {
   margin: 0.4rem 0 0;
   margin: 0.5rem 0 0.2rem; /* Balanced top margin to match item top padding */
   font-size: 0.9rem;
   font-size: 0.82rem;
   line-height: 1.4;
   line-height: 1.35;
   color: #374151;
   color: #4b5563;
}
}


/* --- Links (Directory & Accordion) --- */
/* --- Links (Directory & Accordion) --- */
.ohr-links {
.ohr-links {
   margin-top: 0.6rem;
   margin-top: 0.35rem;
   display: flex;
   display: flex;
   flex-wrap: wrap;
   flex-wrap: wrap;
   gap: 0.5rem;
   gap: 0.3rem;
}
}


.ohr-link, .ohr-acc-btn {
.ohr-link, .ohr-acc-btn {
   transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
   transition: all 0.15s ease;
}
}


Line 101: Line 126:
   align-items: center;
   align-items: center;
   justify-content: center;
   justify-content: center;
   padding: 0.25rem 0.6rem;
   padding: 0.15rem 0.4rem;
   font-size: 0.8rem;
   font-size: 0.72rem;
   font-weight: 600;
   font-weight: 600;
   border-radius: 0.5rem;  
   border-radius: 0.25rem;  
   text-decoration: none;
   text-decoration: none;
   color: #1f2937;
   color: #2d3748;
   background: #dce8f6;
   background: #edf2f7;
   border: 1px solid #c8d9ef;
   border: 1px solid #e2e8f0;
}
}


.ohr-link:hover {
.ohr-link:hover {
   background: #cfdff3;
   background: #e2e8f0;
   border-color: #b0c9e8;
   border-color: #cbd5e1;
}
}


/* 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 122: Line 146:
}
}


/* --- Session hierarchy --- */
/* --- Session hierarchy (Expanded State) --- */
.ohr-session { margin-top: 0.35rem; }
.ohr-session {  
  margin-top: 0.2rem;
  padding-left: 0.25rem;
  border-left: 2px solid #edf2f7;
}
.ohr-session__title {
.ohr-session__title {
   font-size: 0.95rem;
   font-size: 0.85rem;
   font-weight: 700;
   font-weight: 700;
   margin: 0 0 0.2rem;
   margin: 0 0 0.1rem;
   color: #111827;
   color: #1a202c;
}
}


/* WCAG Compliant Resource Labels */
.ohr-resource-label {
.ohr-resource-label {
   font-size: 0.7rem;
   font-size: 0.65rem;
   font-weight: 700;
   font-weight: 700;
   letter-spacing: 0.03em;
   letter-spacing: 0.03em;
   text-transform: uppercase;
   text-transform: uppercase;
   color: #6b7280;
   color: #57606a; /* Darkened to meet WCAG contrast ratios */
   margin: 0.15rem 0 0.25rem;
   margin: 0.15rem 0 0.2rem;
}
}


Line 143: Line 172:
   display: flex;
   display: flex;
   flex-direction: column;
   flex-direction: column;
   gap: 0.5rem;
   gap: 0.3rem;
}
}


Line 151: Line 180:
   flex: 0 0 auto;
   flex: 0 0 auto;
   background: transparent;
   background: transparent;
   border: 1px solid #d1d5db;
   border: 1px solid #e2e8f0;
   border-radius: 0.4rem;
   border-radius: 0.25rem;
   padding: 0.25rem 0.5rem;
   padding: 0.15rem 0.4rem;
   font-size: 0.82rem;
   font-size: 0.72rem;
   font-weight: 600;
   font-weight: 600;
  color: #4a5568; /* Darkened for better contrast */
   cursor: pointer;
   cursor: pointer;
}
}
.ohr-acc-btn:hover {  
.ohr-acc-btn:hover {  
   background: #f3f4f6;
   background: #f7fafc;
   border-color: #9ca3af;
   border-color: #cbd5e1;
  color: #2d3748;
}
}


.ohr-acc-panel {  
.ohr-acc-panel {  
   margin-top: 0.6rem;  
   margin-top: 0.35rem;  
}
}


.ohr-divider {
.ohr-divider {
   margin-top: 0.6rem;
   margin-top: 0.35rem;
   border-top: 1px solid rgba(0,0,0,0.08);
   border-top: 1px solid #edf2f7;
   padding-top: 0.6rem;
   padding-top: 0.35rem;
}
}


/* --- Error --- */
/* --- Error --- */
.ohr-error {
.ohr-error {
   color: #b91c1c;
   color: #c53030;
   background: #fee2e2;
   background: #fff5f5;
   border-radius: 0.4rem;
   border-radius: 0.3rem;
   padding: 0.75rem;
   padding: 0.5rem;
  font-size: 0.8rem;
  border: 1px solid #feb2b2;
   text-align: center;
   text-align: center;
}
}

Revision as of 17:35, 22 February 2026

/* ===== Oral History Records (Compact CSS) ===== */

/* --- Page Layout Adjustments --- */
.ohr-container {
  max-width: 1100px; 
  margin: 0 auto;
  padding: 0 1rem;
}

.ohr-layout-grid {
  display: flex;
  gap: 1.25rem; 
  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;
}

#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.15);
}

.ohr-count { margin-left: auto; font-size: 0.82rem; color: #6b7280; }

/* --- Record container --- */
.ohr-item {
  background: #fcfdfe;
  border-radius: 0.3rem;
  padding: 0.5rem 0.75rem; /* Balanced padding (0.5rem top/bottom) */
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
  margin-bottom: 0.2rem;
  border: 1px solid #edf2f7;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.ohr-item:hover {
  background: #f8fbff;
  border-color: #cbd5e1;
}

/* Darker blue background for the open state */
.ohr-item.is-open {
  background: #eef6ff; 
  border-color: #cbdcf0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

/* --- Header row --- */
.ohr-head {
  display: flex;
  gap: 0.4rem;
  align-items: center; 
}
.ohr-titleblock { flex: 1 1 auto; min-width: 0; }
.ohr-name {
  margin: 0;
  font-size: 0.92rem; 
  font-weight: 700;
  color: #1a202c;
  line-height: 1.2;
}

/* Refined Metadata Hierarchy */
.ohr-meta {
  margin-top: 0.05rem; /* Slight gap for breathing room */
  font-size: 0.78rem;
  color: #4a5568;
}
.ohr-meta span.ohr-label {
  color: #718096; /* Darkened slightly for better visibility */
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.ohr-meta .ohr-dot { margin: 0 0.25rem; color: #e2e8f0; }

/* --- Bio / summary --- */
.ohr-bio {
  margin: 0.5rem 0 0.2rem; /* Balanced top margin to match item top padding */
  font-size: 0.82rem;
  line-height: 1.35;
  color: #4b5563;
}

/* --- Links (Directory & Accordion) --- */
.ohr-links {
  margin-top: 0.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.ohr-link, .ohr-acc-btn {
  transition: all 0.15s ease;
}

.ohr-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.15rem 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 0.25rem; 
  text-decoration: none;
  color: #2d3748;
  background: #edf2f7;
  border: 1px solid #e2e8f0;
}

.ohr-link:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
}

.ohr-link:focus-visible, .ohr-acc-btn:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* --- Session hierarchy (Expanded State) --- */
.ohr-session { 
  margin-top: 0.2rem;
  padding-left: 0.25rem;
  border-left: 2px solid #edf2f7;
}
.ohr-session__title {
  font-size: 0.85rem;
  font-weight: 700;
  margin: 0 0 0.1rem;
  color: #1a202c;
}

/* WCAG Compliant Resource Labels */
.ohr-resource-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #57606a; /* Darkened to meet WCAG contrast ratios */
  margin: 0.15rem 0 0.2rem;
}

.ohr-links-stack {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

/* --- Accordion view --- */
.ohr-acc-btn {
  margin-left: auto;
  flex: 0 0 auto;
  background: transparent;
  border: 1px solid #e2e8f0;
  border-radius: 0.25rem;
  padding: 0.15rem 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #4a5568; /* Darkened for better contrast */
  cursor: pointer;
}
.ohr-acc-btn:hover { 
  background: #f7fafc;
  border-color: #cbd5e1;
  color: #2d3748;
}

.ohr-acc-panel { 
  margin-top: 0.35rem; 
}

.ohr-divider {
  margin-top: 0.35rem;
  border-top: 1px solid #edf2f7;
  padding-top: 0.35rem;
}

/* --- Error --- */
.ohr-error {
  color: #c53030;
  background: #fff5f5;
  border-radius: 0.3rem;
  padding: 0.5rem;
  font-size: 0.8rem;
  border: 1px solid #feb2b2;
  text-align: center;
}