Common.css: Difference between revisions
From Illustrations in German Translations of Mark Twain's Works
No edit summary |
No edit summary |
||
| (15 intermediate revisions by the same user not shown) | |||
| Line 5: | Line 5: | ||
@import url('https://cdn.datatables.net/datetime/1.5.1/css/dataTables.dateTime.min.css'); | @import url('https://cdn.datatables.net/datetime/1.5.1/css/dataTables.dateTime.min.css'); | ||
@import url('https://cdn.datatables.net/searchbuilder/1.6.0/css/searchBuilder.dataTables.min.css'); | @import url('https://cdn.datatables.net/searchbuilder/1.6.0/css/searchBuilder.dataTables.min.css'); | ||
.fa-cogs { | |||
display: none; | |||
} | |||
/* Ausklapp-Menublock */ | /* Ausklapp-Menublock */ | ||
| Line 605: | Line 609: | ||
} | } | ||
/* Layout: Sidebar + Content nebeneinander | /* Layout: Sidebar + Content nebeneinander */ | ||
.project-layout { | .project-layout { | ||
display: flex; | display: flex; | ||
| Line 616: | Line 620: | ||
position: sticky; | position: sticky; | ||
top: 2rem; | top: 2rem; | ||
min-width: | min-width: 280px; | ||
max-width: | max-width: 300px; | ||
background-color: rgba(255, 242, 230, 0.93); | background-color: rgba(255, 242, 230, 0.93); | ||
border-radius: 12px; | border-radius: 12px; | ||
| Line 660: | Line 664: | ||
.project-content { | .project-content { | ||
flex: 1; | flex: 1; | ||
min-width: 0; | min-width: 0; | ||
} | } | ||
| Line 668: | Line 672: | ||
visibility: hidden; | visibility: hidden; | ||
} | } | ||
.project-layout { | |||
/* ===== RESPONSIVE ===== */ | |||
/* Large Desktop: Mehr Platz links */ | |||
margin- | @media (min-width: 1600px) { | ||
.project-layout { | |||
margin-left: -20%; | |||
} | |||
} | |||
/* Desktop: Normal */ | |||
@media (max-width: 1599px) and (min-width: 1200px) { | |||
.project-layout { | |||
margin-left: 0; | |||
} | |||
} | |||
/* Laptop/Tablet: Kein margin-left, aber TOC bleibt sichtbar */ | |||
@media (max-width: 1199px) and (min-width: 769px) { | |||
.project-layout { | |||
margin-left: 0; | |||
gap: 1.5rem; | |||
} | |||
.project-toc { | |||
min-width: 240px; | |||
max-width: 270px; | |||
padding: 0.8rem 1rem; | |||
} | |||
.project-toc a { | |||
font-size: 0.85rem; | |||
} | |||
.project-content { | |||
flex: 1; | |||
} | |||
} | |||
/* Mobile: Kein Sidebar, alles unter einander */ | |||
@media (max-width: 768px) { | |||
.project-layout { | |||
flex-direction: column; | |||
margin-left: 0; | |||
gap: 1rem; | |||
} | |||
.project-toc { | |||
position: static; | |||
min-width: 100%; | |||
max-width: 100%; | |||
margin-bottom: 1.5rem; | |||
} | |||
.project-content { | |||
width: 100%; | |||
} | |||
} | |||
/* Sehr kleine Screens */ | |||
@media (max-width: 480px) { | |||
.project-toc__title { | |||
font-size: 0.85rem; | |||
} | |||
.project-toc a { | |||
font-size: 0.8rem; | |||
} | |||
.project-toc { | |||
padding: 0.6rem 0.8rem; | |||
} | |||
} | } | ||
/* Styling "Guide" */ | /* Styling "Guide" */ | ||
| Line 861: | Line 932: | ||
} | } | ||
/* Bibliography | /* ========================= | ||
Bibliography Grid Layout | |||
========================= */ | |||
#listView.bibliography { | #listView.bibliography { | ||
display: grid; | display: grid; | ||
| Line 869: | Line 943: | ||
margin-top: 1rem; | margin-top: 1rem; | ||
} | } | ||
/* ========================= | |||
Entry Card | |||
========================= */ | |||
.bib-entry { | .bib-entry { | ||
| Line 887: | Line 965: | ||
} | } | ||
/* ========================= | |||
Tags inside Entries | |||
========================= */ | |||
.bib-entry .bib-tags { | .bib-entry .bib-tags { | ||
margin: 0.5rem 0; | margin: 0.5rem 0; | ||
| Line 934: | Line 975: | ||
flex-wrap: wrap; | flex-wrap: wrap; | ||
gap: 4px; | gap: 4px; | ||
align-items: flex-start; | |||
} | } | ||
| Line 942: | Line 984: | ||
border: 1px solid #2b6cb0; | border: 1px solid #2b6cb0; | ||
color: #2b6cb0; | color: #2b6cb0; | ||
background: white; | |||
cursor: pointer; | cursor: pointer; | ||
font-size: 10px; | font-size: 10px; | ||
transition: all 0.2s ease; | transition: all 0.2s ease; | ||
white-space: nowrap; | white-space: nowrap; | ||
flex-shrink: 0; | |||
width: auto; | |||
} | } | ||
| Line 957: | Line 1,000: | ||
background-color: #2b6cb0; | background-color: #2b6cb0; | ||
color: white; | color: white; | ||
} | } | ||
/* ========================= | |||
Tag Filter Bar | |||
========================= */ | |||
#tagBar { | |||
display: flex; | |||
flex-wrap: wrap; | |||
gap: 6px; | |||
display: | margin-bottom: 1rem; | ||
margin- | |||
} | } | ||
#tagBar .tag { | #tagBar .tag { | ||
display: inline-block; | display: inline-block; | ||
| Line 1,011: | Line 1,019: | ||
border: 1px solid #2b6cb0; | border: 1px solid #2b6cb0; | ||
color: #2b6cb0; | color: #2b6cb0; | ||
background: white; | background: white; | ||
cursor: pointer; | cursor: pointer; | ||
font-size: 12px; | font-size: 12px; | ||
transition: all 0.2s ease; | transition: all 0.2s ease; | ||
white-space: nowrap; | white-space: nowrap; | ||
| Line 1,045: | Line 1,040: | ||
color: #2b6cb0; | color: #2b6cb0; | ||
} | } | ||
/* ========================= | |||
Search Bar | |||
========================= */ | |||
.bib-search-container { | .bib-search-container { | ||
display: flex; | |||
justify-content: center; | |||
margin-bottom: 1.5rem; | margin-bottom: 1.5rem; | ||
} | } | ||
| Line 1,093: | Line 1,069: | ||
.bib-search-input::placeholder { | .bib-search-input::placeholder { | ||
color: #999; | color: #999; | ||
} | |||
/* ========================= | |||
Abstract + Notes | |||
========================= */ | |||
.bib-entry .short-abstract, | |||
.bib-entry .short-notes { | |||
font-size: 10px; | |||
margin: 0.5rem 0; | |||
line-height: 1.4; | |||
color: #666; | |||
} | |||
.bib-entry .abstract, | |||
.bib-entry .notes { | |||
font-size: 12px; | |||
margin-top: 0.5rem; | |||
padding: 0.6rem; | |||
background-color: transparent; | |||
border-left: 2px solid #2b6cb0; | |||
line-height: 1.4; | |||
color: #666; | |||
} | |||
.bib-entry .abstract p, | |||
.bib-entry .notes p { | |||
margin: 0; | |||
font-size: 12px; | |||
} | |||
/* ========================= | |||
Hidden States | |||
========================= */ | |||
.hidden { | |||
display: none !important; | |||
} | |||
.bib-entry .abstract.hidden, | |||
.bib-entry .notes.hidden { | |||
display: none !important; | |||
} | |||
.bib-entry .hidden { | |||
display: none !important; | |||
} | |||
/* ========================= | |||
Buttons | |||
========================= */ | |||
.bib-entry .expand-btn, | |||
.bib-entry .expand-btn-notes { | |||
font-size: 11px; | |||
padding: 4px 8px; | |||
margin-top: auto; | |||
background-color: #2b6cb0; | |||
color: white; | |||
border: none; | |||
border-radius: 3px; | |||
cursor: pointer; | |||
} | |||
.bib-entry .expand-btn-notes { | |||
margin-left: 0.5rem; | |||
} | |||
.bib-entry .expand-btn:hover, | |||
.bib-entry .expand-btn-notes:hover { | |||
background-color: #1f4f7f; | |||
} | |||
/* ========================= | |||
Compact External Links | |||
========================= */ | |||
.bib-entry h3 a { | |||
font-size: 0; | |||
text-decoration: none; | |||
} | |||
.bib-entry h3 a::before { | |||
content: " 🔗"; | |||
font-size: 10px; | |||
cursor: pointer; | |||
display: inline-block; | |||
margin-left: 4px; | |||
} | |||
.bib-entry h3 a:hover::before { | |||
opacity: 0.6; | |||
} | |||
/* ========================= | |||
Responsive Layout | |||
========================= */ | |||
@media (max-width: 1200px) { | |||
#listView.bibliography { | |||
grid-template-columns: repeat(2, 1fr); | |||
} | |||
} | |||
@media (max-width: 768px) { | |||
#listView.bibliography { | |||
grid-template-columns: 1fr; | |||
} | |||
} | } | ||
Latest revision as of 11:18, 26 May 2026
/* CSS placed here will be applied to all skins */
/* Importiere die DataTables und Swiper Styles */
@import url('https://unpkg.com/swiper/swiper-bundle.min.css');
@import url('https://cdn.datatables.net/1.13.6/css/jquery.dataTables.min.css');
@import url('https://cdn.datatables.net/datetime/1.5.1/css/dataTables.dateTime.min.css');
@import url('https://cdn.datatables.net/searchbuilder/1.6.0/css/searchBuilder.dataTables.min.css');
.fa-cogs {
display: none;
}
/* Ausklapp-Menublock */
.ausklapp-menublock {
border: 1px solid #ccc;
padding: 1em;
background-color: #A6A276;
color: black;
max-width: 500px;
border-radius: 6px;
font-family: "Roboto", sans-serif;
flex: 1;
}
/* Hauptbuttons */
.ausklapp-button {
display: flex;
align-items: center;
justify-content: space-between;
width: 50%;
margin: 0.5em 0; /* nur vertikaler Abstand, keine auto-Margins */
padding: 0.5em 1em;
background-color: #FFF2E6;
color: #000;
border: 1px solid #999;
border-radius: 6px;
font-weight: bold;
text-align: left;
cursor: pointer;
white-space: nowrap;
box-sizing: border-box;
}
.ausklapp-button:not(.sub):hover,
.ausklapp-button:not(.sub):focus,
.ausklapp-button:not(.sub):active {
background-color: #F2E0CC; /* leicht dunklerer Sandton */
color: #000; /* Schriftfarbe schwarz */
outline: none; /* entfernt blaue Browser-Outline */
}
/* Sub-Buttons */
.ausklapp-button.sub {
width: 45%;
margin-left: 2em;
font-size: 90%;
}
/* Link-Icons */
.ausklapp-button .link-icon {
margin-left: 0.5em;
color: #000;
font-size: 0.9em;
flex-shrink: 0; /* verhindert, dass Pfeil umbricht */
}
/* Ausklapp-Inhalt */
.ausklapp-inhalt {
display: none;
margin-left: 1em;
}
.ausklapp-inhalt.sub {
margin-left: 2em;
}
.ausklapp-inhalt a {
display: block;
margin: 0.3em 0;
text-decoration: none;
color: #000; /* schwarze Schrift für Links */
}
.ausklapp-inhalt a:hover {
text-decoration: underline;
}
/* Linkpfeil-Symbole in Links */
.link-icon {
color: #000; /* Pfeile schwarz */
flex-shrink: 0; /* verhindern Zeilenumbruch */
}
/* Allgemeines Styling für die Tabelle */
/* #catalog {
/* width: 100%;
/* table-layout: auto !important; /* Flexibel für DataTables und schmalere Spalten */
/* border-collapse: collapse; /* Entfernt unnötige Ränder */
/*
/* Spaltenbreiten anpassen und Schmaler machen */
#catalog th, #catalog td {
padding: 1px 4px;
line-height: 1.2; /* kleinere Zeilenhöhe */
text-align: left; /* Standardtextausrichtung für alle Zellen */
}
#catalog th:nth-child(1), #catalog td:nth-child(1) {
width: 11%; /* Book */
}
#catalog th:nth-child(2), #catalog td:nth-child(2) {
width: 4%; /* Year */
text-align: center; /* Jahr zentrieren */
}
#catalog th:nth-child(3), #catalog td:nth-child(3) {
width: 7%; /* Illustrator */
}
#catalog th:nth-child(4), #catalog td:nth-child(4) {
width: 5%; /* Chpt in Orig */
text-align: center;
}
#catalog th:nth-child(5), #catalog td:nth-child(5) {
width: 5%; /* Chpt in this Ed. */
text-align: center;
}
#catalog th:nth-child(6), #catalog td:nth-child(6) {
width: 5%; /* Ill. in Chpt. */
text-align: center;
}
#catalog th:nth-child(7), #catalog td:nth-child(7) {
width: 12%; /* Illustration Title */
text-align: center;
}
#catalog th:nth-child(8), #catalog td:nth-child(8) {
width: 11%; /* Tags */
text-align: center;
}
#catalog th:nth-child(9), #catalog td:nth-child(9) {
width: 8%; /* ID */
}
/* Entferne horizontales Scrollen und passe das Design an */
#catalog_wrapper {
overflow-x: hidden; /* Kein horizontales Scrollen */
}
/* Optional: Passe den Abstand der Spalten an */
#catalog th, #catalog td {
padding: 1px 1px;
}
/* DataTables Filter-Box und Pagination nach oben verschieben */
#catalog_filter {
margin-bottom: -2px;
margin-top: -18px;
margin-right: 5px;
float: right;
}
#catalog_length {
float: left; /* Zeige X Einträge nach rechts verschieben */
}
#catalog_length select {
padding-right: 20px;
padding-left: 10px;
}
/* Verhindert, dass die DataTable das Layout stört */
.dataTables_wrapper {
width: 140%;
overflow: visible; /* Entfernt das äußere Scrollen */
}
/* Kompaktere Zeilen für DataTables */
#catalog.dataTable tbody td,
#catalog.dataTable thead th {
padding: 3px 8px !important;
line-height: 1.2 !important;
height: auto !important;
vertical-align: middle !important;
}
/* Eingabefelder in DataTables-Kopfzeile sauber einpassen */
#catalog thead input {
box-sizing: border-box; /* verhindert, dass padding + border die Größe aufblähen */
width: 100%; /* volle Breite der Zelle */
height: 100%; /* passt sich der Zellenhöhe an */
padding: 4px; /* kleiner Innenabstand */
margin: 0; /* verhindert vertikales Überlappen */
font-size: 13px; /* kleiner und lesbarer */
border: 1px solid #ccc; /* optisch passend zur Tabelle */
}
#image-hover-preview {
pointer-events: none;
}
#image-hover-preview img {
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
border-radius: 8px;
}
#galleryContainer {
display: flex;
flex-wrap: wrap;
justify-content: center;
margin-top: 20px;
}
#galleryContainer img {
max-width: 200px;
margin: 10px;
cursor: pointer;
}
.mw-gallery-slideshow {
max-width: 600px;
margin: 0 auto;
}
.mw-gallery-slideshow .mw-gallery-slideshow-image img {
max-height: 400px;
object-fit: contain;
}
.slideshow-box {
flex: 1 1 45%; /* Flexibel, aber max. zwei pro Zeile */
min-width: 300px; /* Verhindert Schrumpfen */
max-width: 600px; /* Optional: sonst wird’s zu breit */
box-sizing: border-box;
}
.slideshow-box {
display: flex;
flex-direction: column;
align-items: center; /* Zentriert Inhalte (inkl. Überschrift) */
width: 320px; /* gleiche Breite wie Slideshow, anpassen falls nötig */
}
.slideshow-box h3 {
text-align: center;
margin-bottom: 0.5em;
font-size: 1.2em;
}
/* Comparison slide show boxes */
.slideshow-row {
display: flex;
flex-direction: row;
justify-content: center;
gap: 120px;
flex-wrap: nowrap; /* verhindert Umbruch */
}
.slideshow-box {
width: 48%; /* jeweils etwa die Hälfte */
min-width: 350px;
background-color: #f9f9f9;
border: 1px solid #ccc;
padding: 20px;
box-sizing: border-box;
}
.slideshow-container {
display: flex;
align-items: center;
justify-content: center;
gap: 20px;
height: 450px;
overflow: hidden;
}
.slideshow-container img {
max-height: 100%;
max-width: 100%;
object-fit: contain;
transition: all 0.3s ease-in-out;
background: white;
box-shadow: 0 0 10px rgba(0,0,0,0.1);
border-radius: 8px;
}
.slideshow-container button {
background-color: #006699;
color: white;
border: none;
font-size: 24px;
padding: 10px 16px;
cursor: pointer;
border-radius: 6px;
}
.slideshow-container button:hover {
background-color: #004466;
}
.gallery-button-wrapper {
text-align: center;
margin-top: 15px;
}
.gallery-button-wrapper button {
background-color: #444;
color: white;
padding: 10px 20px;
font-size: 16px;
border: none;
border-radius: 6px;
cursor: pointer;
}
.gallery-button-wrapper button:hover {
background-color: #222;
}
.gallery-button-row {
display: flex;
justify-content: center;
align-items: center;
gap: 20px; /* Abstand zwischen den Buttons */
margin-top: 10px;
}
.gallery-button-row button {
background-color: #008CBA;
color: white;
padding: 10px 18px;
font-size: 16px;
border: none;
border-radius: 6px;
cursor: pointer;
min-width: 40px;
}
.gallery-button-row button:hover {
background-color: #222;
}
.slideshow-grid {
display: grid;
grid-template-columns: repeat(3, 1fr); /* jetzt 3 Spalten */
gap: 20px;
}
/* Media Info Adjustments */
.mediainfo-box {
background:#f9f9f9;
border:1px solid #ddd;
padding:0.5em 0.8em;
border-radius:4px;
}
.mediainfo-tag {
background:#eee;
border-radius:3px;
padding:2px 6px;
margin-right:4px;
font-size:0.85em;
display:inline-block;
}
.references p {
margin: 0 0 0.5em 0;
padding-left: 1.5em;
text-indent: -1.5em;
line-height: 1.5;
color: #555555; /* helles Dunkelgrau */
}
.references a {
color: #555555;
text-decoration: underline; /* optional */
}
/* Chart-Container */
.chart-container {
width: 100%;
max-width: 900px; /* optional */
height: 600px; /* gewünschte Höhe */
margin: auto;
}
#lineChart {
width: 100% !important;
height: 100% !important;
}
/* Optional: Hover-Effekt für Linienpunkte */
.line-hover {
border-width: 3px;
}
.all-files-table img {
max-height: 100px;
width: auto;
}
.all-files-table td {
vertical-align: middle;
}
/* Allgemeines Styling für die Tabelle */
/* #catalog {
/* width: 100%;
/* table-layout: auto !important; /* Flexibel für DataTables und schmalere Spalten */
/* border-collapse: collapse; /* Entfernt unnötige Ränder */
/*
/* Spaltenbreiten anpassen und Schmaler machen */
#catalogDPL th, #catalogDPL td {
padding: 1px 4px;
line-height: 1.2; /* kleinere Zeilenhöhe */
text-align: left; /* Standardtextausrichtung für alle Zellen */
}
#catalogDPL th:nth-child(1), #catalogDPL td:nth-child(1) {
width: 11%; /* Book */
}
#catalogDPL th:nth-child(2), #catalogDPL td:nth-child(2) {
width: 4%; /* Year */
text-align: center; /* Jahr zentrieren */
}
#catalogDPL th:nth-child(3), #catalogDPL td:nth-child(3) {
width: 7%; /* Illustrator */
}
#catalogDPL th:nth-child(4), #catalogDPL td:nth-child(4) {
width: 5%; /* Chpt in Orig */
text-align: center;
}
#catalogDPL th:nth-child(5), #catalogDPL td:nth-child(5) {
width: 5%; /* Chpt in this Ed. */
text-align: center;
}
#catalogDPL th:nth-child(6), #catalogDPL td:nth-child(6) {
width: 5%; /* Ill. in Chpt. */
text-align: center;
}
#catalogDPL th:nth-child(7), #catalogDPL td:nth-child(7) {
width: 12%; /* Illustration Title */
text-align: center;
}
#catalogDPL th:nth-child(8), #catalogDPL td:nth-child(8) {
width: 11%; /* Tags */
text-align: center;
}
#catalogDPL th:nth-child(9), #catalogDPL td:nth-child(9) {
width: 8%; /* ID */
}
/* Entferne horizontales Scrollen und passe das Design an */
#catalogDPL_wrapper {
overflow-x: hidden; /* Kein horizontales Scrollen */
}
/* Optional: Passe den Abstand der Spalten an */
#catalogDPL th, #catalogDPL td {
padding: 1px 1px;
}
/* DataTables Filter-Box und Pagination nach oben verschieben */
#catalogDPL_filter {
margin-bottom: -2px;
margin-top: -18px;
margin-right: 5px;
float: right;
}
#catalogDPL_length {
float: left; /* Zeige X Einträge nach rechts verschieben */
}
#catalogDPL_length select {
padding-right: 20px;
padding-left: 10px;
}
/* Verhindert, dass die DataTable das Layout stört */
.dataTables_wrapper {
width: 140%;
overflow: visible; /* Entfernt das äußere Scrollen */
}
/* Kompaktere Zeilen für DataTables */
#catalogDPL.dataTable tbody td,
#catalogDPL.dataTable thead th {
padding: 3px 8px !important;
line-height: 1.2 !important;
height: auto !important;
vertical-align: middle !important;
}
/* Eingabefelder in DataTables-Kopfzeile sauber einpassen */
#catalogDPL thead input {
box-sizing: border-box; /* verhindert, dass padding + border die Größe aufblähen */
width: 100%; /* volle Breite der Zelle */
height: 100%; /* passt sich der Zellenhöhe an */
padding: 4px; /* kleiner Innenabstand */
margin: 0; /* verhindert vertikales Überlappen */
font-size: 13px; /* kleiner und lesbarer */
border: 1px solid #ccc; /* optisch passend zur Tabelle */
}
/*Blasenoptik auf main page*/
.page-Main_Page .bubble {
border-radius: 30px;
overflow: hidden;
background-color: rgba(255, 242, 230, 0.93);
padding: 20px;
box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.page-Main_Page #page-content > .row {
background: transparent; /* Hintergrund unsichtbar, Container bleibt */
}
.page-Main_Page #firstHeading {
display: none;
}
.page-Main_Page #footer {
display: none;
}
.no-break {
white-space: nowrap;
}
.page-Main_Page .bubble h1 {
text-align: center;
font-size: 2.5rem;
line-height: 1.2;
margin: 0;
/* elegante Schrift */
font-family: "Georgia", "Times New Roman", serif;
/* optional: etwas luftiger */
letter-spacing: 0.5px;
/* Farbe der Überschrift */
color: #008CBA;
}
.page-Overview #page-content > .row {
/* leicht transparenter Hintergrund in Farbe #FFF2E6 */
background: rgba(255, 242, 230, 0.93);
/* abgerundete Ecken */
border-radius: 15px; /* optional: anpassen */
}
.page-Overview > #page-content > .row:first-child {
display: none;
}
/* Blasenoptik für Überschriften/Header */
/* Wiki-interne Überschrift auf allen Seiten ausblenden */
#firstHeading {
display: none;
}
/* Seitenkopf-Bubble: erbt .bubble, erweitert es spezifisch */
.bubble--seitenkopf {
background-color: transparent;
text-align: center;
}
.bubble--seitenkopf .seitenkopf-titel {
text-align: center;
font-size: 2.5rem;
line-height: 1.2;
margin: 0;
font-family: "Georgia", "Times New Roman", serif;
letter-spacing: 0.5px;
color: #008CBA;
white-space: normal; /* Standardverhalten, Umbrüche via no-break steuerbar */
}
/* Fette Teilüberschriften auf Project */
.page-Project h3,
.page-Project h4,
.page-Project h5 {
font-weight: bold;
}
/* Layout: Sidebar + Content nebeneinander */
.project-layout {
display: flex;
align-items: flex-start;
gap: 2rem;
}
/* Sticky Sidebar */
.project-toc {
position: sticky;
top: 2rem;
min-width: 280px;
max-width: 300px;
background-color: rgba(255, 242, 230, 0.93);
border-radius: 12px;
padding: 1rem 1.2rem;
box-shadow: 0 3px 10px rgba(0,0,0,0.08);
flex-shrink: 0;
}
.project-toc__title {
font-weight: bold;
font-size: 0.95rem;
color: #008CBA;
margin: 0 0 0.6rem 0;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.project-toc ul {
list-style: none;
margin: 0;
padding: 0;
}
.project-toc li {
margin: 0.4rem 0;
}
.project-toc a {
color: #444;
text-decoration: none;
font-size: 0.9rem;
line-height: 1.4;
display: block;
transition: color 0.2s;
}
.project-toc a:hover {
color: #008CBA;
}
/* Hauptinhalt nimmt restliche Breite */
.project-content {
flex: 1;
min-width: 0;
}
.anchor-hidden {
display: block;
height: 0;
visibility: hidden;
}
/* ===== RESPONSIVE ===== */
/* Large Desktop: Mehr Platz links */
@media (min-width: 1600px) {
.project-layout {
margin-left: -20%;
}
}
/* Desktop: Normal */
@media (max-width: 1599px) and (min-width: 1200px) {
.project-layout {
margin-left: 0;
}
}
/* Laptop/Tablet: Kein margin-left, aber TOC bleibt sichtbar */
@media (max-width: 1199px) and (min-width: 769px) {
.project-layout {
margin-left: 0;
gap: 1.5rem;
}
.project-toc {
min-width: 240px;
max-width: 270px;
padding: 0.8rem 1rem;
}
.project-toc a {
font-size: 0.85rem;
}
.project-content {
flex: 1;
}
}
/* Mobile: Kein Sidebar, alles unter einander */
@media (max-width: 768px) {
.project-layout {
flex-direction: column;
margin-left: 0;
gap: 1rem;
}
.project-toc {
position: static;
min-width: 100%;
max-width: 100%;
margin-bottom: 1.5rem;
}
.project-content {
width: 100%;
}
}
/* Sehr kleine Screens */
@media (max-width: 480px) {
.project-toc__title {
font-size: 0.85rem;
}
.project-toc a {
font-size: 0.8rem;
}
.project-toc {
padding: 0.6rem 0.8rem;
}
}
/* Styling "Guide" */
.guide-blockquote {
border-left: 3px solid #008CBA;
margin: 1rem 0 1rem 1.5rem;
padding: 0.6rem 1rem;
background-color: rgba(255, 242, 230, 0.5);
border-radius: 0 8px 8px 0;
}
.guide-abbrev-table td,
.guide-tag-table td {
padding: 0.2rem 1rem 0.2rem 0;
vertical-align: top;
}
.guide-abbrev-table code,
.guide-tag-table code {
font-size: 0.9rem;
}
.guide-tag-table {
width: auto;
border-collapse: collapse;
}
.guide-tag-table td:first-child {
padding-right: 0.5rem;
white-space: nowrap;
}
.guide-tag-table td:last-child {
white-space: nowrap;
}
.project-toc ul ul {
margin-left: 0.5rem;
padding-left: 0.1rem;
}
.project-toc {
border: 1px solid #008CBA;
border-radius: 8px;
background-color: #F4FAFD;
}
/* BIB TEST */
body {
font-family: Arial, sans-serif;
background: #FFF2E6;
}
.bib-controls, .bib-tag-controls {
margin: 1rem 0;
}
/* BASE STATE (nicht aktiv) */
.view-btn {
background: #fff;
color: #008CBA;
border: 1px solid #008CBA;
padding: 6px 12px;
border-radius: 6px;
cursor: pointer;
font-size: 0.9rem;
transition: all 0.2s ease;
}
/* HOVER */
.view-btn:hover {
background: #008CBA;
color: #fff;
}
/* ACTIVE STATE */
.view-btn.active {
background: #008CBA;
color: #fff;
}
.tag-filter {
display: inline-block;
margin: 0.2rem;
padding: 0.3rem 0.6rem;
border-radius: 15px;
border: 1px solid #008CBA;
background: #EAF4F8;
cursor: pointer;
}
/* BASE STATE (inaktiv) */
.tag {
display: inline-block;
background: #fff;
color: #008CBA;
border: 1px solid #008CBA;
padding: 4px 10px;
margin: 3px 4px 3px 0;
border-radius: 999px;
font-size: 0.85rem;
cursor: pointer;
user-select: none;
transition: all 0.2s ease;
}
/* HOVER */
.tag:hover {
background: #e6f6fb;
}
/* ACTIVE STATE */
.tag.active {
background: #008CBA;
color: #fff;
border-color: #008CBA;
}
.bibliography {
display: flex;
flex-direction: column;
gap: 1rem;
}
.bib-entry {
background: #F4FAFD;
border: 1px solid #008CBA;
padding: 1rem;
border-radius: 8px;
}
.hidden {
display: none;
}
.abstract {
margin-top: 0.8rem;
padding-top: 0.6rem;
border-top: 1px solid rgba(0,0,0,0.1);
}
.expand-btn {
margin-top: 0.6rem;
background: #008CBA;
color: white;
border: none;
padding: 0.4rem 0.7rem;
border-radius: 6px;
cursor: pointer;
}
.hidden {
display: none;
}
/* Network Container MUSS relative sein */
.network {
position: relative;
width: 100%;
height: 800px;
border: 1px solid #008CBA;
background: rgba(255, 242, 230, 0.3);
overflow: hidden;
}
/* Nodes müssen absolut sein */
.node {
position: absolute;
padding: 6px 10px;
background: white;
border: 1px solid #ccc;
border-radius: 8px;
font-size: 12px;
cursor: pointer;
white-space: nowrap;
}
.node.tag {
background: #008CBA;
color: white;
}
.node.highlight {
border: 2px solid #008CBA;
}
/* edges sichtbar machen */
.edge {
position: absolute;
height: 1px;
background: rgba(0,0,0,0.25);
transform-origin: 0 0;
pointer-events: none;
}
/* =========================
Bibliography Grid Layout
========================= */
#listView.bibliography {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 12px;
font-size: 12px;
margin-top: 1rem;
}
/* =========================
Entry Card
========================= */
.bib-entry {
border: 1px solid #ddd;
padding: 12px;
background: white;
border-radius: 4px;
display: flex;
flex-direction: column;
height: 100%;
}
.bib-entry h3 {
margin: 0 0 0.5rem 0;
font-size: 13px;
line-height: 1.3;
font-weight: normal;
}
/* =========================
Tags inside Entries
========================= */
.bib-entry .bib-tags {
margin: 0.5rem 0;
flex-grow: 1;
display: flex;
flex-wrap: wrap;
gap: 4px;
align-items: flex-start;
}
.bib-entry .bib-tags .tag {
display: inline-block;
padding: 2px 6px;
border-radius: 12px;
border: 1px solid #2b6cb0;
color: #2b6cb0;
background: white;
cursor: pointer;
font-size: 10px;
transition: all 0.2s ease;
white-space: nowrap;
flex-shrink: 0;
width: auto;
}
.bib-entry .bib-tags .tag:hover {
background-color: #f0f5fb;
}
.bib-entry .bib-tags .tag.active {
background-color: #2b6cb0;
color: white;
}
/* =========================
Tag Filter Bar
========================= */
#tagBar {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin-bottom: 1rem;
}
#tagBar .tag {
display: inline-block;
padding: 5px 10px;
border-radius: 16px;
border: 1px solid #2b6cb0;
color: #2b6cb0;
background: white;
cursor: pointer;
font-size: 12px;
transition: all 0.2s ease;
white-space: nowrap;
}
#tagBar .tag:hover {
background-color: #f0f5fb;
}
#tagBar .tag.active {
background-color: #2b6cb0;
color: white;
border-color: #2b6cb0;
}
#tagBar .tag.inactive {
background-color: white;
color: #2b6cb0;
}
/* =========================
Search Bar
========================= */
.bib-search-container {
display: flex;
justify-content: center;
margin-bottom: 1.5rem;
}
.bib-search-input {
width: 100%;
max-width: 500px;
padding: 10px 12px;
font-size: 14px;
border: 1px solid #2b6cb0;
border-radius: 4px;
box-sizing: border-box;
}
.bib-search-input:focus {
outline: none;
border-color: #2b6cb0;
box-shadow: 0 0 4px rgba(43, 108, 176, 0.3);
}
.bib-search-input::placeholder {
color: #999;
}
/* =========================
Abstract + Notes
========================= */
.bib-entry .short-abstract,
.bib-entry .short-notes {
font-size: 10px;
margin: 0.5rem 0;
line-height: 1.4;
color: #666;
}
.bib-entry .abstract,
.bib-entry .notes {
font-size: 12px;
margin-top: 0.5rem;
padding: 0.6rem;
background-color: transparent;
border-left: 2px solid #2b6cb0;
line-height: 1.4;
color: #666;
}
.bib-entry .abstract p,
.bib-entry .notes p {
margin: 0;
font-size: 12px;
}
/* =========================
Hidden States
========================= */
.hidden {
display: none !important;
}
.bib-entry .abstract.hidden,
.bib-entry .notes.hidden {
display: none !important;
}
.bib-entry .hidden {
display: none !important;
}
/* =========================
Buttons
========================= */
.bib-entry .expand-btn,
.bib-entry .expand-btn-notes {
font-size: 11px;
padding: 4px 8px;
margin-top: auto;
background-color: #2b6cb0;
color: white;
border: none;
border-radius: 3px;
cursor: pointer;
}
.bib-entry .expand-btn-notes {
margin-left: 0.5rem;
}
.bib-entry .expand-btn:hover,
.bib-entry .expand-btn-notes:hover {
background-color: #1f4f7f;
}
/* =========================
Compact External Links
========================= */
.bib-entry h3 a {
font-size: 0;
text-decoration: none;
}
.bib-entry h3 a::before {
content: " 🔗";
font-size: 10px;
cursor: pointer;
display: inline-block;
margin-left: 4px;
}
.bib-entry h3 a:hover::before {
opacity: 0.6;
}
/* =========================
Responsive Layout
========================= */
@media (max-width: 1200px) {
#listView.bibliography {
grid-template-columns: repeat(2, 1fr);
}
}
@media (max-width: 768px) {
#listView.bibliography {
grid-template-columns: 1fr;
}
}