ndarville / pony-forum

A modern alternative to ancient forum CMSes like vBulletin and PHPBB in Python on Django. (Alpha stage.) (NB: dotCloud have since removed their free Sandbox tier.)
http://pony-forum.com
26 stars 7 forks source link

Adaptive mobile CSS #31

Closed ndarville closed 12 years ago

ndarville commented 12 years ago

Articles:

  1. http://twitter.github.com/bootstrap/scaffolding.html
  2. http://msdn.microsoft.com/en-us/magazine/hh653584.aspx
  3. http://css-tricks.com/snippets/css/media-queries-for-standard-devices/
  4. http://broadcast.oreilly.com/2010/04/using-css-media-queries-ipad.html
  5. https://developer.mozilla.org/en/Mobile/Viewport_meta_tag

Books:

  1. http://www.abookapart.com/products/responsive-web-design
  2. http://easy-readers.net/books/adaptive-web-design/
  3. http://www.abookapart.com/products/mobile-first

    iPhone

Navigation:

Threadbar:

Navigation:

@media only screen
and (min-device-width: 768px)
and (max-device-width: 1024px)
and (orientation: portrait) {
    ...
}

Landscape

As-is

@media only screen
and (min-device-width: 768px)
and (max-device-width: 1024px)
and (orientation: landscape) {
    ...
}

Retina

@media
only screen and (-webkit-min-device-pixel-ratio: 1.5),
only screen and (min-device-pixel-ratio: 1.5) {
    ...
}

The adaptations of the navigation bar (and icons) will mess up page.html-based, home, and category templates, though.

Problems

iOS Behaviour


page.html Lists and user.html


Margins in add View

.op Too Narrow

.left-buttons off to the right on iPhone

ndarville commented 12 years ago

Get bigger, touch-friendly pagination buttons inspired by Twitter Bootstrap at some point.

ndarville commented 12 years ago

Decreased font-size on iPhone and decreased text in .op/.user field even more while increasing their margin in 808dd9a42a0e1eea95d9d8ba32d67f2a094783a7.