Merge branch 'watchlist'
The search field on Roles takes the phone top bar while it is typed in, since a third tab left it a few letters wide. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
commit
b998f4c270
12 files changed
+464
-13
No files matched your search
+19
-1
@@ -1,6 +1,6 @@
|
||||
/* The whole stylesheet: the boilerplate's, with roledesk's palette in the
|
||||
* custom properties (a quiet UI face and newsdesk's teal signal colour), the
|
||||
* frame (a top bar of two tabs and a cog, the settings rail), roledesk's
|
||||
* frame (a top bar of three tabs and a cog, the settings rail), roledesk's
|
||||
* own pages, and at the bottom the phone: a width query for the layout and a
|
||||
* pointer query for the sizes, after newsdesk and health. No build step.
|
||||
*
|
||||
@@ -1340,3 +1340,21 @@ table.list select { padding: .25rem .4rem; }
|
||||
.affinity button { min-width: 2.75rem; }
|
||||
.check input { width: 1.25rem; height: 1.25rem; }
|
||||
}
|
||||
|
||||
/* Three tabs and the cog, at 390px: the phone block's padding and size leave
|
||||
the bar 37px too wide, and a nowrap bar that is too wide scrolls the whole
|
||||
page sideways. Tighter tabs, still touch-high (see the coarse block). */
|
||||
@media (max-width: 640px) {
|
||||
.top { gap: .4rem; }
|
||||
.top nav a { padding-inline: .25rem; font-size: .9rem; }
|
||||
.top nav a.icon { padding-inline: .55rem; }
|
||||
}
|
||||
/* On Roles the search field is what gives way, not the tabs: the nav keeps
|
||||
the width its tabs need and the field takes what is left. */
|
||||
@media (max-width: 640px) {
|
||||
.top:has(#search) nav { flex: 0 0 auto; }
|
||||
.top:has(#search) nav a:not(.icon) { padding-inline: .2rem; }
|
||||
/* Which leaves the field a few letters wide, so while it is typed in it
|
||||
takes the bar and the tabs step aside; they are back when it is left. */
|
||||
.top:has(#search:focus) nav a:not(.icon), .top:has(#search:focus) desk-queue { display: none; }
|
||||
}
|
||||
Reference in new issue
Block a user