diff options
author | Siri Reiter <siri@jones.dk> | 2014-08-23 21:30:24 +0200 |
---|---|---|
committer | Siri Reiter <siri@jones.dk> | 2014-08-23 21:35:46 +0200 |
commit | 18f67ce32ad04157b3736c33c1178009bae7abff (patch) | |
tree | e288ec8b76a1bf285efb2e419de180d60faaf800 | |
parent | 76944dcab73e3fb905cacbdad6423ff89c626d13 (diff) |
Use Breakpoint instead of explicit @media hint.
-rw-r--r-- | config.rb | 27 | ||||
-rw-r--r-- | local.scss | 3 | ||||
-rw-r--r-- | partials/_base.scss | 5 |
3 files changed, 34 insertions, 1 deletions
diff --git a/config.rb b/config.rb new file mode 100644 index 0000000..d6024db --- /dev/null +++ b/config.rb @@ -0,0 +1,27 @@ +require 'breakpoint' +require 'compass/import-once/activate' +# Require any additional compass plugins here. + + +# Set this to the root of your project when deployed: +http_path = "/" +css_dir = "" +sass_dir = "" +images_dir = "" +javascripts_dir = "" + +# You can select your preferred output style here (can be overridden via the command line): +# output_style = :expanded or :nested or :compact or :compressed + +# To enable relative paths to assets via compass helper functions. Uncomment: +relative_assets = true + +# To disable debugging comments that display the original location of your selectors. Uncomment: +# line_comments = false + + +# If you prefer the indented syntax, you might want to regenerate this +# project again passing --syntax sass, or you can uncomment this: +# preferred_syntax = :sass +# and then run: +# sass-convert -R --from scss --to sass sass scss && rm -rf sass && mv scss sass @@ -2,6 +2,7 @@ @import "compass/reset/utilities"; @import "compass/typography"; @import "blueprint"; +@import "breakpoint"; @include blueprint-typography; h1 { @@ -92,7 +93,7 @@ a { #pagebody { float: left; margin: 1em 5% 4.2em; - @media only screen and (min-width: 40em) { + @include breakpoint($large-desktop) { margin-left: 25%; } } diff --git a/partials/_base.scss b/partials/_base.scss index b8cc418..1cc52ea 100644 --- a/partials/_base.scss +++ b/partials/_base.scss @@ -26,6 +26,11 @@ $linkHoverColor: $colorPrimary; $headerColor: $colorPrimary; +// Media +// +// No styleguide reference. +$large-desktop: screen min-width 40em; + // Framework integrations // // No styleguide reference. |