MediaWiki:Gadget-OralHistoryRecords-Updated.css: Difference between revisions
Appearance
Created page with "→===== Oral History Records (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.75rem; align-items: center; margin-bottom: 1rem; } #ohr-search { flex: 1 1 280px; padding: 0.5rem 0.75rem; border: 1px solid #d1d5db; border-radius: 0.5rem; font-size: 0.95rem; } #ohr-search:focus { o..." |
No edit summary |
||
| Line 64: | Line 64: | ||
/* --- Links (Directory & Accordion) --- */ | /* --- Links (Directory & Accordion) --- */ | ||
.ohr-link { | .ohr-link { | ||
display: inline-flex; | display: inline-flex; | ||
align-items: center; | align-items: center; | ||
justify-content: center; | justify-content: center; | ||
padding: 0. | padding: 0.25rem 0.55rem; /* smaller */ | ||
font-size: 0. | font-size: 0.82rem; /* slightly smaller */ | ||
font-weight: | font-weight: 500; /* less bold */ | ||
border-radius: | border-radius: 0.5rem; /* less pill-like */ | ||
text-decoration: none; | text-decoration: none; | ||
color: # | color: #374151; /* softer text color */ | ||
background: # | background: #eef4fb; /* very light background */ | ||
border: 1px solid | border: 1px solid #dbe7f5; /* subtle border */ | ||
} | |||
.ohr-link:hover { | |||
background: #e2edf9; | |||
color: #111; | |||
} | } | ||
/* --- Chips (Chips view) --- */ | /* --- Chips (Chips view) --- */ | ||
Revision as of 15:54, 21 February 2026
/* ===== Oral History Records (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.75rem; align-items: center;
margin-bottom: 1rem;
}
#ohr-search {
flex: 1 1 280px;
padding: 0.5rem 0.75rem;
border: 1px solid #d1d5db;
border-radius: 0.5rem;
font-size: 0.95rem;
}
#ohr-search:focus { outline: 2px solid #9ec5fe; outline-offset: 2px; }
.ohr-count { margin-left: auto; font-size: 0.9rem; color: #6b7280; }
#ohr-search::placeholder { color: #9ca3af; }
/* --- Record container --- */
.ohr-item {
background: #f5faff;
border-radius: 0.75rem;
padding: 1rem 1.25rem;
box-shadow: 0 1px 4px rgba(0,0,0,0.06);
margin-bottom: 0.9rem;
}
/* --- Header row --- */
.ohr-head {
display: flex;
gap: 0.75rem;
align-items: flex-start;
}
.ohr-titleblock { flex: 1 1 auto; min-width: 0; }
.ohr-name {
margin: 0;
font-size: 1.1rem;
font-weight: 750;
color: #000;
line-height: 1.25;
}
.ohr-meta {
margin-top: 0.15rem;
font-size: 0.92rem;
color: #111;
}
.ohr-meta span { color: #374151; }
.ohr-meta .ohr-dot { margin: 0 0.4rem; color: #9ca3af; }
/* --- Bio / summary --- */
.ohr-bio {
margin: 0.65rem 0 0;
font-size: 0.95rem;
line-height: 1.45;
color: #000;
}
/* --- Links (Directory & Accordion) --- */
.ohr-link {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0.25rem 0.55rem; /* smaller */
font-size: 0.82rem; /* slightly smaller */
font-weight: 500; /* less bold */
border-radius: 0.5rem; /* less pill-like */
text-decoration: none;
color: #374151; /* softer text color */
background: #eef4fb; /* very light background */
border: 1px solid #dbe7f5; /* subtle border */
}
.ohr-link:hover {
background: #e2edf9;
color: #111;
}
/* --- Chips (Chips view) --- */
.ohr-chips {
margin-top: 0.75rem;
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
}
.ohr-chip {
display: inline-flex;
align-items: center;
padding: 0.35rem 0.65rem;
border-radius: 9999px;
text-decoration: none;
font-size: 0.88rem;
font-weight: 650;
background: #e5eef8;
color: #111;
border: 1px solid #cfe0f3;
}
.ohr-chip:hover { background: #d6e6f8; }
/* --- Accordion view --- */
.ohr-acc-btn {
margin-left: auto;
flex: 0 0 auto;
background: transparent;
border: 1px solid #d1d5db;
border-radius: 0.6rem;
padding: 0.35rem 0.6rem;
font-size: 0.9rem;
font-weight: 650;
cursor: pointer;
}
.ohr-acc-btn:hover { background: rgba(0,0,0,0.03); }
.ohr-acc-panel { margin-top: 0.8rem; }
.ohr-divider {
margin-top: 0.75rem;
border-top: 1px solid rgba(0,0,0,0.08);
padding-top: 0.75rem;
}
/* --- Error --- */
.ohr-error {
color: #b91c1c;
background: #fee2e2;
border-radius: 0.5rem;
padding: 1rem;
text-align: center;
margin-top: 1rem;
}