openaustralia / righttoknow

Theme for, and issues specific to, Right To Know.
https://www.righttoknow.org.au/
MIT License
21 stars 14 forks source link

Update the CSS to be more "Mobile Friendly" #396

Closed benrfairless closed 9 years ago

benrfairless commented 9 years ago

Over 40% of our users access RTK via mobile devices. We should make this experience better for them by changing the CSS to be more mobile friendly.

equivalentideas commented 9 years ago

Just a note here that https://www.whatdotheyknow.com/ is using responsive design techniques to provide a better experience on small screens.

henare commented 9 years ago

Assigned to @equivalentideas to get our theme working with Alaveteli's new responsive styling without changing the design.

equivalentideas commented 9 years ago

Ok, so flicking RESPONSIVE_STYLING: to true in general.yml , makes the layout flexible, but it stops loading custom.css so it breaks some of the layout and all the type and colour styles: screen shot 2015-03-02 at 4 04 26 pm

I'm going to look at how custom.css gets loaded and make that stick around for starters.

equivalentideas commented 9 years ago

As a test I added *= require custom to responsive/application.css to see what happens when you combine our custom css with the responsive css:

screen shot 2015-03-02 at 4 32 23 pm screen shot 2015-03-02 at 4 33 58 pm

Quite a bit of it is messed up.

Next step is to work out how to add the custom css through our theme rather than changing Alavateli.

equivalentideas commented 9 years ago

Following the instructions at http://alaveteli.org/docs/customising/themes/#changing-other-styling I replaced the theme responsive/custom.scss.

equivalentideas commented 9 years ago

Major difference areas that need fixing are:

Test on stagin

Next steps

equivalentideas commented 9 years ago

Another component to this is that the header and footer are different html partials than the ones currently used in our theme.

The immediate standout is the search bar that comes before the logo and header nav in the static partials, is at the bottom of the nav menu in the responsive partials.

equivalentideas commented 9 years ago

After testing this out on my phone. These need to be tested on staging, something weird happening here that I can't replicate using local emulator:

update: after testing this on staging the date picker and image rendering is fine.

~~* Date picker is not activated on iPhone5 *Fix image rendering problems on iPhone 5:~~ 2015-03-05 16 10 06

equivalentideas commented 9 years ago

The signup form needs to flick back to horizontal layout on wider screens:

Current responsive: screen shot 2015-03-12 at 11 06 25 am

Right To Know: screen shot 2015-03-12 at 11 06 33 am

equivalentideas commented 9 years ago

Much closer now:

Current responsive: screen shot 2015-03-12 at 12 34 38 pm

Right To Know: screen shot 2015-03-12 at 12 34 46 pm

equivalentideas commented 9 years ago

We're deploying this to staging and I'm going to break it out into individual issues.

equivalentideas commented 9 years ago

Closed by merging https://github.com/openaustralia/righttoknow/issues/452