Weitere ähnliche Inhalte
Ähnlich wie Responsive web design (20)
Kürzlich hochgeladen (20)
Responsive web design
- 3. • A Text editor
• A local webserver (http://www.mamp.info/en)
• Github account (https://github.com)
• SASS (http://sass-lang.com/install)
• Compass (http://compass-style.org/install)
• Bundler (http://bundler.io)
• Livereload (http://livereload.com/)*
• Breakpoint (http://breakpoint-sass.com/)
• Jeet (http://jeet.gs/)
!
*optional but highly recommended
Tools
- 8. What you need
• A grid based design!
• Flexible images and media!
• Media queries!
• Percentage based widths
- 14. Media queries in CSS
#content {
" width: 50%;
}"
@media (max-width: 768px) {
" #content {
" " width: 75%;
" }
}"
@media (max-width: 320px) {
" #content {
" " width: 100%;
" }
}
- 17. Breakpoints in SASS
#content {
" width: 50%;
" @include breakpoint($breakpoint-medium-width) {
" " width: 75%;
" }
" @include breakpoint($breakpoint-small-width) {
" " width: 100%;
" }
}