Documentos de Académico
Documentos de Profesional
Documentos de Cultura
XL
HA UR YO SE AI
F SI ND
http://ic.kr/p/dwY5M
the
WHY
the
HOW
http://j.mp/responsive-ALA
http://ic.kr/p/89Utsr
http://ic.kr/p/8w5ULb
DESKTOP?
http://ic.kr/p/6iLEF
DESKTOP?
http://ic.kr/p/6iLEF
BEST VIEWED AT
FIXED LAYOUTS
1024px 960px 1600px 960px
FLUID LAYOUTS
1024px 1600px
90%
920px
90%
1440px
SMALL
LARGE
Screen Size
FIXED OR FLUID
OK
FAIL
OK
FAIL
WHY?
OK FAIL OK FAIL
CONTINUOUS SPECTRUM
SMALL
Screen Size
LARGE
CONTINUOUS SPECTRUM
SMALL
Screen Size
LARGE
CONTINUOUS SPECTRUM
IPHONE
LANDSCAPE IPHONE
IPAD
WELL, IE9 IS OK
PROGRESSIVE ENHANCEMENT
@MEDIA
@MEDIA
@MEDIA
WHAT RESPONDS?
Typogaphy (typeface, size, leading) Layout (margins, padding, loats) Paint (background images, colors) basically, style.
iP ho ne iP ad
http://mediaqueri.es
de sk
to p
id es c
re e
WHAT DOESNT?
RESPONSIVE*
* not a utopia
http://ic.kr/p/FNeQW
http://compass-style.org
Sass.
http://sass-lang.com
@impot "compass/reset"; @impot "compass/css3/tansition"; @impot "compass/utilities/geneal/cleax"; @impot "compass/layout/grid-background"; @impot "compass/utilities/color/contast"; @impot "compass/css3/border-adius"; @impot "compass/css3/images"; @impot "patials/base"; @impot "less/famework"; @impot "patials/more"; @impot "patials/exams/pygmentstheme"; @impot "patials/exams/global"; @impot "patials/exams/default"; @impot "patials/exams/tablet"; @impot "patials/exams/mobile"; @impot "patials/exams/wide-mobile";
from css impot reset, shotcuts from thirdpaty_app impot some_utilities from my_app impot desktop, tablet, mobile
SIGH, RUBY.
expot GEM_HOME="$VIRTUAL_ENV/gems" expot GEM_PATH="" Stick this in vitualenvs postactivate script.
SIGH, RUBY.
expot GEM_HOME="$VIRTUAL_ENV/gems" expot GEM_PATH="" Stick this in vitualenvs postactivate script. Now go PayPal @carljm some beer money.
10
MORE IS LESS
https://gist.github.com/1009952 Inspired by 960 and Susy
COMPILED CSS
How does I manage it? GHETTO STUPID WAY SHINY FUTURE WAY
PROJECT
/app1 /app2 settings.py /static in STATICFILES_DIRS /img /js /css /static_root STATIC_ROOT
$ compass create -r less foo --using less $ mv foo/sass sass $ mv foo/cong.rb . $ rm -f foo
/app1 /app2 settings.py cong.rb /sass screen.scss @impots the patias /patials _base.scss _global.scss _default.scss _mobile.scss /static /img /js /css screen.css geneated by compass
settings.py
COMPRESS_CSS_FILTERS = [ 'compressor.lters.compass.CompassFilter', ]
template.html
3
mobile
5
wide mobile
8
tablet
10
desktop
https://github.com/idangazit/wd_example
<body> <div id="wap"> <header> <h1>How are you gentlemen?</h1> </header> <div class="odd" id="foo">...</div> <div class="even" id="bar">...</div> <div class="odd" id="baz">...</div> <div class="even" id="spam">...</div> </div> </body>
<body> <div id="wap"> <header> <h1>How are you gentlemen?</h1> </header> <div class="odd" id="foo">...</div> <div class="even" id="bar">...</div> <div class="odd" id="baz">...</div> <div class="even" id="spam">...</div> </div> </body>
<body> <div id="wap"> <header> <h1>How are you gentlemen?</h1> </header> <div class="odd" id="foo">...</div> <div class="even" id="bar">...</div> <div class="odd" id="baz">...</div> <div class="even" id="spam">...</div> </div> </body>
_global.scss header>h1 { // global masthead styling } .even, .odd { font-family: Georgia, Times, serif; margin-bottom: 4.0em; h1 { padding: 10px; font-size: 1.75em; color: #FBED64; } p{ padding: 10px; line-height: 1.3em; color: rgba(255,255,255,0.75); } }
_default.scss #{$less-grid-element} { @include grid(10); @include less-grid-background(10); } header>h1 { font-size: 6.0em; margin-bottom: 0.5em; margin-top: 0.5em; } .even, .odd { @include columns(5); } .even { @include omega; }
_mobile.scss @media only screen and (max-width: 767px) { #{$less-grid-element} { @include grid(3); @include less-grid-background(3); } header>h1 { font-size: 4.0em; margin-bottom: 0.3em; margin-top: 0.3em; } .even, .odd { @include columns(3); margin-bottom: 1.0em; @include omega; } }
3
mobile
5
wide mobile
8
tablet
8
desktop
https://github.com/idangazit/wd_example
RESPONSIVE*
* Its a cool technique
MOBILE
RESPONSIVE
ig
KTHXBAI!
Idan Gazit @idangazit