-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
34 changed files
with
863 additions
and
1 deletion.
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
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,8 @@ | ||
$util-align-items-values: ( | ||
start, | ||
end, | ||
flex-start, | ||
flex-end, | ||
center, | ||
stretch | ||
) !default; |
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 @@ | ||
@mixin sparkle-align-items { | ||
@each $value in $util-align-items-values { | ||
.#{settings(prefix)}-align-items-#{$value} { | ||
@include loop-mq { | ||
align-items: $value; | ||
} | ||
} | ||
} | ||
} |
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,49 @@ | ||
@import 'true'; | ||
@import 'mixin'; | ||
@import '../../tools/settings/function'; | ||
@import '../../tools/loop-mq/mixin'; | ||
|
||
$settings: ( | ||
'prefix': 'util', | ||
'loop-mq': true | ||
); | ||
|
||
$util-align-items-values: ( | ||
center, | ||
stretch | ||
); | ||
|
||
$media-queries: ( | ||
'sm': 40rem | ||
); | ||
|
||
@include describe('The align-items utility mixin') { | ||
@include it('outputs the proper utility classes') { | ||
@include assert { | ||
@include output { | ||
@include sparkle-align-items(); | ||
} | ||
@include expect { | ||
.util-align-items-center { | ||
align-items: center; | ||
} | ||
|
||
@media (min-width: 40rem) { | ||
.util-align-items-center\@sm { | ||
align-items: center; | ||
} | ||
} | ||
|
||
.util-align-items-stretch { | ||
align-items: stretch; | ||
} | ||
|
||
@media (min-width: 40rem) { | ||
.util-align-items-stretch\@sm { | ||
align-items: stretch; | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
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,38 @@ | ||
@import "mixin"; | ||
|
||
@if settings(utility-align-items) { | ||
/* --- | ||
title: Align Items Utility | ||
section: Utilities | ||
--- | ||
<table> | ||
<thead> | ||
<tr> | ||
<th>Class Name</th> | ||
<th>Property</th> | ||
</thead> | ||
<tbody> | ||
*/ | ||
|
||
// NOTE: This @each loop is only for document generation | ||
@each $value in $util-align-items-values { | ||
/* --- | ||
section: Utilities | ||
--- | ||
<tr> | ||
<td>`.#{settings(prefix)}-align-items-#{$value}`</td> | ||
<td>`align-items: #{$value}`</td> | ||
</tr> | ||
*/ | ||
} | ||
|
||
/* --- | ||
section: Utilities | ||
--- | ||
</tbody> | ||
</table> | ||
*/ | ||
|
||
// Load the mixin | ||
@include sparkle-align-items; | ||
} |
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,8 @@ | ||
$util-align-self-values: ( | ||
start, | ||
end, | ||
flex-start, | ||
flex-end, | ||
center, | ||
stretch | ||
) !default; |
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 @@ | ||
@mixin sparkle-align-self { | ||
@each $value in $util-align-self-values { | ||
.#{settings(prefix)}-align-self-#{$value} { | ||
@include loop-mq { | ||
align-self: $value; | ||
} | ||
} | ||
} | ||
} |
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,49 @@ | ||
@import 'true'; | ||
@import 'mixin'; | ||
@import '../../tools/settings/function'; | ||
@import '../../tools/loop-mq/mixin'; | ||
|
||
$settings: ( | ||
'prefix': 'util', | ||
'loop-mq': true | ||
); | ||
|
||
$util-align-self-values: ( | ||
center, | ||
stretch | ||
); | ||
|
||
$media-queries: ( | ||
'sm': 40rem | ||
); | ||
|
||
@include describe('The align-self utility mixin') { | ||
@include it('outputs the proper utility classes') { | ||
@include assert { | ||
@include output { | ||
@include sparkle-align-self(); | ||
} | ||
@include expect { | ||
.util-align-self-center { | ||
align-self: center; | ||
} | ||
|
||
@media (min-width: 40rem) { | ||
.util-align-self-center\@sm { | ||
align-self: center; | ||
} | ||
} | ||
|
||
.util-align-self-stretch { | ||
align-self: stretch; | ||
} | ||
|
||
@media (min-width: 40rem) { | ||
.util-align-self-stretch\@sm { | ||
align-self: stretch; | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
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,38 @@ | ||
@import "mixin"; | ||
|
||
@if settings(utility-align-self) { | ||
/* --- | ||
title: Align Self Utility | ||
section: Utilities | ||
--- | ||
<table> | ||
<thead> | ||
<tr> | ||
<th>Class Name</th> | ||
<th>Property</th> | ||
</thead> | ||
<tbody> | ||
*/ | ||
|
||
// NOTE: This @each loop is only for document generation | ||
@each $value in $util-align-self-values { | ||
/* --- | ||
section: Utilities | ||
--- | ||
<tr> | ||
<td>`.#{settings(prefix)}-align-self-#{$value}`</td> | ||
<td>`align-self: #{$value}`</td> | ||
</tr> | ||
*/ | ||
} | ||
|
||
/* --- | ||
section: Utilities | ||
--- | ||
</tbody> | ||
</table> | ||
*/ | ||
|
||
// Load the mixin | ||
@include sparkle-align-self; | ||
} |
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,6 @@ | ||
$util-flex-direction-values: ( | ||
row, | ||
row-reverse, | ||
column, | ||
column-reverse | ||
) !default; |
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 @@ | ||
@mixin sparkle-flex-direction { | ||
@each $value in $util-flex-direction-values { | ||
.#{settings(prefix)}-flex-#{$value} { | ||
@include loop-mq { | ||
flex-direction: $value; | ||
} | ||
} | ||
} | ||
} |
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,49 @@ | ||
@import 'true'; | ||
@import 'mixin'; | ||
@import '../../tools/settings/function'; | ||
@import '../../tools/loop-mq/mixin'; | ||
|
||
$settings: ( | ||
'prefix': 'util', | ||
'loop-mq': true | ||
); | ||
|
||
$util-flex-direction-values: ( | ||
row, | ||
column | ||
); | ||
|
||
$media-queries: ( | ||
'sm': 40rem | ||
); | ||
|
||
@include describe('The flex-direction utility mixin') { | ||
@include it('outputs the proper utility classes') { | ||
@include assert { | ||
@include output { | ||
@include sparkle-flex-direction(); | ||
} | ||
@include expect { | ||
.util-flex-row { | ||
flex-direction: row; | ||
} | ||
|
||
@media (min-width: 40rem) { | ||
.util-flex-row\@sm { | ||
flex-direction: row; | ||
} | ||
} | ||
|
||
.util-flex-column { | ||
flex-direction: column; | ||
} | ||
|
||
@media (min-width: 40rem) { | ||
.util-flex-column\@sm { | ||
flex-direction: column; | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
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,38 @@ | ||
@import "mixin"; | ||
|
||
@if settings(utility-flex-direction) { | ||
/* --- | ||
title: Flex Direction Utility | ||
section: Utilities | ||
--- | ||
<table> | ||
<thead> | ||
<tr> | ||
<th>Class Name</th> | ||
<th>Property</th> | ||
</thead> | ||
<tbody> | ||
*/ | ||
|
||
// NOTE: This @each loop is only for document generation | ||
@each $value in $util-flex-direction-values { | ||
/* --- | ||
section: Utilities | ||
--- | ||
<tr> | ||
<td>`.#{settings(prefix)}-flex-#{$value}`</td> | ||
<td>`flex-direction: #{$value}`</td> | ||
</tr> | ||
*/ | ||
} | ||
|
||
/* --- | ||
section: Utilities | ||
--- | ||
</tbody> | ||
</table> | ||
*/ | ||
|
||
// Load the mixin | ||
@include sparkle-flex-direction; | ||
} |
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 @@ | ||
@mixin sparkle-flex-grow { | ||
@for $value from 0 through 2 { | ||
.#{settings(prefix)}-flex-grow-#{$value} { | ||
@include loop-mq { | ||
flex-grow: $value; | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.