Skip to content

Commit 2b05e62

Browse files
committed
fix: Changed layout to handle tablet sizes more cleanly
1 parent 9452b68 commit 2b05e62

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

assets/css/v2/style.css

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ nav {
204204

205205
.content-layout {
206206
display: grid;
207-
grid-template-columns: var(--text-content-width-iphone-13);
207+
grid-template-columns: var(--text-content-width-iphone-13) 1fr;
208208
}
209209

210210
.docs-container {
@@ -246,12 +246,13 @@ nav {
246246
}
247247

248248
.text-content {
249-
grid-column-start: 1;
249+
grid-column: 1 / -1;
250250
display: grid;
251+
grid-template-columns: var(--text-content-width-iphone-13) 1fr;
251252
}
252253

253254
.text-content > :not(.wide) {
254-
grid-column: 1;
255+
grid-column: 1 / -1;
255256
}
256257

257258
.text-content .wide {
@@ -265,9 +266,7 @@ nav {
265266
@media (min-width: 1185px) {
266267
.main-layout {
267268
display: grid;
268-
grid-template-columns: var(--sidebar-width) var(
269-
--text-content-width-iphone-13
270-
);
269+
grid-template-columns: var(--sidebar-width) 1fr;
271270
column-gap: var(--component-gap);
272271
}
273272

@@ -300,6 +299,10 @@ nav {
300299
column-gap: var(--component-gap);
301300
}
302301

302+
.text-content > :not(.wide) {
303+
grid-column: 1;
304+
}
305+
303306
.main-layout {
304307
display: grid;
305308
grid-template-columns: var(--sidebar-width) 1fr;

0 commit comments

Comments
 (0)