Skip to content

Instantly share code, notes, and snippets.

@maylogger
Created March 17, 2014 15:31
Show Gist options
  • Select an option

  • Save maylogger/9601435 to your computer and use it in GitHub Desktop.

Select an option

Save maylogger/9601435 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.3.3)
// Compass (v1.0.0.alpha.18)
// Breakpoint (v2.4.2)
// ----
@import "breakpoint";
// 設定要有 fallback
$breakpoint-no-query-fallbacks: true;
$desktop-break: 768px; // 設定 media query 斷點
$no-query-class: '.ie8'; // 設定 fallback class name
$desktop-up: $desktop-break, 'no-query' $no-query-class;
// 開始寫樣式
#foo {
content: '手機版樣式';
@include breakpoint($desktop-up) {
content: '桌面版樣式';
}
}
@charset "UTF-8";
#foo {
content: '手機版樣式';
}
@media (min-width: 768px) {
#foo {
content: '桌面版樣式';
}
}
.ie8 #foo {
content: '桌面版樣式';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment