vr4leq0h5: Add the tablet layout between 761 and 1000px
This commit is contained in:
+19
-2
@@ -31,6 +31,23 @@
|
|||||||
min-height: 0;
|
min-height: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* 761px to 1000px: the feed spans the full height on the left; the account and
|
||||||
|
search panels stack over the featured and trending panels on the right. */
|
||||||
|
@container app (max-width: 1000px) and (min-width: 761px) {
|
||||||
|
.bento {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: minmax(0, 1fr) 300px;
|
||||||
|
grid-template-rows: auto minmax(0, 1fr);
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
.bento-center { grid-column: 1; grid-row: 1 / 3; height: 100%; }
|
||||||
|
.bento-left { grid-column: 2; grid-row: 1; }
|
||||||
|
.bento-right { grid-column: 2; grid-row: 2; overflow-y: auto; overscroll-behavior: contain; }
|
||||||
|
.bento-left .expert-search { flex: 0 1 auto; max-height: 250px; }
|
||||||
|
.bento-right .rail-trending { flex: 1 0 200px; }
|
||||||
|
.bento .account-live { display: none; }
|
||||||
|
}
|
||||||
|
|
||||||
/* 1001px to 1180px: three columns, narrower sides. */
|
/* 1001px to 1180px: three columns, narrower sides. */
|
||||||
@container app (min-width: 1001px) {
|
@container app (min-width: 1001px) {
|
||||||
.bento {
|
.bento {
|
||||||
@@ -103,8 +120,8 @@
|
|||||||
.feed .composer { margin: 0 14px 4px; }
|
.feed .composer { margin: 0 14px 4px; }
|
||||||
.feed .feed-list { display: flex; flex-direction: column; gap: 16px; padding: 16px 14px 32px; }
|
.feed .feed-list { display: flex; flex-direction: column; gap: 16px; padding: 16px 14px 32px; }
|
||||||
|
|
||||||
/* Single-column fallback (below 1001px): lists get a usable height. */
|
/* Single-column fallback (760px and below, until the Mobile milestone): lists get a usable height. */
|
||||||
@container app (max-width: 1000px) {
|
@container app (max-width: 760px) {
|
||||||
.bento-col .panel { flex: 0 0 auto; }
|
.bento-col .panel { flex: 0 0 auto; }
|
||||||
.bento-col .panel-scroll { flex: 0 0 auto; max-height: 70vh; }
|
.bento-col .panel-scroll { flex: 0 0 auto; max-height: 70vh; }
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user