-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
10 changed files
with
182 additions
and
156 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
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 was deleted.
Oops, something went wrong.
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,74 +1,15 @@ | ||
// Private mixins scoped at the theme level. Change with discretion. | ||
// Private mixins scoped at the theme level | ||
|
||
// ---------- MIXIN DEPENDENCIES | ||
|
||
/// Sets prefixes for border-radius | ||
/// @param {string} $vert - The vertical direction of the border radius. | ||
/// @param {string} $horiz - The horizontal direction of the border radius. | ||
/// @param {number} $radius - The radius to set. | ||
/// @group theme | ||
/// @access private | ||
@mixin _bd($vert, $horiz, $radius) { | ||
-webkit-border-#{$vert}-#{$horiz}-radius: $radius; | ||
-moz-border-radius-#{$vert}#{$horiz}: $radius; | ||
border-#{$vert}-#{$horiz}-radius: $radius; | ||
} | ||
|
||
// _buildRadialGradient ( mixed $start, mixed $stop, boolean $ie ) | ||
@mixin _buildRadialGradient($start, $stop, $ie) { | ||
// TODO: needs multiple stop support | ||
// TODO: needs center adjustment support | ||
|
||
@if type-of($start) != "list" { | ||
$start: append($start, 0%, space); | ||
} | ||
|
||
@if type-of($stop) != "list" { | ||
$stop: append($stop, 100%, space); | ||
} | ||
|
||
background: nth($start, 1); | ||
background: -moz-radial-gradient(center, ellipse cover, nth($start, 1) nth($start, 2), nth($stop, 1) nth($stop, 2)); | ||
background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(nth($start, 2), nth($start, 1)), color-stop(nth($stop, 2), nth($stop, 1))); | ||
background: -webkit-radial-gradient(center, ellipse cover, nth($start, 1) nth($start, 2), nth($stop, 1) nth($stop, 2)); | ||
background: -o-radial-gradient(center, ellipse cover, nth($start, 1) nth($start, 2), nth($stop, 1) nth($stop, 2)); | ||
background: -ms-radial-gradient(center, ellipse cover, nth($start, 1) nth($start, 2), nth($stop, 1) nth($stop, 2)); | ||
background: radial-gradient(ellipse at center, nth($start, 1) nth($start, 2), nth($stop, 1) nth($stop, 2)); | ||
|
||
@if($ie) { | ||
@include filter-gradient($start, $stop, 1); | ||
} | ||
} | ||
|
||
// needs multiple stop support | ||
// _buildGradient ( string $direction, list $start, list $stop, boolean $ie ) | ||
@mixin _buildGradient($direction, $start, $stop, $ie) { | ||
$direction: unquote($direction); | ||
$webkitGradientDirection: ""; | ||
$linearGradientDirection: ""; | ||
$ieDirection: 0; | ||
|
||
@if($direction == left or $direction == horizontal) { | ||
$webkitGradientDirection: linear, left top, right top; | ||
$linearGradientDirection: to right; | ||
$ieDirection: 1; | ||
} @else if($direction == top or $direction == vertical) { | ||
$webkitGradientDirection: linear, left top, left bottom; | ||
$linearGradientDirection: to bottom; | ||
} @else if($direction == left top) { | ||
$direction: -45deg; | ||
$webkitGradientDirection: linear, left top, right bottom; | ||
$linearGradientDirection: 135deg; | ||
$ieDirection: 1; | ||
} @else if($direction == left bottom) { | ||
$direction: 45deg; | ||
$webkitGradientDirection: linear, left bottom, right top; | ||
$linearGradientDirection: $direction; | ||
$ieDirection: 1; | ||
} | ||
|
||
background: nth($start, 1); | ||
background: -moz-linear-gradient($direction, $start, $stop); | ||
background: -webkit-gradient($webkitGradientDirection, color-stop(nth($start, 1), nth($start, 2)), color-stop(nth($stop, 1), nth($stop, 2))); | ||
background: -webkit-linear-gradient($direction, $start, $stop); | ||
background: -o-linear-gradient($direction, $start, $stop); | ||
background: -ms-linear-gradient($direction, $start, $stop); | ||
background: linear-gradient($linearGradientDirection, $start, $stop); | ||
|
||
@if($ie) { | ||
@include filter-gradient(nth($start, 1), nth($stop, 1), $ieDirection); | ||
} | ||
} |
Oops, something went wrong.