Created
January 18, 2016 11:05
-
-
Save worst-developer/911570fdefdca1bf86a5 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
//***********scss*************** | |
// Создаем mixin | |
@mixin respond-to($media) { | |
@if $media == handhelds { | |
@media only screen and (max-width: 479px) { @content; } | |
} | |
@else if $media == wide-handhelds { | |
@media only screen and (min-width: 480px) and (max-width: 767px) { @content; } | |
} | |
@else if $media == tablets { | |
@media only screen and (min-width: 768px) and (max-width: 959px) { @content; } | |
} | |
} | |
.menu-main { | |
float: left; | |
width: 300px; | |
// Для телефонов | |
@include respond-to(handhelds) { float: none; }; | |
// Для телефонов с широким экраном | |
@include respond-to(wide-handhelds) { float: none; }; | |
// Для планшетов | |
@include respond-to(tablets) { width: 240px; }; | |
} | |
//*******************css out************************************************ | |
.menu-main { | |
float: left; | |
width: 300px; | |
} | |
@media only screen and (max-width: 479px) { | |
.menu-main { | |
float: none; | |
} | |
} | |
@media only screen and (min-width: 480px) and (max-width: 767px) { | |
.menu-main { | |
float: none; | |
} | |
} | |
@media only screen and (min-width: 768px) and (max-width: 959px) { | |
.menu-main { | |
width: 240px; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment