style.css aktualisiert
Ein- und Ausblenden von "Presets bearbeiten Buttons"
This commit is contained in:
parent
2e3cb260ac
commit
78f0ec8cf1
1 changed files with 51 additions and 32 deletions
77
style.css
77
style.css
|
|
@ -1,34 +1,40 @@
|
||||||
|
:root {
|
||||||
|
--primary-color: #ff9999;
|
||||||
|
--header-height: 120px;
|
||||||
|
--padding-top: calc(10px + var(--header-height));
|
||||||
|
--box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
||||||
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
font-family: Arial, sans-serif;
|
font-family: Arial, sans-serif;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
padding-top: calc(10px + 110px); /* Dynamische Berechnung basierend auf der Header-Höhe */
|
padding-top: var(--padding-top);
|
||||||
}
|
}
|
||||||
|
|
||||||
.header {
|
.header {
|
||||||
background-color: #FFFFE3;
|
background-color: #FFFFE3;
|
||||||
height: 120px; /* Feste Höhe für den Header */
|
height: var(--header-height);
|
||||||
padding-bottom: 10px;
|
padding-bottom: 10px;
|
||||||
position: fixed; /* Fixiert den Header oben */
|
position: fixed;
|
||||||
top: 0; /* Abstand von oben */
|
top: 0;
|
||||||
left: 0; /* Abstand von links */
|
left: 0;
|
||||||
width: 100%; /* Deckt die gesamte Breite ab */
|
width: 100%;
|
||||||
z-index: 1000; /* Stellt sicher, dass der Header über anderen Inhalten liegt */
|
z-index: 1000;
|
||||||
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Optional: Schatten für mehr Tiefe */
|
box-shadow: var(--box-shadow);
|
||||||
}
|
}
|
||||||
|
|
||||||
.titel {
|
.titel {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center; /* Vertikale Zentrierung */
|
align-items: center;
|
||||||
align-self: center; /* Titel an die Mitte der Flexbox anpassen */
|
justify-content: center;
|
||||||
justify-content: center; /* Hier wird die horizontale Zentrierung eingestellt */
|
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.titel img {
|
.titel img {
|
||||||
height: 30px; /* Einheitliche Höhe für das Logo */
|
height: 30px;
|
||||||
width: auto; /* Automatische Breite beibehalten */
|
width: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.hidden {
|
.hidden {
|
||||||
|
|
@ -36,21 +42,20 @@ body {
|
||||||
}
|
}
|
||||||
|
|
||||||
.stop-button {
|
.stop-button {
|
||||||
background-color: #ff9999;
|
background-color: var(--primary-color);
|
||||||
color: #fff; /* Weißer Text auf rotem Hintergrund */
|
color: #fff;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
height: 30px; /* Höhe passend zum Logo */
|
height: 30px;
|
||||||
padding: 4px 10px;
|
padding: 4px 10px;
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
margin: 0; /* Verhindert zusätzliche Abstände in der Zeile */
|
margin: 0;
|
||||||
margin-left: auto; /* Schiebt den Button ganz nach rechts */
|
margin-left: auto;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: background-color 0.3s ease;
|
transition: background-color 0.3s ease;
|
||||||
/* Neue Anpassung für die Position */
|
|
||||||
position: relative;
|
position: relative;
|
||||||
top: -2px; /* Bewegt den Button 2 Pixel nach oben */
|
top: -2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.stop-button:focus {
|
.stop-button:focus {
|
||||||
|
|
@ -70,6 +75,15 @@ body {
|
||||||
padding: 10px 20px;
|
padding: 10px 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.edit-button, .delete-button, .move-button {
|
||||||
|
display: none; /* Standardmäßig ausgeblendet */
|
||||||
|
}
|
||||||
|
|
||||||
|
.edit-button.hidden, .delete-button.hidden, .move-button.hidden {
|
||||||
|
display: inline-block; /* Wird angezeigt, wenn die Klasse 'hidden' entfernt wird */
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
.preset-container {
|
.preset-container {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
||||||
|
|
@ -82,7 +96,7 @@ body {
|
||||||
background-color: #f1f1f1;
|
background-color: #f1f1f1;
|
||||||
padding: 15px;
|
padding: 15px;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
box-shadow: var(--box-shadow);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: background-color 0.3s ease;
|
transition: background-color 0.3s ease;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
@ -91,8 +105,7 @@ body {
|
||||||
|
|
||||||
.preset-item h3 {
|
.preset-item h3 {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
flex: 1; /* Flexibel innerhalb des Items */
|
flex: 1;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.preset-item button {
|
.preset-item button {
|
||||||
|
|
@ -115,13 +128,13 @@ body {
|
||||||
|
|
||||||
.preset-set {
|
.preset-set {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
text-align: center; /* Zentriert den gesamten Inhalt */
|
text-align: center;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
color: #666;
|
color: #666;
|
||||||
}
|
}
|
||||||
|
|
||||||
.preset-set a {
|
.preset-set a {
|
||||||
color: #666; /* Farbe der Links */
|
color: #666;
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -132,19 +145,25 @@ body {
|
||||||
|
|
||||||
.footer {
|
.footer {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center; /* Zentriert Elemente vertikal */
|
align-items: center;
|
||||||
justify-content: center; /* Hier wird die horizontale Zentrierung eingestellt */
|
justify-content: center;
|
||||||
margin: 20px 0;
|
margin: 20px 0;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
color: #666;
|
color: #666;
|
||||||
}
|
}
|
||||||
|
|
||||||
.footer a {
|
.footer a {
|
||||||
color: #666; /* Farbe der Links */
|
color: #666;
|
||||||
text-decoration: none; /* Entfernt den Unterstreichung */
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.footer a:hover {
|
.footer a:hover {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: #333;
|
color: #333;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (max-width: 600px) {
|
||||||
|
.preset-container {
|
||||||
|
grid-template-columns: 1fr;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue