Before you ask please READ THIS

Add responsive css styles

edited August 2013 in Hypershot Posts: 22
Hey!

Thank´s again for all the good work you guys make.

When viewing Hypershot in a smaller device like iPhone etc, the fonts etc does not scale. Is there a way to add a responsive css-styles for typography etc depending on the same rules as the top menu does?
Post edited by pior on

Comments

  • AirAir
    Posts: 10,970
    Hello:-)

    Hypershot is responsive theme, so there are already responsive CSS rules. If you wish to affect font sizes of various elements you can do it in section(style.css line~3678) starting with:
    @media only screen and (max-width: 650px) {
    Just disable before compressed CSS in Advance menu.

    With regards.
  • edited August 2013 Posts: 22
    I´m using Hypershot child theme and I´ve disabled the compressed css option. I´m writing the new css:

    @media only screen and (max-width: 650px) {
    h1 {
    font-size: 26px; }
    }

    I can´t get it to overwrite the h1 in the original style.css?

    Edit: I got it working, Thank you Air! (made the changes in the main css, not the child-themes)



    Post edited by pior on
  • AirAir
    Posts: 10,970
    Great :-)

    Probably your selector was too weak. You would have to do it same power(with ID or class selector) or stronger. Maybe it was other issue, but doesn't matter now:-)

    With regards.
  • Posts: 22
    Thank´s, look´s real good now.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion