-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
247 lines (199 loc) · 6.45 KB
/
style.css
File metadata and controls
247 lines (199 loc) · 6.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
/* Der Selektor zielt auf das <body>-Element */
/* Header/logo Title */
.header {
padding: 60px;
text-align: center;
background:rgb(0,255,0);
}
.navbar {
background-color: #333; /* Dunkler Hintergrund */
overflow: hidden; /* Verhindert Probleme mit Floats */
border-radius: 8px; /* Abgerundete Ecken */
box-shadow: 0 4px 8px rgba(0,0,0,0.2); /* Sanfter Schatten */
padding: auto;
}
.navbar a {
float: left; /* Links nebeneinander */
display: block; /* Für die volle Größe des Links */
color: white; /* Weiße Textfarbe */
text-align: center; /* Text zentrieren */
padding: 14px 20px; /* Abstände innen */
text-decoration: none; /* Unterstreichung entfernen */
font-family: Arial, sans-serif; /* Moderne Schriftart */
font-size: 17px;
transition: background-color 0.3s ease; /* Übergang für Hover-Effekt */
}
.navbar a:hover {
background-color: #575757; /* Dunklerer Hintergrund beim Überfahren */
}
/* Optional: Styling für den aktiven Link */
.navbar a.active {
background-color: #04AA6D;
}
/* Style the body */
body {
font-family: Arial;
margin: 0;
}
/* Der Selektor zielt auf alle Überschriften der Ebene 1 */
h1 {
/* Die Eigenschaft 'color' (Textfarbe) wird auf blau gesetzt */
text-align: center;
font-size: 36px;
padding: auto;
border-color: hsl(160, 59, 16);
background-color: #333;
color: white;
}
h2 {
color: rgb(123, 18, 193);
background-color: rgb(0,255,0);
text-align: center;
font-size: 40px;
/* 🛠️ KORREKTUR: Einheit px zu padding hinzugefügt */
padding: 30px;
/* 🛠️ KORREKTUR: border-Syntax korrigiert (Komma entfernt, Format: Dicke Stil Farbe) */
border: 3px solid rgb(0, 0, 0);
margin: 20px;
width: 90%;
}
h3 {
color: rgb(17, 120, 50);
text-align: left;
font-size: 28px;
padding: 20px;
}
/* Der Selektor zielt auf alle <p>-Elemente */
p {
/* Die Eigenschaft 'font-size' wird auf 16 Pixel gesetzt */
font-size: 24px;
/* Die Eigenschaft 'line-height' wird auf 1.5 gesetzt, was den Zeilenabstand definiert */
line-height: 1.5;
max-width: 600px;
}
/* Stile für die ungeordnete Liste (Container) */
ul {
list-style-type: none;
padding: 0;
/* NEU: Entfernt die Zentrierung */
margin: 0;
/* HINWEIS: Optional, aber stellt sicher, dass die Liste die gesamte
verfügbare Breite des Elternelements einnimmt. */
width: 100%;
}
/* Stile für die Listenelemente (die einzelnen Prinzipien) */
li {
font-family: Arial, sans-serif;
font-size: 1.2em;
line-height: 1.6;
text-align: left;
/* WICHTIG: Die Listenelemente sollen sich an die UL-Breite anpassen */
width: auto;
margin-bottom: 12px;
padding: 15px 20px;
/* Stil-Definitionen beibehalten */
border: 1px solid #90EE90;
border-left: 6px solid #3CB371;
border-radius: 8px;
background-color: #F0FFF0;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
/* Optional: Fügen Sie ein stilvolles Aufzählungszeichen (Bullet Point) hinzu */
li::before {
content: "🌿"; /* Ein Natur-Emoji als Bullet Point */
margin-right: 10px;
font-size: 1.1em;
color: #3CB371;
}
blockquote {
/* Box-Model und Abstände */
margin: 30px 0;
padding: 15px 20px 15px 35px; /* Viel Platz für die linke Linie/Zitate */
/* Visuelle Unterscheidung */
background-color: #fafafa;
border-left: 8px solid #33aaff; /* Breite, farbige Linie */
border-radius: 4px; /* Abgerundete Ecken */
/* Typografie */
font-family: Georgia, serif;
font-style: italic;
font-size: 1.2em;
color: #444;
}
/* Optional: Styling für die Quelle (falls <cite> innerhalb von <blockquote> verwendet wird) */
blockquote cite {
display: block;
margin-top: 10px;
font-style: normal; /* Normaler Stil für die Quelle */
font-size: 0.9em;
color: #666;
text-align: right;
}
/* Footer */
.footer {
padding: 20px;
text-align: center;
background: #ddd;
}
/* Der übergeordnete Container mit Grid-Layout */
.content-container {
display: grid;
grid-template-columns: 50% 50%;
gap: 20px;
padding: 20px;
}
/* Stil für das p-Element, um einen Rand hinzuzufügen */
.text-block p {
/* Fügt 15px Rand rund um den Absatz hinzu */
margin-top: 15px;
margin-bottom: 15px;
object-fit: contain;
/* Oder spezifischer, z.B. nur oben und unten */
/* margin-top: 15px; */
/* margin-bottom: 15px; */
}
/* 1. Initialer Zustand (Bild ist noch 'geschlossen') */
.image-block img {
/* ... (andere Stile beibehalten) ... */
/* Startzustand: Bild ist vollständig verdeckt (Mitte) */
-webkit-clip-path: inset(50% 50% 50% 50%);
clip-path: inset(50% 50% 50% 50%);
/* 🔄 KORREKTUR: Transition-Verzögerung auf 0.3s gesetzt */
/* Fügt eine Transition hinzu, damit die Animation beim Verlassen
des :hover-Zustands sanft zurückkehrt. */
transition: clip-path 0s linear 0.3s;
-webkit-transition: -webkit-clip-path 0s linear 0.3s;
}
/* Wichtig: Kein animation-Eintrag hier! */
/* Startzustand: Bild ist vollständig verdeckt (Mitte) */
-webkit-clip-path: inset(50% 50% 50% 50%);
clip-path: inset(50% 50% 50% 50%);
/* Fügt eine Transition hinzu, damit die Animation beim Verlassen
des :hover-Zustands sanft zurückkehrt (optional, aber empfohlen).
Wir verwenden clip-path, um es animierbar zu machen. */
transition: clip-path 0s linear 4s;
-webkit-transition: -webkit-clip-path 0s linear 4s;
}
/* 2. Zustand beim Hover (Animation startet) */
/* Die Animation wird ausgelöst, wenn der Benutzer über den Elter-Container (.image-block) fährt. */
.image-block:hover img {
/* Animation starten, wenn gehovert wird */
animation: open-from-center 1.5s ease-out forwards;
/* NEU: Zeitverzögerung von 4 Sekunden hinzufügen! */
animation-delay: 0.3s
/* Korrektur des Übergangs für den Hover-Zustand, damit
keine Transition-Verzögerung angewendet wird, wenn die
Animation startet. */
transition: none;
}
/* 3. Definition der Animation (bleibt unverändert) */
@keyframes open-from-center {
0% {
-webkit-clip-path: inset(50% 50% 50% 50%);
clip-path: inset(50% 50% 50% 50%);
}
/* Endzustand: Bild vollständig sichtbar */
100% {
-webkit-clip-path: inset(0% 0% 0% 0%);
clip-path: inset(0% 0% 0% 0%);
}
}