ACHTUNG! Wegen der Umstellung auf eine neue Software-Version wird das HammWiki am Freitag und Samstag (22./23. August 2025) zeitweilig nur lesend zur Verfügung stehen.

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

Aus HammWiki
Zur Navigation springen Zur Suche springen
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
 
(19 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
/* Container für Überschrift+Content-Box */
/* Container für Content-Box */
.content-box {
.content-box {
     position: relative;
     position: relative;
     display: inline-block;
     display: inline-block;
     margin-bottom: 1.5rem;
     margin: 1rem 0;
    z-index: 1;
     transition: all .3s cubic-bezier(0.165, 0.84, 0.44, 1);
     transition: all .3s cubic-bezier(0.165, 0.84, 0.44, 1);
     transform-origin: center;
     transform-origin: center;
     width: 100%;
     width: 100%;
     max-width: 500px;
     max-width: 500px;
}
.content-box:hover {
    transform: scale(1.01);
    border-color: rgba(0,0,0,0.12);
    z-index: 2;
}
/* Header-Tab */
.box-header {
  position: relative;
  width: max-content;
  max-width: 85%;
  padding: 0.7rem 0.8rem;
  background: rgba(0,0,0,0.08);
  border-radius: 6px 6px 0 0;
  margin: 0;
  margin-bottom: -5px;
}
.box-header h2 {
  font-size: 0.9rem;
  margin: -2px 0 0 0;
  padding: 0;
  font-weight: bold;
  border-bottom: 0;
  color: #222;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
}
}


Zeile 53: Zeile 24:
   display: flex;
   display: flex;
   align-items: center;
   align-items: center;
   gap: 5px; /* Reduzierter Abstand zwischen den Elementen */
   justify-content: center;
  padding: 0.5rem 0 0 0;
  height: 70px;
}
}


/* Symbol-Container */
.symbol-container {
.symbol-container {
  flex: 0 0 auto; /* Verhindert, dass der Container sich ausdehnt */
   display: flex;
   display: flex;
  justify-content: flex-start;
   align-items: center;
   align-items: center;
  justify-content: flex-end;
  height: 100%;
  padding-right: 15px;
}
}


/* Copyright-Symbol */
/* Copyright-Symbol */
.symbol {
.symbol {
   font-size: 80px;
   font-size: 60px;
   font-weight: bold;
   font-weight: bold;
   user-select: none;
   user-select: none;
   color: rgba(0,0,0,0.7);
   color: rgba(0,0,0,0.3);
   margin-right: -5px; /* Negativer Margin, um näher an den Trennstrich zu rücken */
   line-height: 1;
}
}


Zeile 75: Zeile 50:
.divider {
.divider {
   width: 1px;
   width: 1px;
   height: 80px;
   height: 60px;
   background-color: rgba(0,0,0,0.15);
   background-color: rgba(0,0,0,0.15);
   margin: 0 8px; /* Reduzierter Abstand */
   margin: 0;
}
}


/* Logo-Bereich */
/* Logo-Container */
.logo {
.logo {
  flex: 1;
  text-align: center;
   display: flex;
   display: flex;
   align-items: center;
   align-items: center;
   justify-content: flex-start; /* Linksbündige Ausrichtung */
   justify-content: flex-start;
   margin-left: -5px; /* Negativer Margin, um näher an den Trennstrich zu rücken */
   height: 100%;
  padding-left: 15px;
}
}


.logo img {
.logo img {
   max-width: 100%;
   max-height: 60px;
   height: auto;
   width: auto;
  max-height: 80px;
   object-fit: contain;
   object-fit: contain;
   width: auto;
   border-radius: 6px;
}
}


/* Bilder */
/* Bilder */
.box-content img {
.box-content img {
  border-radius: 6px;
   max-width: 100%;
   max-width: 100%;
}
}
Zeile 153: Zeile 125:
.text {
.text {
   margin-bottom: 1rem;
   margin-bottom: 1rem;
  padding-top: 0.5rem;
   font-size: 0.9rem;
   font-size: 0.9rem;
   line-height: 1.5;
   line-height: 1.5;
  margin-top: 1rem; /* Abstand zum Header-Container */
}
}


.details {
/* Details-Container */
  margin: 1rem 0;
.details-container {
   border-top: 1px solid rgba(0,0,0,0.08);
   border-top: 1px solid rgba(0,0,0,0.08);
  padding-top: 1rem;
}
}


.detail-row {
/* Grid-Layout für Details */
   display: flex;
.details-grid {
   justify-content: space-between;
   display: grid;
   margin-bottom: 0.5rem;
   grid-template-columns: 1fr 3fr;
   margin: 0;
  padding: 0;
}
}


.detail-label {
.detail-label {
   font-weight: bold;
   font-weight: bold;
  margin: 0;
  font-size: 0.85rem;
  padding: 0.5rem 0;
  color: #333;
}
.detail-value {
  margin: 0;
  font-size: 0.85rem;
  padding: 0.5rem 0;
}
/* Trennlinien zwischen den Zeilen */
.details-grid dt:not(:last-of-type),
.details-grid dd:not(:last-of-type) {
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
}


.footer {
.footer {
  margin-top: 1rem;
   border-top: 1px solid rgba(0,0,0,0.08);
   border-top: 1px solid rgba(0,0,0,0.08);
   padding-top: 1rem;
   padding-top: 0.5rem;
   text-align: right;
   text-align: right;
}
}
Zeile 192: Zeile 180:
     display: block;
     display: block;
     width: auto;
     width: auto;
  }
  /* Box-Header bleibt bei Textbreite */
  .box-header {
    max-width: 85%;
   }
   }
}
}
Zeile 203: Zeile 186:
   .header-container {
   .header-container {
     flex-direction: column;
     flex-direction: column;
    height: auto;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }
  .symbol-container, .logo {
    justify-content: center;
    padding: 0;
    margin: 0.25rem 0;
   }
   }


Zeile 208: Zeile 200:
     width: 80%;
     width: 80%;
     height: 1px;
     height: 1px;
     margin: 10px 0;
     margin: 0.5rem 0;
  }
 
  .symbol-container, .logo {
    flex: auto;
    width: 100%;
   }
   }


   .symbol-container {
   .details-grid {
     justify-content: center;
     grid-template-columns: 1fr;
     padding-left: 0;
     gap: 0.2rem;
   }
   }


   .symbol {
   .detail-label {
     margin-right: 0;
     border-bottom: none !important;
    padding-bottom: 0;
   }
   }


   .logo {
   .detail-value {
     justify-content: center;
     padding-top: 0;
     margin-left: 0;
     margin-bottom: 0.5rem;
  }
 
  .detail-row {
    flex-direction: column;
   }
   }


   .detail-value {
   .details-grid dd:not(:last-child) {
     margin-top: 0.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding-bottom: 0.5rem;
     margin-bottom: 0.5rem;
   }
   }
}
}
Zeile 241: Zeile 227:
/* Print Styles */
/* Print Styles */
@media print {
@media print {
  .box-header,
   .box-content {
   .box-content {
     box-shadow: none;
     box-shadow: none;
  }
  .box-content {
     border: 1px solid #000;
     border: 1px solid #000;
     page-break-inside: avoid;
     page-break-inside: avoid;

Aktuelle Version vom 1. März 2025, 17:48 Uhr

/* Container für Content-Box */
.content-box {
    position: relative;
    display: inline-block;
    margin: 1rem 0;
    transition: all .3s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform-origin: center;
    width: 100%;
    max-width: 500px;
}

/* Content-Bereich */
.box-content {
    position: relative;
    background: #fff;
    padding: 0.8rem 1.4rem 1rem;
    border: 2px solid rgba(0,0,0,0.08);
    border-radius: 6px;
    box-shadow: 0 0.3rem 0.8rem rgba(51,51,51,0.08);
}

/* Header-Container mit Symbol und Logo */
.header-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0 0 0;
  height: 70px;
}

/* Symbol-Container */
.symbol-container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  padding-right: 15px;
}

/* Copyright-Symbol */
.symbol {
  font-size: 60px;
  font-weight: bold;
  user-select: none;
  color: rgba(0,0,0,0.3);
  line-height: 1;
}

/* Vertikaler Trennstrich */
.divider {
  width: 1px;
  height: 60px;
  background-color: rgba(0,0,0,0.15);
  margin: 0;
}

/* Logo-Container */
.logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  padding-left: 15px;
}

.logo img {
  max-height: 60px;
  width: auto;
  object-fit: contain;
  border-radius: 6px;
}

/* Bilder */
.box-content img {
  max-width: 100%;
}

/* Hervorhebung */
.author, .highlight-marker {
  margin: 0 0 0.5rem 0;
  line-height: 1.7;
  border-bottom: 2px solid #80dbfb;
  font-weight: normal;
}

/* Links & Highlights */
.more-link {
  text-align: right;
  width: 100%;
  margin: 1rem 0 0;
}

.more-link a {
  width: max-content;
  padding: 0.3rem 0.8rem;
  height: max-content;
  background-color: #f8f9fa;
  border: 1px solid #f8f9fa;
  color: #0b0080;
  border-radius: 4px;
  box-shadow: 0 0 3px #ccc;
  text-align: center;
  line-height: 22px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  user-select: none;
  touch-action: manipulation;
  white-space: pre;
}

.more-link a:hover {
  background-color: #f0f0f0;
  border-color: #dadce0;
  box-shadow: 0 1px 4px #ccc;
  text-decoration: none;
}

/* Spezifische Styles für Copyright-Hinweise */
.copyright-notice {
  display: block;
}

.text {
  margin-bottom: 1rem;
  padding-top: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Details-Container */
.details-container {
  border-top: 1px solid rgba(0,0,0,0.08);
}

/* Grid-Layout für Details */
.details-grid {
  display: grid;
  grid-template-columns: 1fr 3fr;
  margin: 0;
  padding: 0;
}

.detail-label {
  font-weight: bold;
  margin: 0;
  font-size: 0.85rem;
  padding: 0.5rem 0;
  color: #333;
}

.detail-value {
  margin: 0;
  font-size: 0.85rem;
  padding: 0.5rem 0;
}

/* Trennlinien zwischen den Zeilen */
.details-grid dt:not(:last-of-type),
.details-grid dd:not(:last-of-type) {
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.footer {
  border-top: 1px solid rgba(0,0,0,0.08);
  padding-top: 0.5rem;
  text-align: right;
}

/* Media Queries */
@media screen and (max-width: 900px) {
  .box-content {
    padding: 0.8rem 1.2rem;
  }
}

@media screen and (max-width: 768px) {
  .box-content {
    display: block;
    width: auto;
  }
}

@media screen and (max-width: 480px) {
  .header-container {
    flex-direction: column;
    height: auto;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .symbol-container, .logo {
    justify-content: center;
    padding: 0;
    margin: 0.25rem 0;
  }

  .divider {
    width: 80%;
    height: 1px;
    margin: 0.5rem 0;
  }

  .details-grid {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .detail-label {
    border-bottom: none !important;
    padding-bottom: 0;
  }

  .detail-value {
    padding-top: 0;
    margin-bottom: 0.5rem;
  }

  .details-grid dd:not(:last-child) {
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
  }
}

/* Print Styles */
@media print {
  .box-content {
    box-shadow: none;
    border: 1px solid #000;
    page-break-inside: avoid;
  }

  a[href]:after {
    content: " (" attr(href) ")";
    color: #444;
  }
}