Spaces:
Running
Running
Rename style.css to static/css/style.css
Browse files- static/css/style.css +97 -0
- style.css +0 -28
static/css/style.css
ADDED
@@ -0,0 +1,97 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/* static/css/style.css */
|
2 |
+
|
3 |
+
/* CSS Reset */
|
4 |
+
* {
|
5 |
+
box-sizing: border-box; /* Ensures padding and border are included in element's total width and height */
|
6 |
+
margin: 0; /* Resets margin for all elements */
|
7 |
+
padding: 0; /* Resets padding for all elements */
|
8 |
+
}
|
9 |
+
|
10 |
+
/* CSS Variables for consistent theming */
|
11 |
+
:root {
|
12 |
+
--primary-bg: #f9f9f9;
|
13 |
+
--header-footer-bg: #333;
|
14 |
+
--text-color: #fff;
|
15 |
+
--pre-bg: #eee;
|
16 |
+
}
|
17 |
+
|
18 |
+
/* Body styling */
|
19 |
+
body {
|
20 |
+
font-family: Arial, sans-serif;
|
21 |
+
background-color: var(--primary-bg);
|
22 |
+
line-height: 1.6;
|
23 |
+
}
|
24 |
+
|
25 |
+
/* Header styling */
|
26 |
+
header {
|
27 |
+
background-color: var(--header-footer-bg);
|
28 |
+
color: var(--text-color);
|
29 |
+
padding: 1em 0;
|
30 |
+
text-align: center;
|
31 |
+
}
|
32 |
+
|
33 |
+
header h1 {
|
34 |
+
margin: 0; /* Ensures no margin for the header title */
|
35 |
+
}
|
36 |
+
|
37 |
+
/* Navigation styling */
|
38 |
+
nav ul {
|
39 |
+
list-style: none; /* Removes default list styling */
|
40 |
+
display: flex; /* Uses flexbox for horizontal layout */
|
41 |
+
justify-content: center; /* Centers the navigation items */
|
42 |
+
}
|
43 |
+
|
44 |
+
nav ul li {
|
45 |
+
margin: 0 1em; /* Adds space between navigation items */
|
46 |
+
}
|
47 |
+
|
48 |
+
nav ul li a {
|
49 |
+
color: var(--text-color);
|
50 |
+
text-decoration: none; /* Removes underline from links */
|
51 |
+
}
|
52 |
+
|
53 |
+
nav ul li a:hover {
|
54 |
+
text-decoration: underline; /* Underlines links on hover */
|
55 |
+
}
|
56 |
+
|
57 |
+
/* Main content styling */
|
58 |
+
main {
|
59 |
+
padding: 1em 2em; /* Adds padding around main content */
|
60 |
+
}
|
61 |
+
|
62 |
+
section {
|
63 |
+
margin-bottom: 2em; /* Adds space between sections */
|
64 |
+
}
|
65 |
+
|
66 |
+
/* Preformatted text styling */
|
67 |
+
pre {
|
68 |
+
background: var(--pre-bg);
|
69 |
+
padding: 1em; /* Adds padding for better readability */
|
70 |
+
overflow-x: auto; /* Allows horizontal scrolling for overflow content */
|
71 |
+
}
|
72 |
+
|
73 |
+
/* Footer styling */
|
74 |
+
footer {
|
75 |
+
background-color: var(--header-footer-bg);
|
76 |
+
color: var(--text-color);
|
77 |
+
text-align: center;
|
78 |
+
padding: 1em 0; /* Adds padding for footer */
|
79 |
+
position: fixed; /* Keeps footer at the bottom */
|
80 |
+
width: 100%; /* Ensures footer spans the full width */
|
81 |
+
bottom: 0; /* Positions footer at the bottom */
|
82 |
+
}
|
83 |
+
|
84 |
+
/* Media Queries for responsive design */
|
85 |
+
@media (max-width: 768px) {
|
86 |
+
nav ul {
|
87 |
+
flex-direction: column; /* Stacks navigation items vertically on smaller screens */
|
88 |
+
}
|
89 |
+
|
90 |
+
nav ul li {
|
91 |
+
margin: 0.5em 0; /* Adjusts margin for vertical layout */
|
92 |
+
}
|
93 |
+
|
94 |
+
main {
|
95 |
+
padding: 1em; /* Reduces padding for smaller screens */
|
96 |
+
}
|
97 |
+
}
|
style.css
DELETED
@@ -1,28 +0,0 @@
|
|
1 |
-
body {
|
2 |
-
padding: 2rem;
|
3 |
-
font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
|
4 |
-
}
|
5 |
-
|
6 |
-
h1 {
|
7 |
-
font-size: 16px;
|
8 |
-
margin-top: 0;
|
9 |
-
}
|
10 |
-
|
11 |
-
p {
|
12 |
-
color: rgb(107, 114, 128);
|
13 |
-
font-size: 15px;
|
14 |
-
margin-bottom: 10px;
|
15 |
-
margin-top: 5px;
|
16 |
-
}
|
17 |
-
|
18 |
-
.card {
|
19 |
-
max-width: 620px;
|
20 |
-
margin: 0 auto;
|
21 |
-
padding: 16px;
|
22 |
-
border: 1px solid lightgray;
|
23 |
-
border-radius: 16px;
|
24 |
-
}
|
25 |
-
|
26 |
-
.card p:last-child {
|
27 |
-
margin-bottom: 0;
|
28 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|