Skip to content

Commit

Permalink
feat(fab): add box shadow and transition for ios
Browse files Browse the repository at this point in the history
  • Loading branch information
brandyscarney committed Mar 21, 2018
1 parent 6e683c5 commit d26074a
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
11 changes: 11 additions & 0 deletions core/src/components/fab-button/fab-button.ios.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,25 @@
.fab-button-ios {
color: $fab-ios-text-color;
background-color: $fab-ios-background-color;

box-shadow: $fab-ios-box-shadow;

transition: $fab-ios-transition;
}

.fab-button-ios.activated {
background-color: $fab-ios-background-color-activated;

box-shadow: $fab-ios-box-shadow-activated;

transform: $fab-ios-transform;
transition: $fab-ios-transition-activated;
}

.fab-button-ios .icon {
fill: $fab-ios-icon-fill-color;

font-size: $fab-ios-icon-font-size;
}

// FAB buttons in a list
Expand Down
18 changes: 18 additions & 0 deletions core/src/components/fab-button/fab-button.ios.vars.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,21 @@
// iOS FAB Button
// --------------------------------------------------

/// @prop - Box shadow of the FAB button
$fab-ios-box-shadow: 0px 4px 16px rgba(0, 0, 0, .12) !default;

/// @prop - Box shadow of the activated FAB button
$fab-ios-box-shadow-activated: $fab-ios-box-shadow !default;

/// @prop - Transform of the FAB button
$fab-ios-transform: scale(1.1) !default;

/// @prop - Transition of the FAB button
$fab-ios-transition: .2s transform cubic-bezier(.25, 1.11, .78, 1.59) !default;

/// @prop - Transition of the activated FAB button
$fab-ios-transition-activated: .2s transform ease-out !default;

/// @prop - Background color of the button
$fab-ios-background-color: ion-color($colors-ios, primary, base, ios) !default;

Expand All @@ -15,6 +30,9 @@ $fab-ios-text-color: ion-color($colors-ios, $
/// @prop - Color of the button icon
$fab-ios-icon-fill-color: $fab-ios-text-color !default;

/// @prop - Font size of the button icon
$fab-ios-icon-font-size: 28px !default;

/// @prop - Background color of the activated button
$fab-ios-background-color-activated: ion-color($colors-ios, $fab-ios-background-color, tint, ios) !default;

Expand Down

0 comments on commit d26074a

Please sign in to comment.