diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-07-07 21:41:36 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-07-07 21:41:36 +0200 |
| commit | ae29567bea75b28bd3f5655b6bf3e6444d51eb38 (patch) | |
| tree | 7ff4867a5da86588e913922bad9640c822745661 /app/views | |
| parent | 4be318cf508f164e3cac1ee3854a0497c8223275 (diff) | |
Reorganize admin.css and overhaul button/link/flash visual hierarchy
Sorts rules by hierarchy (base -> layout -> navigation -> buttons ->
tables -> forms -> components), consolidates three duplicated media
query breakpoints into one each, and adds section comments. Bundled
with this reorganization, since the file was rewritten wholesale:
- form.button_to.state_changing: new tinted-pill variant (blue) for
Publish/Restore/Unlock/Revoke, matching .destructive's pattern
- form.button_to.destructive: now a tinted pill at rest instead of
plain colored text, consistent padding at rest and on hover
- Scoped wavy-underline link-visibility fix for #page_editor,
table.node_table, table.assets_table, table.events_table,
table.user_table, .add_child_links, and the dashboard draft list
- #flash decoupled from the page's structural nav-to-content spacing
(.admin_content_spacer), which the flash div was silently providing
as a side effect whenever it rendered
Diffstat (limited to 'app/views')
| -rw-r--r-- | app/views/layouts/admin.html.erb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/views/layouts/admin.html.erb b/app/views/layouts/admin.html.erb index a7ce68a..340eaf2 100644 --- a/app/views/layouts/admin.html.erb +++ b/app/views/layouts/admin.html.erb | |||
| @@ -29,13 +29,15 @@ | |||
| 29 | <%= yield :subnavigation %> | 29 | <%= yield :subnavigation %> |
| 30 | </div> | 30 | </div> |
| 31 | </div> | 31 | </div> |
| 32 | <div style="clear: both;"></div> | 32 | <div class="admin_content_spacer"></div> |
| 33 | <% if flash[:notice].present? || flash[:error].present? %> | ||
| 33 | <div id="flash"> | 34 | <div id="flash"> |
| 34 | <%= flash[:notice] %> | 35 | <%= flash[:notice] %> |
| 35 | <% if flash[:error] %> | 36 | <% if flash[:error] %> |
| 36 | <span id="flash_error"><%= flash[:error] %></span> | 37 | <span id="flash_error"><%= flash[:error] %></span> |
| 37 | <% end %> | 38 | <% end %> |
| 38 | </div> | 39 | </div> |
| 40 | <% end %> | ||
| 39 | <div id="content"> | 41 | <div id="content"> |
| 40 | <%= yield %> | 42 | <%= yield %> |
| 41 | </div> | 43 | </div> |
