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

Custom Media Queries #3

Open
smhanes opened this issue Jun 26, 2012 · 2 comments
Open

Custom Media Queries #3

smhanes opened this issue Jun 26, 2012 · 2 comments

Comments

@smhanes
Copy link

smhanes commented Jun 26, 2012

In your custom SCSS files, you can do things such as @extend %aura-container, %measure, etc for custom styling on the tags you put those commands in, say #page.

Can you do something similar with media queries, so say I could have auto-generated media queries with custom styling for certain regions based upon min-width requirements?

ie:

Say I want to conditionally style the following:

@media screen and (min-width: 1px) and (max-width: 800px) {
#site-name, #site-slogan {
display: inline !important;
float: left !important;
clear: both !important;
width: 100% !important;
}
#site-slogan {
font-size: 1.3em;
}
#logo, #name-and-slogan, #sla-logo-and-site-search {
width: 100% !important;
margin: 0 auto !important;
margin-top: 1em !important;
padding: 0 10px !important;
display: inline !important;
text-align: center !important;
}
#sla-logo {
float: left !important;
}
#block-search-form {
padding-right: 0 !important;
}
}

Is this possible as Aurora currently stands?

@Snugug
Copy link
Owner

Snugug commented Jun 26, 2012

Aura comes with a Media Query API that will soon be changing, but for the time being, take a look at the following:
http://snugug.github.com/Aura/#media-query-api

That will let you write all the media queries you'd like.

That being said, that's a hell of a lot of !importants, no?

@smhanes
Copy link
Author

smhanes commented Jun 26, 2012

Heh, yeap.. but every single one of those is being set elsewhere and so I have to make sure they're not overridden later on. Also, I threw the media query in manually, and so they 'might' not be necessary once I use the media query api.

Thanks.

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

2 participants