<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Media Queries, Sass 3.2, and CodeKit</title>
	<atom:link href="http://css-tricks.com/media-queries-sass-3-2-and-codekit/feed/" rel="self" type="application/rss+xml" />
	<link>http://css-tricks.com/media-queries-sass-3-2-and-codekit/</link>
	<description>Tips, Tricks, and Techniques on using Cascading Style Sheets.</description>
	<lastBuildDate>Wed, 22 May 2013 23:10:15 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>By: Harry</title>
		<link>http://css-tricks.com/media-queries-sass-3-2-and-codekit/#comment-189260</link>
		<dc:creator>Harry</dc:creator>
		<pubDate>Mon, 03 Sep 2012 14:54:13 +0000</pubDate>
		<guid isPermaLink="false">http://css-tricks.com/?p=17394#comment-189260</guid>
		<description><![CDATA[I agree with Sam. SASS documentation is not as developed as LESS, making the learning curve more difficult. Until then, it will remain second banana to LESS.]]></description>
		<content:encoded><![CDATA[<p>I agree with Sam. SASS documentation is not as developed as LESS, making the learning curve more difficult. Until then, it will remain second banana to LESS.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Travis</title>
		<link>http://css-tricks.com/media-queries-sass-3-2-and-codekit/#comment-187607</link>
		<dc:creator>Travis</dc:creator>
		<pubDate>Tue, 21 Aug 2012 18:28:25 +0000</pubDate>
		<guid isPermaLink="false">http://css-tricks.com/?p=17394#comment-187607</guid>
		<description><![CDATA[Got it. I was on SASS 3.1 and needed to upgrade in order for it to work.]]></description>
		<content:encoded><![CDATA[<p>Got it. I was on SASS 3.1 and needed to upgrade in order for it to work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Travis</title>
		<link>http://css-tricks.com/media-queries-sass-3-2-and-codekit/#comment-187605</link>
		<dc:creator>Travis</dc:creator>
		<pubDate>Tue, 21 Aug 2012 18:08:45 +0000</pubDate>
		<guid isPermaLink="false">http://css-tricks.com/?p=17394#comment-187605</guid>
		<description><![CDATA[er,  respond-to(tablet)

Its spelt right in my css, i just spelled it wrong in the comment]]></description>
		<content:encoded><![CDATA[<p>er,  respond-to(tablet)</p>
<p>Its spelt right in my css, i just spelled it wrong in the comment</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Travis</title>
		<link>http://css-tricks.com/media-queries-sass-3-2-and-codekit/#comment-187604</link>
		<dc:creator>Travis</dc:creator>
		<pubDate>Tue, 21 Aug 2012 18:07:18 +0000</pubDate>
		<guid isPermaLink="false">http://css-tricks.com/?p=17394#comment-187604</guid>
		<description><![CDATA[Instead of breakpoints, im calling it respond-to and there is a default option and a tablet option

Doesn&#039;t work for me... I get the following error



&lt;strong&gt;Invalid CSS After &quot;...ond-to(tablet) &quot; : expected &quot;}&quot;, was &quot;{width:60%;}&quot;&lt;/strong&gt;


Heres mine:

&lt;pre&gt;&lt;code&gt;
  @mixin respond-to($media) {
  @if $media == default {
    @media (min-width: 1024px) { @content; }
  }
 
  @else if $media == tablet {
    @media (max-width: 1024px) { @content; }
  }
}
&lt;/code&gt;&lt;/pre&gt;

And further down I call it here
&lt;pre&gt;&lt;code&gt;
.class
{
     width:100%;

    @include respond-to(table) { width:60% }
}
&lt;/code&gt;&lt;/pre&gt;]]></description>
		<content:encoded><![CDATA[<p>Instead of breakpoints, im calling it respond-to and there is a default option and a tablet option</p>
<p>Doesn&#8217;t work for me&#8230; I get the following error</p>
<p><strong>Invalid CSS After &#8220;&#8230;ond-to(tablet) &#8221; : expected &#8220;}&#8221;, was &#8220;{width:60%;}&#8221;</strong></p>
<p>Heres mine:</p>
<pre><code>
  @mixin respond-to($media) {
  @if $media == default {
    @media (min-width: 1024px) { @content; }
  }
 
  @else if $media == tablet {
    @media (max-width: 1024px) { @content; }
  }
}
</code></pre>
<p>And further down I call it here</p>
<pre><code>
.class
{
     width:100%;

    @include respond-to(table) { width:60% }
}
</code></pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeremy S</title>
		<link>http://css-tricks.com/media-queries-sass-3-2-and-codekit/#comment-187020</link>
		<dc:creator>Jeremy S</dc:creator>
		<pubDate>Thu, 16 Aug 2012 19:04:27 +0000</pubDate>
		<guid isPermaLink="false">http://css-tricks.com/?p=17394#comment-187020</guid>
		<description><![CDATA[Interesting.  I recently went to a presentation about &lt;em&gt;another&lt;/em&gt; Breakpoint library -- &lt;a href=&quot;https://github.com/lesjames/breakpoint&quot; rel=&quot;nofollow&quot;&gt;https://github.com/lesjames/breakpoint&lt;/a&gt;.

It may be similar to the breakpoint approach you mentioned, but it has the advantage of being grid based -- so instead of figuring out your widths and using variables, you just determine how many columns you&#039;re expecting for a specific layout, and it does the math for you.  For example:
&lt;pre&gt;&lt;code&gt;
// 8 column breakpoint
@include breakpoint(8){
    .fluid-demo {
        .grid-cell { width: fluid(4); }
    }
    .fixed-demo {
        .grid-cell { width: fixed(2); }
    }
}

// 12 column breakpoint
@include breakpoint(12){
    .fluid-demo {
        .grid-cell { width: fluid(3); }
    }
    .fixed-demo {
        .grid-cell { width: fixed(3); }
    }
}
&lt;/code&gt;&lt;/pre&gt;

I haven&#039;t tried it out (don&#039;t have SASS 3.2, on Windows) but the author&#039;s demo was pretty awesome.]]></description>
		<content:encoded><![CDATA[<p>Interesting.  I recently went to a presentation about <em>another</em> Breakpoint library &#8212; <a href="https://github.com/lesjames/breakpoint" rel="nofollow">https://github.com/lesjames/breakpoint</a>.</p>
<p>It may be similar to the breakpoint approach you mentioned, but it has the advantage of being grid based &#8212; so instead of figuring out your widths and using variables, you just determine how many columns you&#8217;re expecting for a specific layout, and it does the math for you.  For example:</p>
<pre><code>
// 8 column breakpoint
@include breakpoint(8){
    .fluid-demo {
        .grid-cell { width: fluid(4); }
    }
    .fixed-demo {
        .grid-cell { width: fixed(2); }
    }
}

// 12 column breakpoint
@include breakpoint(12){
    .fluid-demo {
        .grid-cell { width: fluid(3); }
    }
    .fixed-demo {
        .grid-cell { width: fixed(3); }
    }
}
</code></pre>
<p>I haven&#8217;t tried it out (don&#8217;t have SASS 3.2, on Windows) but the author&#8217;s demo was pretty awesome.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joel</title>
		<link>http://css-tricks.com/media-queries-sass-3-2-and-codekit/#comment-186034</link>
		<dc:creator>Joel</dc:creator>
		<pubDate>Sat, 11 Aug 2012 02:26:31 +0000</pubDate>
		<guid isPermaLink="false">http://css-tricks.com/?p=17394#comment-186034</guid>
		<description><![CDATA[To make a permanent record of my stupidity: I did @extend .placeholder rather than @extend %placeholder. Updating Sass and Compass actually worked.]]></description>
		<content:encoded><![CDATA[<p>To make a permanent record of my stupidity: I did @extend .placeholder rather than @extend %placeholder. Updating Sass and Compass actually worked.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joel</title>
		<link>http://css-tricks.com/media-queries-sass-3-2-and-codekit/#comment-183947</link>
		<dc:creator>Joel</dc:creator>
		<pubDate>Tue, 31 Jul 2012 01:57:34 +0000</pubDate>
		<guid isPermaLink="false">http://css-tricks.com/?p=17394#comment-183947</guid>
		<description><![CDATA[I followed the above instructions to get Sass 3.2 working in Codekit (thanks Chris), which seemed to go well … except that I don&#039;t think Codekit is really using Sass 3.2. The placeholder selector feature does not work, ie: %classname can not be @extend(ed).

Codekit seemed to take the new Sass path and shows that it is using /usr/bin/sass which, when tested with sass --version is indeed  3.2.0.alpha.277.

Can anyone guess what I might be doing wrong? Thanks in advance!]]></description>
		<content:encoded><![CDATA[<p>I followed the above instructions to get Sass 3.2 working in Codekit (thanks Chris), which seemed to go well … except that I don&#8217;t think Codekit is really using Sass 3.2. The placeholder selector feature does not work, ie: %classname can not be @extend(ed).</p>
<p>Codekit seemed to take the new Sass path and shows that it is using /usr/bin/sass which, when tested with sass &#8211;version is indeed  3.2.0.alpha.277.</p>
<p>Can anyone guess what I might be doing wrong? Thanks in advance!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gabriel Tadeu</title>
		<link>http://css-tricks.com/media-queries-sass-3-2-and-codekit/#comment-183531</link>
		<dc:creator>Gabriel Tadeu</dc:creator>
		<pubDate>Sun, 29 Jul 2012 02:30:17 +0000</pubDate>
		<guid isPermaLink="false">http://css-tricks.com/?p=17394#comment-183531</guid>
		<description><![CDATA[Using these examples by &lt;a href=&quot;https://github.com/jeremyworboys/Sassy-Media/tree/master/tests/two_selectors_with_multiple_queries&quot; rel=&quot;nofollow&quot;&gt;Jeremy Worboys&lt;/a&gt;  it&#039;s possible in {LESS} with:

&lt;pre&gt;&lt;code&gt;
.selector-1 { color: blue; }
@media screen and (min-width: 40em) {
    .selector-1 { color: red; }
}

.selector-2 { color: blue; }
@media screen and (min-width: 25em) {
    .selector-2 { color: green; }
}
@media screen and (min-width: 40em) {
    .selector-2 { color: red; }
}
&lt;/code&gt;&lt;/pre&gt;

Do this: (puts both media queries in the end of .css compiled)

&lt;pre&gt;&lt;code&gt;
.selector-1 { color: blue; }


.selector-2 { color: blue; }


@media screen and (min-width: 40em) {
.selector-1 { color: red; }
.selector-2 { color: red; }
}
@media screen and (min-width: 25em) {
.selector-2 { color: green; }
}
&lt;/code&gt;&lt;/pre&gt;

Because when I try using {LESS} compiler this is the final code:

&lt;pre&gt;&lt;code&gt;
.selector-1 {
  color: blue;
}
@media screen and (min-width: 40em) {
  .selector-1 {
    color: red;
  }
}
.selector-2 {
  color: blue;
}
@media screen and (min-width: 25em) {
  .selector-2 {
    color: green;
  }
}
@media screen and (min-width: 40em) {
  .selector-2 {
    color: red;
  }
}
&lt;/code&gt;&lt;/pre&gt;

They duplicate min-width 40em.]]></description>
		<content:encoded><![CDATA[<p>Using these examples by <a href="https://github.com/jeremyworboys/Sassy-Media/tree/master/tests/two_selectors_with_multiple_queries" rel="nofollow">Jeremy Worboys</a>  it&#8217;s possible in {LESS} with:</p>
<pre><code>
.selector-1 { color: blue; }
@media screen and (min-width: 40em) {
    .selector-1 { color: red; }
}

.selector-2 { color: blue; }
@media screen and (min-width: 25em) {
    .selector-2 { color: green; }
}
@media screen and (min-width: 40em) {
    .selector-2 { color: red; }
}
</code></pre>
<p>Do this: (puts both media queries in the end of .css compiled)</p>
<pre><code>
.selector-1 { color: blue; }


.selector-2 { color: blue; }


@media screen and (min-width: 40em) {
.selector-1 { color: red; }
.selector-2 { color: red; }
}
@media screen and (min-width: 25em) {
.selector-2 { color: green; }
}
</code></pre>
<p>Because when I try using {LESS} compiler this is the final code:</p>
<pre><code>
.selector-1 {
  color: blue;
}
@media screen and (min-width: 40em) {
  .selector-1 {
    color: red;
  }
}
.selector-2 {
  color: blue;
}
@media screen and (min-width: 25em) {
  .selector-2 {
    color: green;
  }
}
@media screen and (min-width: 40em) {
  .selector-2 {
    color: red;
  }
}
</code></pre>
<p>They duplicate min-width 40em.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon Thomas</title>
		<link>http://css-tricks.com/media-queries-sass-3-2-and-codekit/#comment-182647</link>
		<dc:creator>Jon Thomas</dc:creator>
		<pubDate>Mon, 23 Jul 2012 17:24:58 +0000</pubDate>
		<guid isPermaLink="false">http://css-tricks.com/?p=17394#comment-182647</guid>
		<description><![CDATA[By the way, if you&#039;re using Foundation 3, you&#039;ll need the 0.13.alpha.x version of Compass if you want to Pointe CodeKit to an external Compass compiler. When Compass officially releases this version, and CodeKit includes this compiler, you can just use CodeKit&#039;s compiler.

Do a &lt;code&gt;sudo gem install compass --pre&lt;/code&gt; to get the bleeding edge.

And for me, Sass and Compass were not installed to the /usr/bin directory, but instead to the &lt;strong&gt;/Library/Ruby/Gems/1.8/gems/[sass/compass version]/bin&lt;/strong&gt; directory]]></description>
		<content:encoded><![CDATA[<p>By the way, if you&#8217;re using Foundation 3, you&#8217;ll need the 0.13.alpha.x version of Compass if you want to Pointe CodeKit to an external Compass compiler. When Compass officially releases this version, and CodeKit includes this compiler, you can just use CodeKit&#8217;s compiler.</p>
<p>Do a <code>sudo gem install compass --pre</code> to get the bleeding edge.</p>
<p>And for me, Sass and Compass were not installed to the /usr/bin directory, but instead to the <strong>/Library/Ruby/Gems/1.8/gems/[sass/compass version]/bin</strong> directory</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martin</title>
		<link>http://css-tricks.com/media-queries-sass-3-2-and-codekit/#comment-182589</link>
		<dc:creator>Martin</dc:creator>
		<pubDate>Mon, 23 Jul 2012 09:44:06 +0000</pubDate>
		<guid isPermaLink="false">http://css-tricks.com/?p=17394#comment-182589</guid>
		<description><![CDATA[Nevermind, I finally fixed it:
&lt;pre&gt;&lt;code&gt;
@mixin breakpoint($point) {
	@if $point == 2x {
		@media only screen and (-webkit-min-device-pixel-ratio: 1.5),
		only screen and (min-moz-device-pixel-ratio: 1.5),
		only screen and (min-device-pixel-ratio: 1.5) { @content; }
	}
}
&lt;/code&gt;&lt;/pre&gt;]]></description>
		<content:encoded><![CDATA[<p>Nevermind, I finally fixed it:</p>
<pre><code>
@mixin breakpoint($point) {
	@if $point == 2x {
		@media only screen and (-webkit-min-device-pixel-ratio: 1.5),
		only screen and (min-moz-device-pixel-ratio: 1.5),
		only screen and (min-device-pixel-ratio: 1.5) { @content; }
	}
}
</code></pre>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced (User agent is rejected)
Content Delivery Network via cdn.css-tricks.com

 Served from: css-tricks.com @ 2013-05-22 18:02:28 by W3 Total Cache -->