Repository navigation
Expand file tree
/
Copy pathstyles.css
More file actions
328 lines (287 loc) · 8.74 KB
/
Copy pathstyles.css
File metadata and controls
328 lines (287 loc) · 8.74 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
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
/* styles.css - Complete file */
/* Global box-sizing fix */
*, *::before, *::after {
box-sizing: border-box;
}
html {
overflow-x: hidden;
}
/* Body flexbox structure for sticky footer, but no gaps */
body {
overflow-x: hidden;
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f0f0f0;
background-image: url('https://raw.githubusercontent.com/Kruwed/kruwed.github.io/refs/heads/master/images/image(1).jpg'); /* Path to your background image */
background-size: cover; /* Cover the entire background */
background-attachment: fixed; /* Fixed background */
background-position: center center; /* Centers the background image */
min-height: 100vh; /* Ensure the body takes at least the full viewport height */
display: flex;
flex-direction: column; /* Arrange content vertically */
}
/* Header banner with buttons - REDUCED HEIGHT to match footer */
.header-banner {
width: 100%;
height: 80px; /* Changed from 120px to 80px to match footer */
position: relative; /* For positioning the pseudo-element */
display: flex;
align-items: center;
justify-content: center;
overflow: hidden; /* Ensures the gradient overlay stays within bounds */
}
/* Background image for header */
.header-banner::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image: url('https://raw.githubusercontent.com/Kruwed/kruwed.github.io/refs/heads/master/images/image.png');
background-repeat: repeat-x;
background-size: auto 100%;
z-index: -2; /* Behind the gradient */
}
/* Gradient overlay for header */
.header-banner::after {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 15%, rgba(0, 0, 0, 0) 85%, rgba(0, 0, 0, 1) 100%);
z-index: -1; /* Above the background image, below the content */
}
/* Header buttons styling */
.header-buttons {
display: flex;
gap: 20px; /* Space between buttons */
position: relative;
z-index: 1; /* Ensure buttons appear above the gradient */
}
/* Header buttons styling with darker background */
.header-button {
background-color: rgba(25, 25, 25, 0.9); /* Darker background (was rgba(51, 51, 51, 0.8)) */
color: white;
padding: 10px 20px;
border-radius: 5px;
text-decoration: none;
font-weight: bold;
transition: background-color 0.3s;
}
.header-button:hover {
background-color: rgba(0, 0, 0, 1); /* Completely black on hover (was rgba(17, 17, 17, 0.9)) */
text-decoration: none;
}
/* Hide the original nav */
nav {
display: none;
}
h1 {
color: #000; /* Black color for h1 */
text-align: center;
}
h2 {
color: #333; /* Grey color for h2 */
text-align: center;
}
.content {
max-width: 1000px; /* Maximum width of the content */
margin: 0 auto; /* Removed top/bottom margin, keep horizontal centering */
padding: 20px; /* Padding inside the content area */
background-color: white; /* Background color of the content (solid white) */
border-left: 1px solid #ccc; /* Left border */
border-right: 1px solid #ccc; /* Right border */
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Optional: Add some shadow for depth */
text-align: center; /* Center all text */
word-wrap: break-word; /* Ensures long strings wrap */
overflow-wrap: break-word; /* Modern alternative to word-wrap */
flex: 1; /* This allows the content to grow and push the footer down */
}
.content img {
display: block; /* Make images block elements */
margin-left: auto; /* Center images horizontally */
margin-right: auto; /* Center images horizontally */
max-width: 100%; /* Make sure images don't overflow their container */
height: auto; /* Maintain aspect ratio */
}
/* Make code blocks and strings wrap */
code, i {
white-space: normal;
word-wrap: break-word;
overflow-wrap: break-word;
display: inline-block;
max-width: 100%;
}
/* Footer styling */
footer {
background-color: transparent;
width: 100%;
height: 80px; /* Height of footer */
position: relative; /* For positioning the pseudo-element */
display: flex;
align-items: center;
justify-content: center;
margin-top: 0; /* Removed margin top */
overflow: hidden; /* Ensures the gradient overlay stays within bounds */
}
/* Background image for footer */
footer::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image: url('https://raw.githubusercontent.com/Kruwed/kruwed.github.io/refs/heads/master/images/flip.png');
background-repeat: repeat-x;
background-size: auto 100%;
z-index: -2; /* Behind the gradient */
}
/* Gradient overlay for footer */
footer::after {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 15%, rgba(0, 0, 0, 0) 85%, rgba(0, 0, 0, 1) 100%);
z-index: -1; /* Above the background image, below the content */
}
/* Hide the footer image since we're using background-image */
.footer-image {
display: none;
}
/* Footer buttons styling */
.footer-buttons {
display: flex;
gap: 20px; /* Space between buttons */
position: relative;
z-index: 1; /* Ensure buttons appear above the gradient */
}
/* Footer buttons styling with darker background */
.footer-button {
background-color: rgba(25, 25, 25, 0.9); /* Darker background (was rgba(51, 51, 51, 0.8)) */
color: white;
padding: 8px 16px;
border-radius: 5px;
text-decoration: none;
font-weight: bold;
transition: background-color 0.3s;
}
.footer-button:hover {
background-color: rgba(0, 0, 0, 1); /* Completely black on hover (was rgba(17, 17, 17, 0.9)) */
text-decoration: none;
}
button {
padding: 10px 20px;
font-size: 16px;
cursor: pointer;
}
code {
background-color: #f4f4f4;
border: 1px solid #ccc;
padding: 5px;
border-radius: 3px;
}
a {
color: inherit; /* Inherit the color from the parent element */
text-decoration: underline; /* Add underline to links */
}
a:hover {
text-decoration: none; /* Remove underline on hover */
}
p {
text-align: left;
}
/* Center specific text elements */
.center-text {
text-align: center;
}
/* Modified quote styling to allow inline attribution */
p i {
display: inline; /* Changed from block to inline */
text-align: center;
margin: 0; /* Removed margin to prevent line breaks */
}
/* For specifically the quote paragraph on the guide page */
.quote-container {
text-align: center;
margin: 1em 0;
}
/* Responsive video container - NEW */
.video-container {
position: relative;
padding-bottom: 56.25%; /* 16:9 aspect ratio */
height: 0;
overflow: hidden;
max-width: 100%;
margin: 20px auto;
}
.video-container iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
/* Responsive image container - FIXED */
.image-container {
max-width: 100%;
margin: 20px auto;
text-align: center; /* Center the image within container */
}
.image-container img {
display: block;
margin: 0 auto; /* Center horizontally */
max-width: 100%; /* Make sure images don't exceed container width */
width: auto; /* Override the width: 100% that was causing stretching */
height: auto; /* Maintain aspect ratio */
object-fit: contain; /* Ensure the entire image fits without distortion */
}
/* Center iframes (videos) */
.content iframe {
display: block;
margin-left: auto;
margin-right: auto;
max-width: 100%; /* Ensure iframe doesn't exceed container width */
}
/* Responsive adjustments for smaller screens */
@media screen and (max-width: 768px) {
/* Keep buttons horizontal, adjust size and padding instead */
.header-buttons, .footer-buttons {
flex-direction: row;
gap: 10px;
}
.header-button, .footer-button {
padding: 8px 12px; /* Smaller padding on mobile */
font-size: 14px; /* Smaller font size on mobile */
}
.content {
padding: 10px;
width: 100%;
max-width: 100%;
overflow-x: hidden; /* Prevent horizontal scrolling */
}
/* Ensure images fit on mobile */
.content img,
.image-container img {
max-width: 100%;
width: auto;
height: auto;
}
/* Additional mobile-specific fixes */
code {
font-size: 14px; /* Slightly smaller font for code blocks only */
max-width: 100%;
}
/* Make italics text normal size */
i {
font-size: inherit; /* Inherit font size from parent element */
max-width: 100%;
}
}