Vorlage:Infobox/style.css: Unterschied zwischen den Versionen

Zur Navigation springen Zur Suche springen
Vorbereitung auf angepasste Infoboxen f. „Unternehmen“ und „Straße“
KKeine Bearbeitungszusammenfassung
(Vorbereitung auf angepasste Infoboxen f. „Unternehmen“ und „Straße“)
Zeile 1: Zeile 1:
.infobox{
.infobox{
     background: #f8f8f8;
     background: #f8f8f8;
     border-radius: 6px;
     border-radius: 6px; /* Abgerundete Ecken */
     box-sizing: border-box;
     box-sizing: border-box;
     max-width: 330px;
     max-width: 330px;
Zeile 10: Zeile 10:
     margin: 0 0 1.4em 1.4em;
     margin: 0 0 1.4em 1.4em;
     padding: 1.4em;}
     padding: 1.4em;}
.logo, .bild {
    box-sizing: border-box;}
/* Grid-Container f. Logo & Bild */
.logo-bild-container {
    display: grid;
    grid-template-columns: repeat(25, 4%); /* 25-Spalten-Grid für minutiöse Kontrolle, jede Spalte 4 % der Infobox breit */
    grid-template-rows: repeat(4, auto) 1fr; /* Automatische Höhe für Logo, Grid verbleibender Platz für Bild */
    width: 100%; /* Container nimmt volle Breite ein */
    margin: 0 0 1.8em 0 /* unterer Abstand zum Text der Infobox*/}
.logo img, .bild img {
    height: auto;}
/* Stil für das Logo */
.logo {
    z-index: 2;
    grid-column: 1 / -1; /* Logo nimmt alle Spalten der Grid ein */
    grid-row: 1 / 5; /* Logo erstreckt sich über 5 Zeilen der Grid */
    display: flex; /* Logo wird im Grid angeordnet */
    justify-content: center; /* Zentriert das Logo horizontal */
    align-items: center; /* Zentriert das Logo vertikal */
    padding: 6px;
    background: #fff; /* Hintergrundfarbe */
    border-radius: 6px; /* Runde Ecken */
    box-shadow: 0px 4px 16px 0px rgba(0,0,0,0.25); /* Schatten */
    max-width: 85%;
    width: max-content;
    height: max-content;}
.logo img {
    max-height: 100px;
    max-width: 100%;
    width: auto;}
/* Stil für das Bild*/
.bild {
    grid-column: 2 / -1; /* Bild erstreckt sich über Spalte 2 bis Ende */
    grid-row: 4 / -1; /* Bild beginnt in 4. Zeile, um sich mit dem Logo zu überschneiden */
    width: 100%; /* Nimmt die volle Breite ein */}
.bild img {
    width: 100%; /* Bild nimmt volle Breite ein */
    height: auto;
    margin-bottom: 1.2em;
    height: auto; /* Höhe passt sich dem Seitenverhältnis des Bildes an */
    border-radius: 6px;}
/* Aspekt-Gruppen */


.infobox .aspect-group{
.infobox .aspect-group{
Zeile 29: Zeile 79:
     font-size: 1.1em;
     font-size: 1.1em;
     font-weight: bold;
     font-weight: bold;
    line-height: 1.6;
     margin: 1em 0;
     margin: 1em 0;
     border: 0;
     border: 0;
Zeile 49: Zeile 100:
     max-width: 85%;}
     max-width: 85%;}


.infobox .title-no-img{
/* Stil für die <h3>-Überschrift, wenn kein Logo vorhanden ist */
 
.title-no-logo {
    grid-column: 1 / -1; /* Überschrift nimmt alle Spalten ein, wie das Logo */
    grid-row: 1 / 5; /* Überschrift erstreckt sich über dieselben Zeilen wie das Logo */
    display: flex; /* Flexibles Layout für Zentrierung */
    justify-content: center; /* Zentriert den Text horizontal */
    align-items: center; /* Zentriert den Text vertikal */
    z-index: 2; /* Stellt sicher, dass die Überschrift über dem Bild liegt */
    background: #fff;
    border-radius: 6px; /* Runde Ecken */
    box-shadow: 0px 4px 16px 0px rgba(0,0,0,0.25); /* Schatten für Hervorhebung */
    padding: 6px;
    max-width: 85%;
     width: max-content;
     width: max-content;
     margin: 0 0 1.2em 0;
     height: max-content;}
    border-radius: 6px;
 
    text-align: left; 
.title-no-logo.overlap {
     background: #fff;
     background: #fff;
     color: #000;
     z-index: 2;}
    padding: 0.4em 0.8em 0.4em 0.8em;
    font-size: 1.2em;
    font-weight: bold;
    box-shadow: 0px 4px 16px 0px rgba(0,0,0,0.25);}


.infobox .title-noshow{
.infobox .title-noshow{
Zeile 91: Zeile 151:


.infobox .leaflet-container{
.infobox .leaflet-container{
     width: 100% !important; /* Override the (inline) width property */
     width: 100% !important; /* Überschreibt die (inline) width-Anweisung */
     border-radius: 6px;
     border-radius: 6px;
     margin: 0 auto;}
     margin: 0 auto;}
Zeile 105: Zeile 165:
     margin-bottom: 0.8em;
     margin-bottom: 0.8em;
     display: block;}
     display: block;}
.infobox .logo{
    max-width: 85%;
    background: #fff;
    padding: 6px;
    border-radius: 6px;
    margin-bottom: 1.6em;
    box-shadow: 0px 4px 16px 0px rgba(0,0,0,0.25);}
.infobox .logo img{
    display: block;
    object-fit: contain;
    width: auto;
    max-width: 100%;
    max-height: 110px;
    height: auto !important;
    margin-left: auto;
    margin-right: auto;}


.nocorner img{
.nocorner img{
Zeile 142: Zeile 184:
.infobox .unter_logo{
.infobox .unter_logo{
     padding-top: 2em;}
     padding-top: 2em;}
.infobox .overlap{
    background: #fff;
    position: absolute;
    z-index: 2;}
.infobox .bild img{
    width: 100%;
    border-radius: 6px;
    height: auto !important;
    box-shadow: 0px 4px 16px 0px rgba(0,0,0,0.25);
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.2em;
    display: block;}


.infobox .strassenbild p{
.infobox .strassenbild p{
Cookies helfen uns bei der Bereitstellung von HammWiki. Durch die Nutzung von HammWiki erklärst du dich damit einverstanden, dass wir Cookies speichern.

Navigationsmenü