Skip to content

Commit

Permalink
re-added css vars major
Browse files Browse the repository at this point in the history
  • Loading branch information
Runn Vermel committed Nov 30, 2016
1 parent 6fd22b5 commit 4338cf8
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 17 deletions.
4 changes: 4 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
v1.0.0
==================
* re-added css vars major

v0.2.23
==================
* removed css vars
Expand Down
20 changes: 7 additions & 13 deletions _objects.toggle.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,53 +14,47 @@
/// @type String [default]
$inuit-toggle-namespace : $inuit-namespace !default;

/// Sets the toggle foreground color.
///
/// @group px-toggle-design:variables:style
/// @type Color [default]
$inuit-toggle-color : $gray9 !default;

/// Sets the toggle switch color.
///
/// @group px-toggle-design:variables:style
/// @type Color [default]
$inuit-toggle-switch : $white !default;
$inuit-toggle-switch : var(--px-toggle-switch-color, $white) !default;

/// Sets the toggle switch border color.
///
/// @group px-toggle-design:variables:style
/// @type Color [default]
$inuit-toggle-switch-border : $gray2 !default;
$inuit-toggle-switch-border : var(--px-toggle-switch-border-color, $gray2) !default;

/// Sets the toggle switch shadow color.
///
/// @group px-toggle-design:variables:style
/// @type Color | String [default]
$inuit-toggle-switch-shadow : 0px 1px 0px rgba($black, .15) !default;
$inuit-toggle-switch-shadow : 0px 1px 0px var(--px-toggle-switch-shadow-color, rgba($black, .15)) !default;

/// Sets the toggle background color. This color is in use when the toggle is off/deactivated.
///
/// @group px-toggle-design:variables:style
/// @type Color [default]
$inuit-toggle-background : $gray4 !default;
$inuit-toggle-background : var(--px-toggle-backgound-color--off, $gray4) !default;

/// Sets the toggle border color. This color is in use when the toggle is off/deactivated.
///
/// @group px-toggle-design:variables:style
/// @type Color [default]
$inuit-toggle-border : $gray5 !default;
$inuit-toggle-border : var(--px-toggle-border-color--off, $gray5) !default;

/// Sets the toggle background color. This color is in use when the toggle is on/activated.
///
/// @group px-toggle-design:variables:style
/// @type Color [default]]
$inuit-toggle-background--on : $select-blue-default !default;
$inuit-toggle-background--on : var(--px-toggle-background-color--on, $select-blue-default) !default;

/// Sets the toggle border color. This color is in use when the toggle is on/activated.
///
/// @group px-toggle-design:variables:style
/// @type Color [default]]
$inuit-toggle-border--on : $select-blue-hover !default;
$inuit-toggle-border--on : var(--px-toggle-border-color--on, $select-blue-hover) !default;


/// Generates the CSS for small toggles if enabled.
Expand Down
9 changes: 7 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "px-toggle-design",
"version": "0.2.23",
"version": "1.0.0",
"authors": [
"General Electric"
],
Expand All @@ -19,7 +19,12 @@
"bower_components",
"test",
"tests",
"OSS_Notice.pdf"
"OSS_Notice.pdf",
"CONTRIBUTING.md",
"HISTORY.md",
"LICENSE.md",
"README.md",
"scripts"
],
"dependencies": {
"px-colors-design": "^0.2.20",
Expand Down
2 changes: 1 addition & 1 deletion css/px-toggle-design-demo.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "px-toggle-design",
"version": "0.2.23",
"version": "1.0.0",
"description": "Toggle is a simple on/off switch.",
"private": false,
"scripts": {
Expand Down

0 comments on commit 4338cf8

Please sign in to comment.