Common.css: Unterschied zwischen den Versionen
Aus exmediawiki
Keine Bearbeitungszusammenfassung |
Keine Bearbeitungszusammenfassung |
||
| (26 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
| Zeile 1: | Zeile 1: | ||
/* Material Archive Overview */ | |||
/* Navigation headings with reduced spacing */ | |||
nav-item { | |||
display: block; | |||
margin-top: 0em; | |||
margin-bottom: 0em; | |||
line-height: 0.2; | |||
font-size: 1.5em; | |||
color: black; | |||
} | |||
/* Navigation links styling */ | |||
.nav-link { | |||
text-decoration: none; | |||
color: black; | |||
cursor: pointer; | |||
transition: color 0.3s ease; | |||
} | |||
.nav-link:hover { | |||
color: #666666 !important; /* 40% grey */ | |||
text-decoration: none; | |||
} | |||
.materials-container { | |||
display: flex; | |||
flex-wrap: wrap; | |||
gap: 0.5em; | |||
align-items: flex-start; | |||
width: 100%; | |||
max-width: 100%; | |||
box-sizing: border-box; | |||
overflow: hidden; | |||
} | |||
/* Search Container */ | |||
.search-container { | |||
position: relative; | |||
margin-bottom: 20px; | |||
max-width: 600px; | |||
width: 100%; | |||
margin-left: auto; | |||
margin-right: auto; | |||
} | |||
/* Search Input */ | |||
#material-search { | |||
width: 100%; | |||
border: 2px solid black; | |||
border-radius: 9999px; | |||
padding: 0.5em 1.5em; | |||
font-size: 1em; | |||
color: black; | |||
background-color: white; | |||
box-sizing: border-box; | |||
outline: none; | |||
transition: all 0.3s ease; | |||
} | |||
#material-search:focus { | |||
background-color: white; | |||
outline: none; | |||
} | |||
#material-search::placeholder { | |||
color: #666; | |||
opacity: 0.7; | |||
} | |||
/* Search Suggestions Dropdown */ | |||
.search-suggestions { | |||
position: absolute; | |||
top: 100%; | |||
left: 0; | |||
right: 0; | |||
background: white; | |||
border-radius: 20px; | |||
border: 2px solid black; | |||
margin-top: 0.5em; | |||
max-height: 300px; | |||
overflow-y: auto; | |||
z-index: 1000; | |||
display: none; | |||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); | |||
} | |||
/* Individual Search Suggestion */ | |||
.search-suggestion { | |||
padding: 12px 16px; | |||
cursor: pointer; | |||
border-bottom: 1px solid #e6e6e6; | |||
transition: background-color 0.2s ease; | |||
display: flex; | |||
justify-content: space-between; | |||
align-items: center; | |||
} | |||
.search-suggestion:last-child { | |||
border-bottom: none; | |||
} | |||
.search-suggestion:hover { | |||
background-color: #e6e6e6; | |||
} | |||
.suggestion-title { | |||
font-weight: 500; | |||
color: black; | |||
flex-grow: 1; | |||
} | |||
.suggestion-category { | |||
font-size: 0.85em; | |||
color: #666; | |||
background-color: #e6e6e6; | |||
padding: 2px 8px; | |||
border-radius: 12px; | |||
margin-left: 10px; | |||
} | |||
/* Parent category items */ | |||
.material-parent { | |||
border: 2px solid black; | |||
border-radius: 9999px; | |||
padding: 0.5em 2em; | |||
text-align: center; | |||
color: black; | |||
background-color: white; | |||
flex-shrink: 0; | |||
box-sizing: border-box; | |||
min-width: 140px; | |||
cursor: pointer; | |||
user-select: none; | |||
transition: all 0.3s ease; | |||
position: relative; | |||
} | |||
.material-parent h3 { | |||
margin: 0; | |||
font-size: 1.17em; | |||
transition: color 0.3s ease; | |||
} | |||
/* Parent hover effect */ | |||
.material-parent:hover { | |||
background-color: #1F1F1F; | |||
color: white; | |||
} | |||
.material-parent:hover h3 { | |||
color: white; | |||
} | |||
/* Child material items - hidden by default */ | |||
.material-child { | |||
border: 2px solid #999999; | |||
border-radius: 9999px; | |||
padding: 0.5em 2em; | |||
color: black; | |||
background-color: white; | |||
text-align: center; | |||
flex-shrink: 0; | |||
box-sizing: border-box; | |||
transition: all 0.3s ease; | |||
display: none; | |||
position: relative; | |||
} | |||
.material-child h3 { | |||
margin: 0; | |||
font-size: 1.17em; | |||
transition: color 0.3s ease; | |||
} | |||
/* Highlight effect for search results */ | |||
.material-child.highlighted { | |||
background-color: #fff3cd !important; | |||
border-color: #ffc107 !important; | |||
animation: pulse 0.5s ease-in-out; | |||
} | |||
@keyframes pulse { | |||
0% { transform: scale(1); } | |||
50% { transform: scale(1.05); } | |||
100% { transform: scale(1); } | |||
} | |||
/* Hidden image containers for data storage */ | |||
.material-child .image-preview { | |||
display: none; | |||
} | |||
/* Cursor tooltip image */ | |||
.cursor-image-tooltip { | |||
position: fixed; | |||
pointer-events: none; | |||
z-index: 9999; | |||
display: none; | |||
width: 200px; | |||
height: 200px; | |||
} | |||
/* Show children when their specific parent is expanded */ | |||
.material-parent[data-category="wood"].expanded ~ .material-child[data-parent="wood"], | |||
.material-parent[data-category="veneer"].expanded ~ .material-child[data-parent="veneer"], | |||
.material-parent[data-category="plant-based materials"].expanded ~ .material-child[data-parent="plant-based materials"], | |||
.material-parent[data-category="animal material"].expanded ~ .material-child[data-parent="animal material"], | |||
.material-parent[data-category="textilien"].expanded ~ .material-child[data-parent="textilien"], | |||
.material-parent[data-category="keramik"].expanded ~ .material-child[data-parent="keramik"], | |||
.material-parent[data-category="glas"].expanded ~ .material-child[data-parent="glas"], | |||
.material-parent[data-category="leder"].expanded ~ .material-child[data-parent="leder"], | |||
.material-parent[data-category="plastic"].expanded ~ .material-child[data-parent="plastic"] { | |||
display: flex; | |||
align-items: center; | |||
} | |||
/* Individual material page */ | |||
/* MediaWiki Slideshow Gallery - PAGE SPECIFIC ONLY */ | /* MediaWiki Slideshow Gallery - PAGE SPECIFIC ONLY */ | ||
/* Only applies when .slideshow-gallery-page class is present */ | /* Only applies when .slideshow-gallery-page class is present */ | ||
. | .category { | ||
display: flex; | |||
flex-wrap: wrap; | |||
gap: 0.5em; | |||
align-items: flex-start; | |||
width: 100%; | |||
max-width: 100%; | |||
box-sizing: border-box; | |||
overflow: hidden; | |||
} | |||
/* Only apply gradient to elements with gradient-fade class */ | |||
.left-column-container.gradient-fade { | |||
position: relative; | |||
} | |||
.left-column-container.gradient-fade::after { | |||
content: ''; | |||
position: absolute; | |||
bottom: 0; | |||
left: 0; | |||
right: 0; | |||
height: 30px; | |||
background: linear-gradient( | |||
to top, | |||
rgba(255,255,255,1) 0%, | |||
rgba(255,255,255,0) 100% | |||
); | |||
pointer-events: none; | |||
z-index: 10; | |||
} | } | ||
| Zeile 21: | Zeile 269: | ||
.slideshow-gallery-page .mySlides.active { | .slideshow-gallery-page .mySlides.active { | ||
display: block; | display: block; | ||
} | |||
/* Force zero margins everywhere in slideshow */ | |||
.slideshow-gallery-page .slideshow-container { | |||
position: relative; | |||
max-width: 98%; | |||
overflow: hidden; | |||
margin: 0; | |||
padding: 0; | |||
} | |||
.slideshow-gallery-page .mySlides { | |||
display: none; | |||
position: relative; | |||
margin: 0 !important; | |||
padding: 0 !important; | |||
line-height: 0; /* Critical for removing image gaps */ | |||
} | |||
/* Reset ALL MediaWiki image wrappers */ | |||
.slideshow-gallery-page .mySlides img, | |||
.slideshow-gallery-page .mySlides > *, | |||
.slideshow-gallery-page .thumb, | |||
.slideshow-gallery-page .thumbinner, | |||
.slideshow-gallery-page .thumbimage { | |||
margin: 0 !important; | |||
padding: 0 !important; | |||
border: none !important; | |||
display: block; | |||
width: 100%; | |||
height: auto; | |||
} | } | ||
Aktuelle Version vom 24. Juli 2025, 16:33 Uhr
/* Material Archive Overview */
/* Navigation headings with reduced spacing */
nav-item {
display: block;
margin-top: 0em;
margin-bottom: 0em;
line-height: 0.2;
font-size: 1.5em;
color: black;
}
/* Navigation links styling */
.nav-link {
text-decoration: none;
color: black;
cursor: pointer;
transition: color 0.3s ease;
}
.nav-link:hover {
color: #666666 !important; /* 40% grey */
text-decoration: none;
}
.materials-container {
display: flex;
flex-wrap: wrap;
gap: 0.5em;
align-items: flex-start;
width: 100%;
max-width: 100%;
box-sizing: border-box;
overflow: hidden;
}
/* Search Container */
.search-container {
position: relative;
margin-bottom: 20px;
max-width: 600px;
width: 100%;
margin-left: auto;
margin-right: auto;
}
/* Search Input */
#material-search {
width: 100%;
border: 2px solid black;
border-radius: 9999px;
padding: 0.5em 1.5em;
font-size: 1em;
color: black;
background-color: white;
box-sizing: border-box;
outline: none;
transition: all 0.3s ease;
}
#material-search:focus {
background-color: white;
outline: none;
}
#material-search::placeholder {
color: #666;
opacity: 0.7;
}
/* Search Suggestions Dropdown */
.search-suggestions {
position: absolute;
top: 100%;
left: 0;
right: 0;
background: white;
border-radius: 20px;
border: 2px solid black;
margin-top: 0.5em;
max-height: 300px;
overflow-y: auto;
z-index: 1000;
display: none;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
/* Individual Search Suggestion */
.search-suggestion {
padding: 12px 16px;
cursor: pointer;
border-bottom: 1px solid #e6e6e6;
transition: background-color 0.2s ease;
display: flex;
justify-content: space-between;
align-items: center;
}
.search-suggestion:last-child {
border-bottom: none;
}
.search-suggestion:hover {
background-color: #e6e6e6;
}
.suggestion-title {
font-weight: 500;
color: black;
flex-grow: 1;
}
.suggestion-category {
font-size: 0.85em;
color: #666;
background-color: #e6e6e6;
padding: 2px 8px;
border-radius: 12px;
margin-left: 10px;
}
/* Parent category items */
.material-parent {
border: 2px solid black;
border-radius: 9999px;
padding: 0.5em 2em;
text-align: center;
color: black;
background-color: white;
flex-shrink: 0;
box-sizing: border-box;
min-width: 140px;
cursor: pointer;
user-select: none;
transition: all 0.3s ease;
position: relative;
}
.material-parent h3 {
margin: 0;
font-size: 1.17em;
transition: color 0.3s ease;
}
/* Parent hover effect */
.material-parent:hover {
background-color: #1F1F1F;
color: white;
}
.material-parent:hover h3 {
color: white;
}
/* Child material items - hidden by default */
.material-child {
border: 2px solid #999999;
border-radius: 9999px;
padding: 0.5em 2em;
color: black;
background-color: white;
text-align: center;
flex-shrink: 0;
box-sizing: border-box;
transition: all 0.3s ease;
display: none;
position: relative;
}
.material-child h3 {
margin: 0;
font-size: 1.17em;
transition: color 0.3s ease;
}
/* Highlight effect for search results */
.material-child.highlighted {
background-color: #fff3cd !important;
border-color: #ffc107 !important;
animation: pulse 0.5s ease-in-out;
}
@keyframes pulse {
0% { transform: scale(1); }
50% { transform: scale(1.05); }
100% { transform: scale(1); }
}
/* Hidden image containers for data storage */
.material-child .image-preview {
display: none;
}
/* Cursor tooltip image */
.cursor-image-tooltip {
position: fixed;
pointer-events: none;
z-index: 9999;
display: none;
width: 200px;
height: 200px;
}
/* Show children when their specific parent is expanded */
.material-parent[data-category="wood"].expanded ~ .material-child[data-parent="wood"],
.material-parent[data-category="veneer"].expanded ~ .material-child[data-parent="veneer"],
.material-parent[data-category="plant-based materials"].expanded ~ .material-child[data-parent="plant-based materials"],
.material-parent[data-category="animal material"].expanded ~ .material-child[data-parent="animal material"],
.material-parent[data-category="textilien"].expanded ~ .material-child[data-parent="textilien"],
.material-parent[data-category="keramik"].expanded ~ .material-child[data-parent="keramik"],
.material-parent[data-category="glas"].expanded ~ .material-child[data-parent="glas"],
.material-parent[data-category="leder"].expanded ~ .material-child[data-parent="leder"],
.material-parent[data-category="plastic"].expanded ~ .material-child[data-parent="plastic"] {
display: flex;
align-items: center;
}
/* Individual material page */
/* MediaWiki Slideshow Gallery - PAGE SPECIFIC ONLY */
/* Only applies when .slideshow-gallery-page class is present */
.category {
display: flex;
flex-wrap: wrap;
gap: 0.5em;
align-items: flex-start;
width: 100%;
max-width: 100%;
box-sizing: border-box;
overflow: hidden;
}
/* Only apply gradient to elements with gradient-fade class */
.left-column-container.gradient-fade {
position: relative;
}
.left-column-container.gradient-fade::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 30px;
background: linear-gradient(
to top,
rgba(255,255,255,1) 0%,
rgba(255,255,255,0) 100%
);
pointer-events: none;
z-index: 10;
}
/* Container for the slideshow gallery */
.slideshow-gallery-page .slideshow-container {
position: relative;
max-width: 98%;
}
/* Hide the slides by default */
.slideshow-gallery-page .mySlides {
display: none;
position: relative;
}
/* Show the active slide */
.slideshow-gallery-page .mySlides.active {
display: block;
}
/* Force zero margins everywhere in slideshow */
.slideshow-gallery-page .slideshow-container {
position: relative;
max-width: 98%;
overflow: hidden;
margin: 0;
padding: 0;
}
.slideshow-gallery-page .mySlides {
display: none;
position: relative;
margin: 0 !important;
padding: 0 !important;
line-height: 0; /* Critical for removing image gaps */
}
/* Reset ALL MediaWiki image wrappers */
.slideshow-gallery-page .mySlides img,
.slideshow-gallery-page .mySlides > *,
.slideshow-gallery-page .thumb,
.slideshow-gallery-page .thumbinner,
.slideshow-gallery-page .thumbimage {
margin: 0 !important;
padding: 0 !important;
border: none !important;
display: block;
width: 100%;
height: auto;
}
/* Next & previous buttons - CIRCULAR with black border, positioned at bottom */
.slideshow-gallery-page .prev,
.slideshow-gallery-page .next {
cursor: pointer;
position: absolute;
bottom: 10px;
width: 40px;
height: 40px;
background: rgba(255, 255, 255, 0.9);
border: 2px solid #000;
border-radius: 50%;
color: #000;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
font-size: 20px;
user-select: none;
-webkit-user-select: none;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s ease;
z-index: 1000;
text-decoration: none;
line-height: 1;
}
/* Position the "previous button" to the bottom-left corner */
.slideshow-gallery-page .prev {
left: 15px;
}
/* Position the "next button" to the bottom-right corner */
.slideshow-gallery-page .next {
right: 15px;
}
/* On hover, scale and brighten background */
.slideshow-gallery-page .prev:hover,
.slideshow-gallery-page .next:hover {
background: rgba(255, 255, 255, 1);
transform: scale(1.1);
}
/* Active state */
.slideshow-gallery-page .prev:active,
.slideshow-gallery-page .next:active {
transform: scale(0.95);
}
/* Responsive design - Mobile optimization */
@media (max-width: 768px) {
.slideshow-gallery-page .mySlides img {
height: 300px;
object-fit: cover; /* Add this for better image scaling */
}
.slideshow-gallery-page .prev,
.slideshow-gallery-page .next {
width: 35px;
height: 35px;
font-size: 16px;
left: 10px; /* For prev button */
}
.slideshow-gallery-page .next {
right: 10px;
}
}