oskarnr1 commited on
Commit
4035065
·
verified ·
1 Parent(s): 7b4e2da

Currently, when clicking on one of the buttons, games or art, the other column hides correctly, but the visible column stays in its original half, leaving empty space beside it. i want that the column that is visable, fills the section width

Browse files
Files changed (1) hide show
  1. style.css +21 -0
style.css CHANGED
@@ -1,8 +1,29 @@
 
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;
 
1
+
2
  body {
3
  padding: 2rem;
4
  font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
5
  }
6
 
7
+ /* Projects section styles */
8
+ #works .grid {
9
+ display: grid;
10
+ grid-template-columns: 1fr;
11
+ gap: 2rem;
12
+ }
13
+
14
+ #works .grid.full-width {
15
+ grid-template-columns: 1fr;
16
+ }
17
+
18
+ @media (min-width: 768px) {
19
+ #works .grid {
20
+ grid-template-columns: repeat(2, 1fr);
21
+ }
22
+
23
+ #works .grid.full-width {
24
+ grid-template-columns: 1fr;
25
+ }
26
+ }
27
  h1 {
28
  font-size: 16px;
29
  margin-top: 0;