Jump to content

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

No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 4: Line 4:
/* These styles help integrate the list into a multi-column layout */
/* These styles help integrate the list into a multi-column layout */
.ohr-container {
.ohr-container {
   max-width: 1200px;
   max-width: 1100px; /* Narrower container for better readability */
   margin: 0 auto;
   margin: 0 auto;
   padding: 0 1rem;
   padding: 0 1rem;
Line 11: Line 11:
.ohr-layout-grid {
.ohr-layout-grid {
   display: flex;
   display: flex;
   gap: 1.5rem; /* Reduced gap between list and sidebar */
   gap: 1.25rem; /* Tighter gap between list and sidebar */
   align-items: flex-start;
   align-items: flex-start;
}
}
Line 30: Line 30:
.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; /* Reduced from 0.75rem */
}
}


#ohr-search {
#ohr-search {
   flex: 1 1 200px;
   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;
}
}
Line 48: Line 48:
}
}


.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: #f8fbff; /* Slightly lighter for better contrast with page bg */
   background: #f8fbff;
   border-radius: 0.5rem;
   border-radius: 0.4rem; /* Sharper corners for a cleaner look */
   padding: 0.6rem 0.9rem; /* Further reduced padding */
   padding: 0.4rem 0.75rem; /* Significantly reduced vertical padding */
   box-shadow: 0 1px 2px rgba(0,0,0,0.04);
   box-shadow: 0 1px 2px rgba(0,0,0,0.03);
   margin-bottom: 0.4rem; /* Tight list spacing */
   margin-bottom: 0.3rem; /* Tighter vertical rhythm in the list */
   border: 1px solid rgba(224, 231, 255, 0.5);
   border: 1px solid rgba(224, 231, 255, 0.4);
   transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
   transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
}


Line 64: 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.07);
   box-shadow: 0 3px 5px -1px rgba(0, 0, 0, 0.06);
   border-color: #cbd5e1;
   border-color: #cbd5e1;
}
}
Line 71: Line 71:
.ohr-head {
.ohr-head {
   display: flex;
   display: flex;
   gap: 0.5rem;
   gap: 0.4rem;
   align-items: center;
   align-items: center; /* Keep everything vertically centered for unexpanded state */
}
}
.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: 1rem; /* Scaled down slightly more */
   font-size: 0.95rem; /* Slightly smaller for density */
   font-weight: 700;
   font-weight: 700;
   color: #111;
   color: #111;
   line-height: 1.2;
   line-height: 1.1;
}
}


Line 86: Line 86:
.ohr-meta {
.ohr-meta {
   margin-top: 0.05rem;
   margin-top: 0.05rem;
   font-size: 0.82rem;
   font-size: 0.8rem;
   color: #374151;
   color: #374151;
}
}
.ohr-meta span.ohr-label {
.ohr-meta span.ohr-label {
   color: #6b7280;
   color: #94a3b8; /* Lighter label color for better hierarchy */
   font-weight: 500;
   font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
}
.ohr-meta .ohr-dot { margin: 0 0.3rem; color: #d1d5db; }
.ohr-meta .ohr-dot { margin: 0 0.25rem; color: #e2e8f0; }


/* --- Bio / summary --- */
/* --- Bio / summary --- */
.ohr-bio {
.ohr-bio {
   margin: 0.35rem 0 0;
   margin: 0.25rem 0 0; /* Reduced margin */
   font-size: 0.88rem;
   font-size: 0.85rem;
   line-height: 1.35;
   line-height: 1.3;
   color: #4b5563;
   color: #4b5563;
  /* Option: uncomment below to limit bio length in list view */
  /* display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; */
}
}


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


Line 119: Line 124:
   align-items: center;
   align-items: center;
   justify-content: center;
   justify-content: center;
   padding: 0.2rem 0.5rem;
   padding: 0.15rem 0.45rem;
   font-size: 0.78rem;
   font-size: 0.75rem;
   font-weight: 600;
   font-weight: 600;
   border-radius: 0.4rem;  
   border-radius: 0.3rem;  
   text-decoration: none;
   text-decoration: none;
   color: #1f2937;
   color: #1f2937;
   background: #e5effa;
   background: #eef4fb; /* Softer background */
   border: 1px solid #d1e2f6;
   border: 1px solid #d9e6f5;
}
}


.ohr-link:hover {
.ohr-link:hover {
   background: #dce8f6;
   background: #e1ecf8;
   border-color: #b0c9e8;
   border-color: #c4d8f0;
}
}


Line 140: Line 145:


/* --- Session hierarchy --- */
/* --- Session hierarchy --- */
.ohr-session { margin-top: 0.3rem; }
.ohr-session { margin-top: 0.25rem; }
.ohr-session__title {
.ohr-session__title {
   font-size: 0.9rem;
   font-size: 0.88rem;
   font-weight: 700;
   font-weight: 700;
   margin: 0 0 0.15rem;
   margin: 0 0 0.1rem;
   color: #111827;
   color: #111827;
}
}


.ohr-resource-label {
.ohr-resource-label {
   font-size: 0.68rem;
   font-size: 0.65rem;
   font-weight: 700;
   font-weight: 700;
   letter-spacing: 0.02em;
   letter-spacing: 0.02em;
   text-transform: uppercase;
   text-transform: uppercase;
   color: #9ca3af;
   color: #a1a1aa;
   margin: 0.1rem 0 0.2rem;
   margin: 0.1rem 0 0.15rem;
}
}


Line 160: Line 165:
   display: flex;
   display: flex;
   flex-direction: column;
   flex-direction: column;
   gap: 0.4rem;
   gap: 0.35rem;
}
}


Line 169: Line 174:
   background: transparent;
   background: transparent;
   border: 1px solid #e5e7eb;
   border: 1px solid #e5e7eb;
   border-radius: 0.35rem;
   border-radius: 0.3rem;
   padding: 0.2rem 0.45rem;
   padding: 0.15rem 0.4rem;
   font-size: 0.78rem;
   font-size: 0.75rem;
   font-weight: 600;
   font-weight: 600;
   color: #4b5563;
   color: #6b7280;
   cursor: pointer;
   cursor: pointer;
}
}
Line 179: Line 184:
   background: #f9fafb;
   background: #f9fafb;
   border-color: #d1d5db;
   border-color: #d1d5db;
   color: #111;
   color: #374151;
}
}


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


.ohr-divider {
.ohr-divider {
   margin-top: 0.5rem;
   margin-top: 0.4rem;
   border-top: 1px solid rgba(0,0,0,0.06);
   border-top: 1px solid rgba(0,0,0,0.05);
   padding-top: 0.5rem;
   padding-top: 0.4rem;
}
}


Line 196: Line 201:
   color: #b91c1c;
   color: #b91c1c;
   background: #fee2e2;
   background: #fee2e2;
   border-radius: 0.4rem;
   border-radius: 0.3rem;
   padding: 0.75rem;
   padding: 0.6rem;
  font-size: 0.85rem;
   text-align: center;
   text-align: center;
}
}

Revision as of 17:22, 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: 1100px; /* Narrower container for better readability */
  margin: 0 auto;
  padding: 0 1rem;
}

.ohr-layout-grid {
  display: flex;
  gap: 1.25rem; /* Tighter 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.5rem; /* Reduced from 0.75rem */
}

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

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

/* --- Record container --- */
.ohr-item {
  background: #f8fbff;
  border-radius: 0.4rem; /* Sharper corners for a cleaner look */
  padding: 0.4rem 0.75rem; /* Significantly reduced vertical padding */
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  margin-bottom: 0.3rem; /* Tighter vertical rhythm in the list */
  border: 1px solid rgba(224, 231, 255, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

/* Container Hover Depth */
.ohr-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 5px -1px rgba(0, 0, 0, 0.06);
  border-color: #cbd5e1;
}

/* --- Header row --- */
.ohr-head {
  display: flex;
  gap: 0.4rem;
  align-items: center; /* Keep everything vertically centered for unexpanded state */
}
.ohr-titleblock { flex: 1 1 auto; min-width: 0; }
.ohr-name {
  margin: 0;
  font-size: 0.95rem; /* Slightly smaller for density */
  font-weight: 700;
  color: #111;
  line-height: 1.1;
}

/* Refined Metadata Colors */
.ohr-meta {
  margin-top: 0.05rem;
  font-size: 0.8rem;
  color: #374151;
}
.ohr-meta span.ohr-label {
  color: #94a3b8; /* Lighter label color for better hierarchy */
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.ohr-meta .ohr-dot { margin: 0 0.25rem; color: #e2e8f0; }

/* --- Bio / summary --- */
.ohr-bio {
  margin: 0.25rem 0 0; /* Reduced margin */
  font-size: 0.85rem;
  line-height: 1.3;
  color: #4b5563;
  /* Option: uncomment below to limit bio length in list view */
  /* display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; */
}

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

.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.15rem 0.45rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 0.3rem; 
  text-decoration: none;
  color: #1f2937;
  background: #eef4fb; /* Softer background */
  border: 1px solid #d9e6f5;
}

.ohr-link:hover {
  background: #e1ecf8;
  border-color: #c4d8f0;
}

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

/* --- Session hierarchy --- */
.ohr-session { margin-top: 0.25rem; }
.ohr-session__title {
  font-size: 0.88rem;
  font-weight: 700;
  margin: 0 0 0.1rem;
  color: #111827;
}

.ohr-resource-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #a1a1aa;
  margin: 0.1rem 0 0.15rem;
}

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

/* --- Accordion view --- */
.ohr-acc-btn {
  margin-left: auto;
  flex: 0 0 auto;
  background: transparent;
  border: 1px solid #e5e7eb;
  border-radius: 0.3rem;
  padding: 0.15rem 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
}
.ohr-acc-btn:hover { 
  background: #f9fafb;
  border-color: #d1d5db;
  color: #374151;
}

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

.ohr-divider {
  margin-top: 0.4rem;
  border-top: 1px solid rgba(0,0,0,0.05);
  padding-top: 0.4rem;
}

/* --- Error --- */
.ohr-error {
  color: #b91c1c;
  background: #fee2e2;
  border-radius: 0.3rem;
  padding: 0.6rem;
  font-size: 0.85rem;
  text-align: center;
}