Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mobile first etc #317

Open
Grahamhoare opened this issue May 8, 2015 · 0 comments
Open

mobile first etc #317

Grahamhoare opened this issue May 8, 2015 · 0 comments

Comments

@Grahamhoare
Copy link

Probably not so much a problem as advice, if I put a style in style.scss ie .social-media {float: none}, but then as the site expands I want it to be floated right so I put a style into the relevant media query bracket.
But it doesn't work as the initial specificity overrides the later media query, as it is the last rule to be applied (the media queries are imported at the top). So I have make the media query style more specific by adding div.social-media. This is a pain, shouldn't they be switched around somehow so that when the media queries are hit, if the style has the same specificity, then the media query will work, not the mobile first style?
I might be missing something,any tips appreciated, used this theme for a good 30 sites now :-)

Graham Hoare

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant