Spaces:
Running
Running
Update style.css
Browse files
style.css
CHANGED
|
@@ -1,28 +1,72 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
| 4 |
}
|
| 5 |
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
|
|
|
|
|
|
| 9 |
}
|
| 10 |
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
|
|
|
|
|
|
|
|
|
| 16 |
}
|
| 17 |
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
padding: 16px;
|
| 22 |
-
border: 1px solid lightgray;
|
| 23 |
-
border-radius: 16px;
|
| 24 |
}
|
| 25 |
|
| 26 |
-
.
|
| 27 |
-
|
|
|
|
|
|
|
| 28 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/* Basic Reset */
|
| 2 |
+
body, h1, p {
|
| 3 |
+
margin: 0;
|
| 4 |
+
padding: 0;
|
| 5 |
}
|
| 6 |
|
| 7 |
+
/* Styles for Header */
|
| 8 |
+
header {
|
| 9 |
+
padding: 2rem;
|
| 10 |
+
background-color: lightblue;
|
| 11 |
+
text-align: center;
|
| 12 |
}
|
| 13 |
|
| 14 |
+
/* Main Content Area */
|
| 15 |
+
main {
|
| 16 |
+
display: grid;
|
| 17 |
+
grid-template-columns: repeat(12, 1fr);
|
| 18 |
+
gap: 1rem;
|
| 19 |
+
max-width: 120rem;
|
| 20 |
+
margin: 0 auto;
|
| 21 |
+
padding: 2rem;
|
| 22 |
}
|
| 23 |
|
| 24 |
+
/* Post Section */
|
| 25 |
+
.posts {
|
| 26 |
+
grid-column: span 9;
|
|
|
|
|
|
|
|
|
|
| 27 |
}
|
| 28 |
|
| 29 |
+
.post {
|
| 30 |
+
background-color: lightsalmon;
|
| 31 |
+
padding: 1rem;
|
| 32 |
+
margin-bottom: 2rem;
|
| 33 |
}
|
| 34 |
+
|
| 35 |
+
.post time {
|
| 36 |
+
color: grey;
|
| 37 |
+
}
|
| 38 |
+
|
| 39 |
+
/* Sidebar Section */
|
| 40 |
+
.sidebar {
|
| 41 |
+
grid-column: span 3;
|
| 42 |
+
}
|
| 43 |
+
|
| 44 |
+
/* Footer */
|
| 45 |
+
footer {
|
| 46 |
+
grid-column: span 12;
|
| 47 |
+
padding: 1rem;
|
| 48 |
+
background-color: darkgray;
|
| 49 |
+
text-align: center;
|
| 50 |
+
}
|
| 51 |
+
|
| 52 |
+
/* Media Queries for Responsiveness */
|
| 53 |
+
@media only screen and (max-width: 768px) {
|
| 54 |
+
main {
|
| 55 |
+
grid-template-columns:repeat(6, 1fr);
|
| 56 |
+
}
|
| 57 |
+
.posts {
|
| 58 |
+
grid-column: span 4;
|
| 59 |
+
}
|
| 60 |
+
.sidebar {
|
| 61 |
+
grid-column: span 2;
|
| 62 |
+
}
|
| 63 |
+
}
|
| 64 |
+
|
| 65 |
+
@media only screen and (max-width: 500px) {
|
| 66 |
+
main {
|
| 67 |
+
grid-template-columns:1fr;
|
| 68 |
+
}
|
| 69 |
+
.posts, .sidebar {
|
| 70 |
+
grid-column: span 1;
|
| 71 |
+
}
|
| 72 |
+
}
|