123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- @import "../../themes/ionic.globals.ios";
-
- // iOS FAB Button
- // --------------------------------------------------
-
- /// @prop - Background color of the button
- $fab-ios-background-color: color($colors-ios, primary) !default;
-
- /// @prop - Text color of the button
- $fab-ios-text-color: color-contrast($colors-ios, $fab-ios-background-color) !default;
-
- /// @prop - Background color of the activated button
- $fab-ios-background-color-activated: color-shade($fab-ios-background-color) !default;
-
- /// @prop - Background color of the button in a list
- $fab-ios-list-button-background-color: $fab-list-button-background-color !default;
-
- /// @prop - Text color of the button in a list
- $fab-ios-list-button-text-color: color-contrast($colors-ios, $fab-ios-list-button-background-color) !default;
-
- /// @prop - Background color of the activated button in a list
- $fab-ios-list-button-background-color-activated: color-shade($fab-ios-list-button-background-color) !default;
-
- /// @prop - Transition duration of the transform and opacity of the button in a list
- $fab-ios-list-button-transition-duration: 200ms !default;
-
- /// @prop - Speed curve of the transition of the transform and opacity of the button in a list
- $fab-ios-list-button-transition-timing-function: ease !default;
-
- /// @prop - Transition delay of the transform and opacity of the button in a list
- $fab-ios-list-button-transition-delay: 10ms !default;
-
-
- .fab-ios {
- color: $fab-ios-text-color;
- background-color: $fab-ios-background-color;
- }
-
- .fab-ios.activated {
- background-color: $fab-ios-background-color-activated;
- }
-
- .fab-ios-in-list {
- color: $fab-ios-list-button-text-color;
- background-color: $fab-ios-list-button-background-color;
-
- transition: transform $fab-ios-list-button-transition-duration $fab-ios-list-button-transition-timing-function $fab-ios-list-button-transition-delay,
- opacity $fab-ios-list-button-transition-duration $fab-ios-list-button-transition-timing-function $fab-ios-list-button-transition-delay;
- }
-
- .fab-ios-in-list.activated {
- background-color: $fab-ios-list-button-background-color-activated;
- }
-
-
- // Generate iOS FAB colors
- // --------------------------------------------------
-
- @each $color-name, $color-base, $color-contrast in get-colors($colors-ios) {
-
- $bg-color: $color-base;
- $bg-color-activated: color-shade($bg-color);
- $fg-color: $color-contrast;
-
- .fab-ios-#{$color-name} {
- color: $fg-color;
- background-color: $bg-color;
- }
-
- .fab-ios-#{$color-name}.activated {
- background-color: $bg-color-activated;
- }
- }
-
|