Skip to content

Commit 683a12c

Browse files
fix: adjust mobile screen styling
1 parent e65a106 commit 683a12c

1 file changed

Lines changed: 48 additions & 16 deletions

File tree

src/content/index.md

Lines changed: 48 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -106,22 +106,54 @@ tags:
106106

107107
/* Responsive stacking */
108108
@media (max-width: 700px) {
109-
table, thead, tbody, th, td, tr {
110-
display: block;
111-
width: 100%;
112-
}
113-
114-
th {
115-
display: none;
116-
}
117-
118-
td {
119-
border: none;
120-
border-bottom: 1px solid #ddd;
121-
margin-bottom: 1em;
122-
}
123-
124-
}
109+
table {
110+
width: 100%;
111+
}
112+
113+
table, thead, tbody, th, td, tr {
114+
display: block;
115+
}
116+
117+
th {
118+
display: none;
119+
}
120+
121+
tr {
122+
margin-bottom: 2em;
123+
border: none;
124+
}
125+
126+
td {
127+
border: none;
128+
padding: 0;
129+
}
130+
131+
/* Poster cell */
132+
td:first-child img {
133+
width: 100%;
134+
border-radius: 10px;
135+
margin-bottom: 1em;
136+
}
137+
138+
/* Text cell */
139+
td:nth-child(2) {
140+
padding: 0 0.5em;
141+
}
142+
143+
/* Tags wrap nicely */
144+
.tags {
145+
gap: 0.4em;
146+
margin-bottom: 0.6em;
147+
}
148+
149+
/* Make rows feel like cards */
150+
tr {
151+
background: #111;
152+
padding: 1em;
153+
border-radius: 12px;
154+
}
155+
}
156+
125157
</style>
126158
<div class="table-container">
127159
<table>

0 commit comments

Comments
 (0)