Skip to content

Commit ccb3c25

Browse files
committed
Homepage: Made much nicer at ipad-like widths
Updated default homepage layout to be much nicer at ipad-like widths by switching to css-column approach at those breakpoints. Also neated top actions by switching to simpler flexbox layout. Fixes #4596
1 parent 2e22723 commit ccb3c25

File tree

3 files changed

+17
-12
lines changed

3 files changed

+17
-12
lines changed

resources/sass/_blocks.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
@include lightDark(background-color, #FFF, #222);
77
box-shadow: $bs-card;
88
border-radius: 3px;
9+
break-inside: avoid;
910
.body, p.empty-text {
1011
padding: $-m;
1112
}

resources/sass/styles.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,14 @@ $loadingSize: 10px;
184184
z-index: 150;
185185
}
186186

187+
@include between($s, $m) {
188+
#home-default > .grid.third {
189+
display: block;
190+
columns: 2;
191+
column-gap: $-l !important;
192+
}
193+
}
194+
187195
.list-sort-container {
188196
display: inline-block;
189197
form {

resources/views/home/default.blade.php

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,19 @@
22

33
@section('body')
44

5-
<div class="container px-xl py-s">
6-
<div class="grid half">
7-
<div>
8-
<div class="icon-list inline block">
9-
@include('home.parts.expand-toggle', ['classes' => 'text-muted text-link', 'target' => '.entity-list.compact .entity-item-snippet', 'key' => 'home-details'])
10-
</div>
11-
</div>
12-
<div class="text-m-right">
13-
<div class="icon-list inline block">
14-
@include('common.dark-mode-toggle', ['classes' => 'text-muted icon-list-item text-link'])
15-
</div>
5+
<div class="container px-xl py-s flex-container-row gap-l wrap justify-space-between">
6+
<div class="icon-list inline block">
7+
@include('home.parts.expand-toggle', ['classes' => 'text-muted text-link', 'target' => '.entity-list.compact .entity-item-snippet', 'key' => 'home-details'])
8+
</div>
9+
<div>
10+
<div class="icon-list inline block">
11+
@include('common.dark-mode-toggle', ['classes' => 'text-muted icon-list-item text-link'])
1612
</div>
1713
</div>
1814
</div>
1915

2016
<div class="container" id="home-default">
21-
<div class="grid third gap-xxl no-row-gap" >
17+
<div class="grid third gap-x-xxl no-row-gap">
2218
<div>
2319
@if(count($draftPages) > 0)
2420
<div id="recent-drafts" class="card mb-xl">

0 commit comments

Comments
 (0)