css - Foundation + SASS/SCSS customize sizes -


in foundation framework can set behaviour dom-elements predefined screen sizes like: small, medium large , etc. want create own size except predefined, specific reasons. how can it? thanks. p.s. read media queries: http://foundation.zurb.com/docs/media-queries.html didn't understood how use (updated _settings.scss didn't understood).

you need make sure understand sass , program compile sass files css. use compass compile, take @ that.

once have down, install foundation , start watching sass files; watching files convert them css.

you should see partial file (they have underscore in front of them) called _settings.scss. 99% of file commented out. section , uncomment it:

$small-range: (0em, 40em); /* 0, 640px */ $medium-range: (40.063em, 64em); /* 641px, 1024px */ $large-range: (64.063em, 90em); /* 1025px, 1440px */ $xlarge-range: (90.063em, 120em); /* 1441px, 1920px */ $xxlarge-range: (120.063em); /* 1921px */  $screen: "only screen";  $landscape: "#{$screen} , (orientation: landscape)"; $portrait: "#{$screen} , (orientation: portrait)";  $small-up: $screen; $small-only: "#{$screen} , (max-width: #{upper-bound($small-range)})";  $medium-up: "#{$screen} , (min-width:#{lower-bound($medium-range)})"; $medium-only: "#{$screen} , (min-width:#{lower-bound($medium-range)}) , (max-width:#{upper-bound($medium-range)})";  $large-up: "#{$screen} , (min-width:#{lower-bound($large-range)})"; $large-only: "#{$screen} , (min-width:#{lower-bound($large-range)}) , (max-width:#{upper-bound($large-range)})";  $xlarge-up: "#{$screen} , (min-width:#{lower-bound($xlarge-range)})"; $xlarge-only: "#{$screen} , (min-width:#{lower-bound($xlarge-range)}) , (max-width:#{upper-bound($xlarge-range)})";  $xxlarge-up: "#{$screen} , (min-width:#{lower-bound($xxlarge-range)})"; $xxlarge-only: "#{$screen} , (min-width:#{lower-bound($xxlarge-range)}) , (max-width:#{upper-bound($xxlarge-range)})"; 

the small-range, medium-range, large-range, etc breakpoints. need change these values or add more breakpoints.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -