Omnibus commited on
Commit
f54c12d
1 Parent(s): ceaaf8c

Update style.css

Browse files
Files changed (1) hide show
  1. style.css +63 -19
style.css CHANGED
@@ -1,28 +1,72 @@
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
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ }