On Tue, May 31, 2016 at 3:59 PM, Shawn Lawler <lawl0...@umn.edu> wrote:

> Add a little more efficiency into that second option and you've got the
> method I use:
>
> In a sass partial that you'll import into your main scss file - build your
> mixin(s):
> $min-bp-large: 747px;
>
> @mixin bp-large {
>     @media only screen and (min-width: $min-bp-large) {
>         @content;
>     }
> }
>
> Then using it in your other scss is a snap - I find them much easier to
> read too:
> .selector {
>     color: red;
>
>     @include bp-large {
>         color: blue;
>     }
> }
>


The second article in my OP is about doing this. Pretty neat.


-- 

Tom Livingston | Senior Front End Developer | Media Logic |
ph: 518.456.3015x231 | fx: 518.456.4279 | medialogic.com


#663399
______________________________________________________________________
css-discuss [css-d@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to