Media queries
When working with responsive media queries, Furatto will help you more than you may think. We have provided a set of helpful media query mixins with really cool names. Kudos to Rafal Bromirski.
Responsive queries at a glance.
We have been working with rsponsive design for a while now, and the problem alwats is, we don't always remember the full syntax for let's say a set fo rules for a phone. It is a really pain when building responsive websites, most of the times media queries are the same and is a pain to keep writing them.
So based on Rafal Bromirski media queries we expose a set of handy media queries with more readable and rememberable names.
A quick example to define a set of css rules for a phone is provided below.
@media only screen and (min-width: 320px) and (max-width: 480px) {
//Your set of rules
}
.class-name {
//Regular css rules
@include phone {
//Your awesome respnsive rules. Cool isn't it?
}
}
Getting to know them all
Here is a quick list on the media queries that Furatto supports, but if you feel brave, you can always follow the source. Your responsive development would never be the same.
Mixin name | Params | Source |
---|---|---|
screen |
$resMin - The minimal resolution width $resMax - The max resolution width |
|
max-screen |
$res - The max resolution width |
|
min-screen |
$res - The minimal resolution width |
|
screen-height |
$resMin - The minimal resolution height $resMax - The max resolution height |
|
max-screen-height |
$res - The max resolution height |
|
min-screen-height |
$res - The minimal resolution height |
|
hdpi |
$ratio - The ratio value. Default: 1.3 |
|
phone | N/A |
|
iphone4 |
$orientation - The iphone orientation. Default: all |
|
iphone5 |
$orientation - The iphone orientation. Default: all |
|
ipad |
$orientation - The iphone orientation. Default: all |
|
ipad-retina |
$orientation - The iphone orientation. Default: all |
|
Follow the source
We just scratch the surface of the media queries, for you to get started, but you ae always welcome to check out the source file, for further functionality.