-
Notifications
You must be signed in to change notification settings - Fork 6
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 #10 from sullenor/sullenor/values
values example
- Loading branch information
Showing
9 changed files
with
117 additions
and
0 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
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,4 @@ | ||
.dashed | ||
{ | ||
border: 4px dashed; | ||
} |
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,3 @@ | ||
@value small (max-width: 599px); | ||
@value medium (min-width: 600px) and (max-width: 959px); | ||
@value large (min-width: 960px); |
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,20 @@ | ||
@value primary: #f01; | ||
@value secondary: #2f2; | ||
|
||
.text-primary | ||
{ | ||
color: primary; | ||
} | ||
.bg-primary | ||
{ | ||
background-color: primary; | ||
} | ||
|
||
.text-secondary | ||
{ | ||
color: secondary; | ||
} | ||
.bg-secondary | ||
{ | ||
background-color: secondary; | ||
} |
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,43 @@ | ||
._test_cases_values_borders__dashed{ | ||
border: 4px dashed; | ||
} | ||
|
||
._test_cases_values_colors__text-primary{ | ||
color: #f01; | ||
} | ||
|
||
._test_cases_values_colors__bg-primary{ | ||
background-color: #f01; | ||
} | ||
|
||
._test_cases_values_colors__text-secondary{ | ||
color: #2f2; | ||
} | ||
|
||
._test_cases_values_colors__bg-secondary{ | ||
background-color: #2f2; | ||
} | ||
/* Imports without a "from" are just passed through */ | ||
@import url('./old-skool.css'); | ||
|
||
._test_cases_values_source__foo | ||
{ | ||
border-color: #2f2; | ||
box-shadow: 0 0 10px #f01; | ||
} | ||
|
||
@media (max-width: 599px) | ||
{ | ||
._test_cases_values_source__foo | ||
{ | ||
background: white; | ||
} | ||
} | ||
|
||
@media (min-width: 600px) and (max-width: 959px) | ||
{ | ||
._test_cases_values_source__foo | ||
{ | ||
background: peru; | ||
} | ||
} |
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,9 @@ | ||
{ | ||
"blue": "#f01", | ||
"borders": "'./borders.css'", | ||
"breakpoints": "'./breakpoints.css'", | ||
"foo": "_test_cases_values_source__foo _test_cases_values_borders__dashed _test_cases_values_colors__text-secondary", | ||
"medium": "(min-width: 600px) and (max-width: 959px)", | ||
"secondary": "#2f2", | ||
"small": "(max-width: 599px)" | ||
} |
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,31 @@ | ||
@value borders: './borders.css', breakpoints: './breakpoints.css'; | ||
@value small, medium from breakpoints; | ||
@value secondary, primary as blue from './colors.css'; | ||
|
||
/* Imports without a "from" are just passed through */ | ||
@import url('./old-skool.css'); | ||
|
||
.foo | ||
{ | ||
border-color: secondary; | ||
box-shadow: 0 0 10px blue; | ||
|
||
composes: dashed from borders; | ||
composes: text-secondary from './colors.css'; | ||
} | ||
|
||
@media small | ||
{ | ||
.foo | ||
{ | ||
background: white; | ||
} | ||
} | ||
|
||
@media medium | ||
{ | ||
.foo | ||
{ | ||
background: peru; | ||
} | ||
} |
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