Created
April 12, 2012 10:46
-
-
Save krzysu/2366467 to your computer and use it in GitHub Desktop.
scss media type informer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@mixin media-informer { | |
position: fixed; | |
right: 0; | |
top: 0; | |
background: #000; | |
color: #fff; | |
padding: 6px 12px; | |
} | |
@media only screen and (max-width : 480px) { | |
body:after { | |
content: 'smartphone'; | |
@include media-informer; | |
} | |
} | |
@media only screen and (min-width: 481px) and (max-width: 768px) { | |
body:after { | |
content: 'better smartphone'; | |
@include media-informer; | |
} | |
} | |
@media only screen and (min-width: 768px) { | |
body:after { | |
content: 'ipad'; | |
@include media-informer; | |
} | |
} | |
@media only screen and (min-width: 1024px) { | |
body:after { | |
content: 'normal'; | |
@include media-informer; | |
} | |
} | |
@media only screen and (min-width : 1280px) { | |
body:after { | |
content: 'large'; | |
@include media-informer; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment