Widget:StartseitenSuche: Unterschied zwischen den Versionen
Aus MediaWiki
Admin (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
Admin (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung Markierung: Manuelle Zurücksetzung |
||
(8 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
Zeile 10: | Zeile 10: | ||
.perplexity-search input[type="text"] { | .perplexity-search input[type="text"] { | ||
width: | width: 300px; | ||
} | } | ||
.perplexity-search input[type="submit"] { | .perplexity-search input[type="submit"] { | ||
padding: | padding: 0px 20px; | ||
background-color: #4CAF50; | background-color: #4CAF50; | ||
color: white; | color: white; | ||
border: none; | border: none; | ||
border-radius: 3px; | border-radius: 3px; | ||
} | } | ||
.overlay-container { | |||
position: relative; | |||
width: 100%; | |||
display: inline-block; | |||
background-image:url("/w/images/a/a9/Schloss-Muenster-Philipp-Foelting-CC-BY-SA.jpg"); | |||
background-size: cover; | |||
background-position: center; | |||
min-height:400px; | |||
} | |||
.overlay-content { | |||
position: absolute; | |||
top: 50%; /* Position des Widgets */ | |||
left: 50%; | |||
transform: translate(-50%, -50%); | |||
color: white; /* Textfarbe: Weiß */ | |||
background-color: #00308D; /* Hintergrundfarbe: Blau */ | |||
border-radius: 15px; /* Abgerundete Ecken */ | |||
padding: 20px; | |||
text-align: center; | |||
width: 80%; /* Breite des Widgets, kannst du anpassen */ | |||
} | |||
.overlay-content p { | |||
margin: 10px 0; /* Abstand zwischen den Textabsätzen */ | |||
} | |||
.overlay-content .headline-text { | |||
font-size: 1.5em; /* Größerer Schriftzug */ | |||
font-weight: bold; /* Dickere Schrift */ | |||
margin: 10px 0; | |||
} | |||
/* To make images responsive */ | /* To make images responsive */ | ||
Zeile 38: | Zeile 63: | ||
<div class="overlay-container"> | <div class="overlay-container"> | ||
<div class="overlay-content"> | <div class="overlay-content"> |