-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
…ariables add a newline
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
@media ( max-width:600px ) {} | ||
@media ( min-width:700px) and ( orientation: landscape){} | ||
@media (min-width: 700px), handheld and (orientation: landscape) {} | ||
@media not all and ( monochrome ) {} | ||
@media ( not all ) and ( monochrome ) {} | ||
@media ( not ( screen and ( color ) ) ) , print and ( color ){} | ||
@media screen and ( device-aspect-ratio: 16/9 ), screen and (device-aspect-ratio:16/10 ) {} | ||
|
||
@media ( -webkit-min-device-pixel-ratio:2), | ||
(min--moz-device-pixel-ratio: 2 ), | ||
(min-resolution: 2dppx), | ||
(min-resolution: 192dpi ){} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
@media (max-width: 600px) { | ||
} | ||
|
||
@media (min-width: 700px) and ( orientation: landscape) { | ||
} | ||
|
||
@media (min-width: 700px), handheld and (orientation: landscape) { | ||
} | ||
|
||
@media not all and (monochrome) { | ||
} | ||
|
||
@media (not all) and ( monochrome) { | ||
} | ||
|
||
@media (not ( screen and ( color))), print and ( color) { | ||
} | ||
|
||
@media screen and (device-aspect-ratio: 16/9), screen and (device-aspect-ratio: 16/10) { | ||
} | ||
|
||
@media (-webkit-min-device-pixel-ratio: 2), (min--moz-device-pixel-ratio: 2), (min-resolution: 2dppx), (min-resolution: 192dpi) { | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
// mixin for clearfix | ||
@mixin clearfix () { | ||
@mixin clearfix() { | ||
&:before, | ||
&:after { | ||
content: " "; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* https://robots.thoughtbot.com/sasss-content-directive */ | ||
|
||
@mixin apply-to-ie6-only { | ||
* html { @content ;} | ||
} | ||
|
||
@include apply-to-ie6-only { | ||
#logo { background-image: url(/logo.gif); } | ||
} | ||
|
||
|
||
@mixin media($width) { | ||
@media only screen and (max-width: $width) { @content; } | ||
} | ||
|
||
|
||
@include media(320px) { | ||
background: red; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* https://robots.thoughtbot.com/sasss-content-directive */ | ||
@mixin apply-to-ie6-only { | ||
* html { | ||
@content; | ||
} | ||
} | ||
@include apply-to-ie6-only{ | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
matype
Owner
|
||
#logo { | ||
background-image: url(/logo.gif); | ||
} | ||
} | ||
|
||
@mixin media($width) { | ||
@media only screen and (max-width: $width) { | ||
@content; | ||
} | ||
} | ||
@include media(320px){ | ||
background: red; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,12 @@ | ||
.class | ||
{ | ||
padding:10px;@include clearfix();} | ||
|
||
|
||
.class | ||
{@include rounded ( top,left, 5px); | ||
padding:10px;@include clearfix ();} | ||
|
||
.class | ||
{ | ||
padding:10px;@include horizontal-line---foo__bar ( 1px solid #ccc ) ; } |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,3 @@ | ||
@mixin clearfix () { &:before, | ||
&:after { | ||
content:" "; | ||
display : table; } | ||
|
||
&:after {clear: both;} | ||
} | ||
@mixin horizontal-line ( $border: 1px dashed #ccc, $padding:10px ) { | ||
border-bottom:$border; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,3 @@ | ||
@mixin clearfix () { | ||
&:before, | ||
&:after { | ||
content: " "; | ||
display: table; | ||
} | ||
|
||
&:after { | ||
clear: both; | ||
} | ||
@mixin horizontal-line($border: 1px dashed #ccc, $padding: 10px) { | ||
border-bottom:$border; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
.foo { | ||
position: absolute; @debug 10px + 20px ; | ||
display: inline-block; | ||
@error ' Sorry, but `#{$variable}` is not a valid value for $variable. '; | ||
} | ||
|
||
|
||
@debug 10px + 20px; $wrn:20px; | ||
|
||
|
||
@warn | ||
" The `border-radius()` | ||
mixin will be deprecated in version 2.0. "; | ||
|
||
|
||
.bar { | ||
position: absolute; | ||
$wrn: 20px; @warn ' #{$wrn} '; display: inline-block; | ||
} | ||
|
||
/* http://www.sitepoint.com/using-sasss-error-warn-and-debug-directives/ */ | ||
@if unit($input) == 'px' { | ||
@warn | ||
"Please remember to use rem values in the `do-math()` function."; | ||
// do px math and @return a value; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
.foo { | ||
position: absolute; | ||
@debug 10px + 20px; | ||
display: inline-block; | ||
@error "Sorry, but `#{$variable}` is not a valid value for $variable."; | ||
} | ||
@debug 10px + 20px; | ||
$wrn: 20px; | ||
@warn "The `border-radius()` mixin will be deprecated in version 2.0."; | ||
|
||
.bar { | ||
position: absolute; | ||
$wrn: 20px; | ||
@warn "#{$wrn}"; | ||
display: inline-block; | ||
} | ||
|
||
/* http://www.sitepoint.com/using-sasss-error-warn-and-debug-directives/ */ | ||
@if unit($input) == 'px' { | ||
@warn "Please remember to use rem values in the `do-math()` function."; | ||
|
||
// do px math and @return a value; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,7 @@ | ||
$font-small :10px; | ||
h2 {display: inline-block;} | ||
|
||
$font-small: 10px; | ||
$foo:'fooooo'; | ||
.bar { | ||
font-size: $font-small; content: $foo; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,10 @@ | ||
h2 { | ||
display: inline-block; | ||
} | ||
$font-small: 10px; | ||
$foo: 'fooooo'; | ||
|
||
.bar { | ||
font-size: $font-small; | ||
content: $foo; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
// mixin for clearfix | ||
@mixin clearfix () { | ||
@mixin clearfix() { | ||
&:before, | ||
&:after { | ||
content: " "; | ||
|
@morishitter I don't know why there is no space?