impress/app/assets/stylesheets
Emi Matchu be0faaa36e Improve top nav support on mobile for responsive design pages
Before this change, pages that opt in with `use_responsive_design`
would often have the top nav be real cluttered for logged-in users. (I
think I happened to first test this responsive design without being
logged in on my dev box, oops!) Because the home link and `#userbar`
were absolutely positioned on the page, they would frequently overlap.

Here, I stop doing our old tricks to make the top nav load last on the
page. (This was to get "main content" loading faster, which I think is
a. not as relevant today with more commonly faster connections, and b.
was a bit naive to think that it'd be helpful to have to wait a long
time to _navigate_ if a page is unexpectedly large.)

These tricks used to leave some padding at the top of the `#container`,
which these elements would then visually fill via `position: absolute`
once they load.

Next, I update the CSS (for the responsive design pages only) to use
the new `#main-nav` container to lay them out in Flexbox: all in one
row if possible, or wrapped if needed.

Some designs hide stuff like this into a hamburger menu or such when
the screen gets small. I haven't done that here! No specific reason,
I'm just not sold that it's that much better, or worth the trouble.

I tested this on the following combinations:
1. Logged out, homepage
2. Logged in, homepage
3. Logged out, `/items`
4. Logged in, `/items`
5. Logged out, `/items/89487-Dyeworks-Purple-Haunted-Sky-Background`
6. Logged in, `/items/89487-Dyeworks-Purple-Haunted-Sky-Background`

Hope it's solid! 🤞
2024-10-05 17:52:38 -07:00
..
alt_styles Use full name when showing Alt Styles in the list 2024-09-30 17:41:21 -07:00
application Add extra support info to Rainbow Pool pet types 2024-10-04 19:24:40 -07:00
auth_users Update some stylesheets to use new page_stylesheet_link_tag helper 2024-05-14 16:10:09 -07:00
closet_hangers Replace closet_hangers/petpage.js with modern CSS 2024-09-20 19:27:39 -07:00
closet_lists Add trade warning to closet list form 2024-04-16 16:53:30 -07:00
contributions Upgrade to latest Sass and Sprockets 2023-10-23 19:05:09 -07:00
devise/sessions Update some stylesheets to use new page_stylesheet_link_tag helper 2024-05-14 16:10:09 -07:00
fundraising Update some stylesheets to use new page_stylesheet_link_tag helper 2024-05-14 16:10:09 -07:00
item_trades Extract all the item pages' stylesheets into their own CSS files 2024-09-09 18:48:08 -07:00
items WIP: Outfit viewers on pet type Rainbow Pool page 2024-09-26 18:20:05 -07:00
layouts Extract all the item pages' stylesheets into their own CSS files 2024-09-09 18:48:08 -07:00
neopets_page_import_tasks Upgrade to latest Sass and Sprockets 2023-10-23 19:05:09 -07:00
outfits Remove some now-unused homepage styles 2024-09-09 21:35:06 -07:00
partials Remove Noto fonts and just use system-ui 2024-09-13 20:07:12 -07:00
pet_states Use radio buttons for poses in Rainbow Pool form, instead of dropdown 2024-09-27 22:34:52 -07:00
pet_types Paginate Alt Styles, sort by most recent first-seen date 2024-09-30 17:35:18 -07:00
pets Remove needed items form on Modeling Hub 2024-09-09 18:56:39 -07:00
swf_assets Fix SassC::SyntaxError when compiling perfectly valid CSS files 2024-09-09 19:59:43 -07:00
users Upgrade to latest Sass and Sprockets 2023-10-23 19:05:09 -07:00
_layout.sass Add edit form for Alt Styles, for Support staff only 2024-09-30 17:21:45 -07:00
_responsive.sass Improve top nav support on mobile for responsive design pages 2024-10-05 17:52:38 -07:00
application.css.sass Add filter form to alt styles page 2024-09-30 16:06:22 -07:00
fonts.css.erb Remove Noto fonts and just use system-ui 2024-09-13 20:07:12 -07:00