-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #86 from Team-Sass/2.x.x-memoization
2.x.x memoization
- Loading branch information
Showing
42 changed files
with
4,192 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,5 +7,8 @@ | |
"node_modules", | ||
"components", | ||
"test" | ||
] | ||
], | ||
"dependencies": { | ||
"sassy-maps": "<1.0.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
require 'compass' | ||
require 'sassy-maps' | ||
|
||
Compass::Frameworks.register("breakpoint", :path => "#{File.dirname(__FILE__)}/..") | ||
|
||
module Breakpoint | ||
VERSION = "2.3.1" | ||
DATE = "2013-12-04" | ||
VERSION = "2.3.2" | ||
DATE = "2013-12-16" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# Require any additional compass plugins here.] | ||
require 'sassy-maps' | ||
|
||
# File system locations | ||
sass_dir = 'tests' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/* | ||
* Assume $breakpoint-default-feature | ||
* if only a number | ||
* $single-pixel-value: 500px; | ||
* $single-em-value: 30em; | ||
*/ | ||
@media (min-width: 500px) { | ||
.foo { | ||
content: '$single-pixel-value'; | ||
content: '@media (min-width: 500px)'; | ||
} | ||
} | ||
@media (min-width: 30em) { | ||
.foo { | ||
content: '$single-em-value'; | ||
content: '@media (min-width: 30em)'; | ||
} | ||
} | ||
@media (min-width: 500px) { | ||
.foo { | ||
content: '$single-pixel-value'; | ||
content: '@media (min-width: 500px)'; | ||
} | ||
} | ||
@media (min-width: 30em) { | ||
.foo { | ||
content: '$single-em-value'; | ||
content: '@media (min-width: 30em)'; | ||
} | ||
} | ||
@media (min-width: 500px) { | ||
.foo { | ||
content: '$single-pixel-value'; | ||
content: '@media (min-width: 500px)'; | ||
} | ||
} | ||
@media (min-width: 30em) { | ||
.foo { | ||
content: '$single-em-value'; | ||
content: '@media (min-width: 30em)'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* $breakpoint-to-ems: true; */ | ||
@media (min-width: 31.25em) { | ||
.breakpoint-default-feature-to-ems { | ||
content: '$single-pixel-value'; | ||
content: '@media (min-width: 31.25em)'; | ||
} | ||
} | ||
@media (min-width: 30em) { | ||
.breakpoint-default-feature-to-ems { | ||
content: '$single-em-value'; | ||
content: '@media (min-width: 30em)'; | ||
} | ||
} | ||
@media (min-width: 31.25em) { | ||
.breakpoint-default-feature-to-ems { | ||
content: '$single-pixel-value'; | ||
content: '@media (min-width: 31.25em)'; | ||
} | ||
} | ||
@media (min-width: 30em) { | ||
.breakpoint-default-feature-to-ems { | ||
content: '$single-em-value'; | ||
content: '@media (min-width: 30em)'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
/* | ||
* Single value with feature | ||
* $feature-first : height 500px; | ||
* $value-first : 500px height; | ||
* $arbitrary-feature : lion 500px; | ||
* $feature-value-both-strings : portrait orientation; | ||
*/ | ||
@media (height: 500px) { | ||
.foo { | ||
content: '$feature-first'; | ||
content: '@media (height: 500px)'; | ||
} | ||
} | ||
@media (height: 500px) { | ||
.foo { | ||
content: '$value-first'; | ||
content: '@media (height: 500px)'; | ||
} | ||
} | ||
@media (lion: 500px) { | ||
.foo { | ||
content: '$arbitrary-feature'; | ||
content: '@media (lion: 500px)'; | ||
} | ||
} | ||
@media (orientation: portrait) { | ||
.foo { | ||
content: '$feature-value-both-strings'; | ||
content: '@media (orientation: portrait)'; | ||
} | ||
} | ||
@media (height: 500px) { | ||
.foo { | ||
content: '$feature-first'; | ||
content: '@media (height: 500px)'; | ||
} | ||
} | ||
@media (height: 500px) { | ||
.foo { | ||
content: '$value-first'; | ||
content: '@media (height: 500px)'; | ||
} | ||
} | ||
@media (lion: 500px) { | ||
.foo { | ||
content: '$arbitrary-feature'; | ||
content: '@media (lion: 500px)'; | ||
} | ||
} | ||
@media (orientation: portrait) { | ||
.foo { | ||
content: '$feature-value-both-strings'; | ||
content: '@media (orientation: portrait)'; | ||
} | ||
} | ||
|
||
@media (height: 500px) { | ||
.bar { | ||
content: '$feature-first'; | ||
content: '@media (height: 31.25em)'; | ||
} | ||
} | ||
@media (height: 500px) { | ||
.bar { | ||
content: '$value-first'; | ||
content: '@media (height: 31.25em)'; | ||
} | ||
} | ||
@media (lion: 500px) { | ||
.bar { | ||
content: '$arbitrary-feature'; | ||
content: '@media (lion: 31.25em)'; | ||
} | ||
} | ||
@media (height: 500px) { | ||
.bar { | ||
content: '$feature-first'; | ||
content: '@media (height: 31.25em)'; | ||
} | ||
} | ||
@media (height: 500px) { | ||
.bar { | ||
content: '$value-first'; | ||
content: '@media (height: 31.25em)'; | ||
} | ||
} | ||
@media (lion: 500px) { | ||
.bar { | ||
content: '$arbitrary-feature'; | ||
content: '@media (lion: 31.25em)'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/* | ||
* Set min-width/max-width | ||
* if both values are numbers | ||
* $min-max-default-feature : 500px 700px; | ||
*/ | ||
@media (min-width: 500px) and (max-width: 700px) { | ||
.foo { | ||
content: '$min-max-default-feature'; | ||
content: '@media (min-width: 500px) and (max-width: 700px)'; | ||
} | ||
} | ||
@media (min-width: 500px) and (max-width: 700px) { | ||
.foo { | ||
content: '$min-max-default-feature'; | ||
content: '@media (min-width: 500px) and (max-width: 700px)'; | ||
} | ||
} | ||
|
||
@media (min-width: 500px) and (max-width: 700px) { | ||
.bar { | ||
content: '$min-max-default-feature'; | ||
content: '@media (min-width: 31.25em) and (max-width: 43.75em)'; | ||
} | ||
} | ||
@media (min-width: 500px) and (max-width: 700px) { | ||
.bar { | ||
content: '$min-max-default-feature'; | ||
content: '@media (min-width: 31.25em) and (max-width: 43.75em)'; | ||
} | ||
} |
Oops, something went wrong.