Skip to content

Commit a15549a

Browse files
Game Grid Upadate
- Changed CSS file name for the game grid - Dynamically changes the number of games depending on the size of the users screen - increased the size of images - games will now properly center themselves within the center of the page known issue - messes up the setting page as it uses the same file (plan on making the settings its own grid CSS)
1 parent 286e4e9 commit a15549a

4 files changed

Lines changed: 59 additions & 100 deletions

File tree

css/blogDexStyle.css

Lines changed: 0 additions & 98 deletions
This file was deleted.

css/gameGrid.css

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
* {
2+
box-sizing: border-box;
3+
}
4+
5+
.row {
6+
display: grid;
7+
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
8+
gap: 3px;
9+
}
10+
11+
.row > * {
12+
max-width: 300px; /* must be same px count as minmax */
13+
justify-self: center;
14+
}
15+
16+
.bodyMain {
17+
background: opacity 1;
18+
padding: 20px;
19+
font-family: Arial;
20+
}
21+
22+
.main {
23+
max-width: 100%;
24+
margin: auto;
25+
padding: 0 20px;
26+
}
27+
28+
.content {
29+
color: white;
30+
padding: 5px;
31+
border-radius: 5px;
32+
}
33+
34+
.content img {
35+
height: 180px;
36+
}
37+
38+
.content h4 {
39+
overflow: hidden;
40+
text-overflow: ellipsis;
41+
white-space: nowrap;
42+
word-break: break-word;
43+
}
44+
45+
.content:hover {
46+
background: rgba(59, 59, 59, 0.3);
47+
backdrop-filter: blur(2px);
48+
}
49+
50+
.content:active {
51+
background: rgba(92, 92, 92, 0.3);
52+
backdrop-filter: blur(2px);
53+
}
54+
55+
.show {
56+
display: block;
57+
}

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css">
99
<link rel="stylesheet" href="css/style.css">
1010
<link rel="stylesheet" href="css/index.css">
11-
<link rel="stylesheet" href="css/blogDexStyle.css">
11+
<link rel="stylesheet" href="css/gameGrid.css">
1212
<link rel="stylesheet" href="css/seasonal.css">
1313
<link rel='icon' href="img/favicon-32x32.png">
1414
<meta name="description"

pages/settings.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css">
77
<link rel="stylesheet" href="../css/index.css">
88
<link rel="stylesheet" href="../css/style.css">
9-
<link rel="stylesheet" href="../css/blogDexStyle.css">
9+
<link rel="stylesheet" href="../css/gameGrid.css">
1010
<link rel="stylesheet" href="../css/seasonal.css">
1111
<link rel='icon' href="../img/favicon-32x32.png">
1212
</head>

0 commit comments

Comments
 (0)