What is the optimal way of handling media queries in SASS?
-
I have read this article - http://css-tricks.com/media-queries-sass-3-2-and-codekit/. I know about the existence of Breakpoint (by https://github.com/canarymason), although, the noob that I am, I don't fully understand how to implement it in my projects. So what's your favorite way of working with media queries in SASS? Many thanks in advance to all Quorans who answer the question!
-
Answer:
I would suggest nesting it normally. Start off by making your page as you always would, then when you get to the mobile friendly part do the following. write: @media (max-width: 979px){ /*Your code here to be displayed when the screen is mobile or tablet landskape*/ } Ofcourse, you would add the content inside, it will then only be working if your browser width is less than 979px, this can be changed to anything and you can add several variables with "and" in between the brackets. Within theese courly brackets, you can nest your css as you normaly would in SASS.
Jørgen Christopher Sommerro Juel at Quora Visit the source
Related Q & A:
- What is the best way to distribute an audio/video feed from a computer to TVs over existing indoor coax cable?Best solution by Audio-Video Production
- What is the best way to clean LEGO bricks?Best solution by bricks.stackexchange.com
- What is the optimal training time for a combined weight training and cardio workout?Best solution by Physical Fitness
- What are the safest ways to download media?Best solution by answers.yahoo.com
- What creative/Artistic jobs are there in Media?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.