r/css • • 10h ago

Help My website for my first assignment of the course, i'm after feedback

Thumbnail dobu.makemysitelive.com
1 Upvotes

If you have time, check it out.

I need some negative/positive feedback for the user acceptance test section of my assignment. Thanks in advance!


r/css • • 9h ago

AI Assisted A phone layout checklist from adding mobile support to our web app (CSS + a tiny keyboard-height script, tested)

0 Upvotes

We're building an AI study tutor, and this week we gave its notebook a phone layout. These are the rules that mattered most. The CSS and a small script are in a Gist.

  • Text fields at 16px or more. iOS Safari zooms the page when you tap into anything smaller.
  • Touch targets around 44px.
  • viewport-fit=cover, then pad bottom bars with env(safe-area-inset-bottom) so the home indicator doesn't sit on top of your buttons.
  • Nothing important only on hover. Phones have no hover, so anything that appears on hover has to be always visible there.
  • A bar that follows the keyboard. The keyboard covers the page instead of shrinking it, so a small script reads visualViewport and keeps a --kb CSS variable equal to the keyboard height.
  • Menus as bottom sheets, not popovers.
  • Cut what a thumb can't do. We dropped drag-to-reorder, multi-select and the resizable split on phones and added Move up / Move down instead. Our block menu opens from a button rather than a long-press, because long-press fights text selection on iOS.

The Gist has the CSS, the script, six tests for it, and a demo page that checks itself at phone width: https://gist.github.com/c68ad12186343d94581403176200c077

Caveat: we've tested it in desktop Chrome at phone width, not on a real device yet.

The tutor we're building: https://www.aiadaptivetutor.com

What's on your own phone checklist that we're missing?


r/css • • 5h ago

Question How to choose color palette

1 Upvotes

I have just come across the light-dark() function and experimented with it. Now I realise color choice became limited, especially pairing light-dark part.

Does using light-dark scheme limit colour choice? I would love to know if there is any better scheme generator tool out there to experiment. I currently use colorffy.


r/css • • 6h ago

Question I've been learning SCSS for about 3 days. I'm trying to integrate a mixin from a partial I dedicated to media-query responsiveness. My media query styles aren't applying. I have a feeling it's because of how I'm calling the mixin. Could anyone see what's wrong with my code?

Thumbnail reddit.com
1 Upvotes