Files
webprogrammierung/css/search.css
T
2026-05-11 09:13:44 +02:00

42 lines
1.3 KiB
CSS
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/* Styling für die Suchleiste in der Navbar */
#site-search {
width: 200px; /* Breite des Feldes kann angepasst werden */
padding: 6px 12px; /* Innenabstand für Text und Icon */
border: 1px solid #ccc; /* Randfarbe */
border-radius: 4px; /* Abgerundete Ecken */
font-size: 14px; /* Schriftgröße */
transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
#site-search:focus {
outline: none;
border-color: #5b9bd5; /* Blauer Rand beim Fokus */
box-shadow: 0 0 5px rgba(91,155,213,0.5); /* Leichter Schatten */
}
#site-search + button[type="submit"] {
padding: 6px 12px; /* Innenabstand */
margin-left: 4px; /* Abstand zum Eingabefeld */
border: none; /* Kein Rahmen */
background-color: #5b9bd5; /* Hintergrundfarbe */
color: #fff; /* Textfarbe */
border-radius: 4px; /* Gleiche Rundung wie beim Feld */
font-size: 14px;
cursor: pointer;
transition: background-color 0.2s ease;
}
/* Hover-Verhalten */
#site-search + button[type="submit"]:hover {
background-color: #4a8bc4;
}
/* Responsives Verhalten */
@media (max-width: 480px) {
#site-search,
#site-search + button[type="submit"] {
width: 100%;
margin: 4px 0 0 0;
}
}