Deutlichere Effekte bei Nutzerinteraktionen
This commit is contained in:
@@ -225,4 +225,24 @@ h1 {
|
||||
text-align: center;
|
||||
text-decoration: none;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
/* Deutlichere Klickreaktion für normale Buttons */
|
||||
.button:active {
|
||||
transform: translateY(1px);
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
/* Deutlichere Klickreaktion für Kategorien */
|
||||
.category-link:active {
|
||||
transform: translateY(1px);
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
/* Sichtbare Tastatur-Markierung */
|
||||
.button:focus-visible,
|
||||
.category-link:focus-visible,
|
||||
.article-link a:focus-visible,
|
||||
.register-link a:focus-visible {
|
||||
outline: 3px solid #fbbf24;
|
||||
outline-offset: 3px;
|
||||
}
|
||||
+87
-3
@@ -248,9 +248,9 @@ CSS für die navbar
|
||||
z-index: 1000;
|
||||
transition: left 0.3s ease;
|
||||
padding: 2rem 1rem;
|
||||
box-shadow: 2px 0 10px rgba(0,0,0,0.5);
|
||||
box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
|
||||
overflow-y: auto;
|
||||
|
||||
|
||||
/* Genug Abstand oben rechts, damit Links nicht hinter dem X liegen */
|
||||
padding: 4rem 1.5rem 2rem 1.5rem;
|
||||
}
|
||||
@@ -302,5 +302,89 @@ CSS für die navbar
|
||||
padding: 0.8rem 1rem;
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
/* Deutlichere Hover-Effekte für die Navigation */
|
||||
|
||||
}
|
||||
.nav__dropdown-toggle,
|
||||
.nav__link {
|
||||
border-radius: 6px;
|
||||
transition:
|
||||
background-color 0.2s ease,
|
||||
color 0.2s ease,
|
||||
transform 0.2s ease;
|
||||
}
|
||||
|
||||
.nav__dropdown-toggle:hover,
|
||||
.nav__link:hover {
|
||||
background-color: #ffffff;
|
||||
color: #1d4ed8;
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
/* Sichtbare Reaktion beim Anklicken */
|
||||
.nav__dropdown-toggle:active,
|
||||
.nav__link:active {
|
||||
transform: translateY(1px);
|
||||
}
|
||||
|
||||
/* Deutlichere Effekte für Anmelden, Registrieren usw. */
|
||||
.nav__button {
|
||||
transition:
|
||||
background-color 0.2s ease,
|
||||
color 0.2s ease,
|
||||
transform 0.2s ease,
|
||||
box-shadow 0.2s ease;
|
||||
}
|
||||
|
||||
.nav__button:hover {
|
||||
background-color: #2563eb;
|
||||
color: #ffffff;
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
.nav__button:active {
|
||||
transform: translateY(1px);
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
/* Deutlichere Hervorhebung der Einträge im Dropdown-Menü */
|
||||
.nav__dropdown-menu a {
|
||||
display: block;
|
||||
transition:
|
||||
background-color 0.2s ease,
|
||||
color 0.2s ease,
|
||||
padding-left 0.2s ease;
|
||||
}
|
||||
|
||||
.nav__dropdown-menu a:hover {
|
||||
background-color: #dbeafe;
|
||||
color: #1d4ed8;
|
||||
padding-left: 1.4rem;
|
||||
}
|
||||
|
||||
/* Effekt für den Suchbutton */
|
||||
.nav__search-button {
|
||||
transition:
|
||||
background-color 0.2s ease,
|
||||
color 0.2s ease,
|
||||
transform 0.2s ease;
|
||||
}
|
||||
|
||||
.nav__search-button:hover {
|
||||
background-color: #2563eb;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
.nav__search-button:active {
|
||||
transform: scale(0.95);
|
||||
}
|
||||
|
||||
/* Sichtbare Markierung bei Tastaturbedienung */
|
||||
.nav a:focus-visible,
|
||||
.nav button:focus-visible,
|
||||
.nav input:focus-visible,
|
||||
.nav label:focus-visible {
|
||||
outline: 3px solid #fbbf24;
|
||||
outline-offset: 3px;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user