-
-
Save ashrafbd1496/85669e8c483bdf6df793832c39a57fb4 to your computer and use it in GitHub Desktop.
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
first step setup | |
-------------- | |
1. ruby -v | |
2. gem install sass | |
3. gem source -a http://rubygems.org/ | |
2nd step (sass and css integrated ) | |
----------------- | |
1. sass --watch path/sass-directory/scss/style.scss:path/css-directory/style.css | |
sass responsive | |
------------------- | |
$medium_device : 'only screen and (min-width: 992px) and (max-width: 1200px)'; | |
$tab_device:'only screen and (min-width: 768px) and (max-width: 991px)'; | |
$small_mobile:'(max-width: 767px)'; | |
$large_mobile: 'only screen and (min-width: 480px) and (max-width: 767px)'; | |
process | |
------------------ | |
body{ | |
@media #{$medium_device}{ | |
background:red; | |
} | |
@media #{$tab_device}{ | |
background:green; | |
} | |
@media #{$small_mobile}{ | |
background:yellow; | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment