ng2-floating-action-menu
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -0,0 +0,0 @@ import { OnInit } from '@angular/core'; |
@@ -0,0 +0,0 @@ export declare class FloatingActionButton { |
@@ -0,0 +0,0 @@ import { OnInit } from '@angular/core'; |
@@ -0,0 +0,0 @@ import { ModuleWithProviders } from '@angular/core'; |
12
index.js
import { Component, Input, NgModule } from '@angular/core'; | ||
import { CommonModule } from '@angular/common'; | ||
var FloatingActionButton = (function () { | ||
function FloatingActionButton() { | ||
} | ||
return FloatingActionButton; | ||
}()); | ||
var FloatingActionMenuComponent = (function () { | ||
@@ -124,7 +130,9 @@ function FloatingActionMenuComponent() { | ||
FloatingActionMenuComponent, | ||
FloatingActionButtonComponent | ||
FloatingActionButtonComponent, | ||
FloatingActionButton | ||
], | ||
exports: [ | ||
FloatingActionMenuComponent, | ||
FloatingActionButtonComponent | ||
FloatingActionButtonComponent, | ||
FloatingActionButton | ||
] | ||
@@ -131,0 +139,0 @@ },] }, |
@@ -5,3 +5,4 @@ /** | ||
export * from './index'; | ||
export { FloatingActionButton as ɵc } from './floating-action-menu/floating-action-button'; | ||
export { FloatingActionButtonComponent as ɵb } from './floating-action-menu/floating-action-button.component'; | ||
export { FloatingActionMenuComponent as ɵa } from './floating-action-menu/floating-action-menu.component'; |
@@ -1,1 +0,1 @@ | ||
{"__symbolic":"module","version":3,"metadata":{"FloatingActionMenuModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule"}],"declarations":[{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","name":"ɵb"}],"exports":[{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","name":"ɵb"}]}]}],"members":{},"statics":{"forRoot":{"__symbolic":"function","parameters":[],"value":{"ngModule":{"__symbolic":"reference","name":"FloatingActionMenuModule"},"providers":[]}}}},"ɵa":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"ng2-floating-action-menu","template":"<ul mfb-menu class=\"mfb-component--{{placement}} {{effect}}\" [attr.data-mfb-state]=\"state\" [attr.toggling-method]=\"toggle\" [attr.data-mfb-toggle]=\"toggle\"> <li class=\"mfb-component__wrap\"> <a class=\"mfb-component__button--main\" [attr.data-mfb-label]=\"label\" (click)=\"clicked()\" (mouseenter)=\"entered()\" (mouseleave)=\"leaved()\"> <!-- the main button icon visibile by default --> <i class=\"mfb-component__main-icon--resting {{iconClass}}\"></i> <!-- the main button icon visibile when the user is hovering/interacting with the menu --> <i class=\"mfb-component__main-icon--active {{activeIconClass}}\"></i> </a> <ul class=\"mfb-component__list\"> <!-- a child button, repeat as many times as needed --> <li *ngFor=\"let button of buttons\"> <ng2-floating-action-button [button]=\"button\"></ng2-floating-action-button> </li> </ul> </li> </ul> ","styles":["/** * CONTENTS * * #Introduction........Naming conventions used throughout the code. * * #SETTINGS * Variables............Globally-available variables and config. * * #TOOLS * Mixins...............Useful mixins. * * #GENERIC * Demo styles..........Styles for demo only (consider removing these). * * #BASE * Raw styles...........The very basic component wrapper. * Modifiers............The basic styles dependant on component placement. * Debuggers............The basic styles dependant on component placement. * * #BUTTONS * Base..................Wrapping and constraining every button. * Modifiers.............Styles that depends on state and settings. * Animations............Main animations of the component. * Debuggers.............Styles for development. * * #LABELS * Base..................Wrapping and constraining every label. * Modifiers.............Styles that depends on state and settings. * Debuggers.............Styles for development. * * #DEVELOPMENT * In development........These styles are in development and not yet finalised * Debuggers.............Helper styles and flags for development. */ /*------------------------------------* #Introduction *------------------------------------*/ /** * The code AND the comments use naming conventions to refer to each part of * the UI put in place by this component. If you see that somewhere they are * not followed please consider a Pull Request. The naming conventions are: * * \"Component\" : the widget itself as a whole. This is the last time it will be * called anything different than \"component\". So, stay away from * \"widget\", \"button\" or anything else when referring to the * Component in general. * * \"Main Button\" : the button that is always in view. Hovering or clicking on it * will reveal the child buttons. * * \"Child buttons\" : if you've read the previous point you know what they are. * Did you read the previous point? :) * * \"Label(s)\" : the tooltip that fades in when hovering over a button. /*------------------------------------* #SETTINGS | Variables *------------------------------------*/ /** * These variables are the default styles that serve as fallback and can be * easily customised at compile time. * Consider overriding them in your own style sheets rather than editing them * here. Refer to the docs for more info. */ /* COLORS ----------------------------*/ /* EFFECTS ---------------------------*/ /* SPEEDS ----------------------------*/ /* SIZES -----------------------------*/ /* SPACING ---------------------------*/ /* OTHER VARIABLES -------------------*/ /*------------------------------------* #BASE | Raw styles *------------------------------------*/ /** * The very core styling of the button. * These styles are shared by every instance of the button. * Styles placed here should NOT care about placement in the screen, * options chosen by the user or state of the button. */ .mfb-component--tl, .mfb-component--tr, .mfb-component--bl, .mfb-component--br { box-sizing: border-box; margin: 25px; position: fixed; white-space: nowrap; z-index: 30; padding-left: 0; list-style: none; } .mfb-component--tl *, .mfb-component--tr *, .mfb-component--bl *, .mfb-component--br *, .mfb-component--tl *:before, .mfb-component--tr *:before, .mfb-component--bl *:before, .mfb-component--br *:before, .mfb-component--tl *:after, .mfb-component--tr *:after, .mfb-component--bl *:after, .mfb-component--br *:after { box-sizing: inherit; } /*------------------------------------* #BASE | Modifiers *------------------------------------*/ /** * These styles depends on the placement of the button. * Styles can be: * 1. Top-left: modified by the \" --tl \" suffix. * 2. Top-right: modified by the \" --tr \" suffix. * 3. Bottom-left: modified by the \" --bl \" suffix. * 4. Bottom-right: modified by the \" --br \" suffix. */ .mfb-component--tl { left: 0; top: 0; } .mfb-component--tr { right: 0; top: 0; } .mfb-component--bl { left: 0; bottom: 0; } .mfb-component--br { right: 0; bottom: 0; } /*------------------------------------* #BUTTONS | Base *------------------------------------*/ .mfb-component__button--main, /deep/ .mfb-component__button--child { background-color: #E40A5D; display: inline-block; position: relative; border: none; border-radius: 50%; box-shadow: 0 0 4px rgba(0, 0, 0, 0.14), 0 4px 8px rgba(0, 0, 0, 0.28); cursor: pointer; outline: none; padding: 0; position: relative; -webkit-user-drag: none; color: #f1f1f1; } /** * This is the unordered list for the list items that contain * the child buttons. * */ .mfb-component__list { list-style: none; margin: 0; padding: 0; } .mfb-component__list > li { display: block; position: absolute; top: 0; right: 1px; padding: 10px 0; margin: -10px 0; } /** * These are the basic styles for all the icons inside the main button */ .mfb-component__icon, .mfb-component__main-icon--active, .mfb-component__main-icon--resting, /deep/ .mfb-component__child-icon { position: absolute; font-size: 18px; text-align: center; line-height: 56px; width: 100%; } .mfb-component__wrap { padding: 25px; margin: -25px; } [data-mfb-toggle=\"hover\"]:hover .mfb-component__icon, [data-mfb-toggle=\"hover\"]:hover .mfb-component__main-icon--active, [data-mfb-toggle=\"hover\"]:hover .mfb-component__main-icon--resting, [data-mfb-toggle=\"hover\"]:hover /deep/ .mfb-component__child-icon, /deep/ [data-mfb-toggle=\"hover\"]:hover .mfb-component__child-icon, [data-mfb-state=\"open\"] .mfb-component__icon, [data-mfb-state=\"open\"] .mfb-component__main-icon--active, [data-mfb-state=\"open\"] .mfb-component__main-icon--resting, [data-mfb-state=\"open\"] /deep/ .mfb-component__child-icon, /deep/ [data-mfb-state=\"open\"] .mfb-component__child-icon { -webkit-transform: scale(1) rotate(0deg); transform: scale(1) rotate(0deg); } /*------------------------------------* #BUTTONS | Modifiers *------------------------------------*/ .mfb-component__button--main { height: 56px; width: 56px; z-index: 20; } /deep/ .mfb-component__button--child { height: 56px; width: 56px; } .mfb-component__main-icon--active, .mfb-component__main-icon--resting { -webkit-transform: scale(1) rotate(360deg); transform: scale(1) rotate(360deg); -webkit-transition: -webkit-transform 150ms cubic-bezier(0.4, 0, 1, 1); transition: transform 150ms cubic-bezier(0.4, 0, 1, 1); } /deep/ .mfb-component__child-icon, /deep/ .mfb-component__child-icon { line-height: 56px; font-size: 18px; } .mfb-component__main-icon--active { opacity: 0; } [data-mfb-toggle=\"hover\"]:hover .mfb-component__main-icon, [data-mfb-state=\"open\"] .mfb-component__main-icon { -webkit-transform: scale(1) rotate(0deg); transform: scale(1) rotate(0deg); } [data-mfb-toggle=\"hover\"]:hover .mfb-component__main-icon--resting, [data-mfb-state=\"open\"] .mfb-component__main-icon--resting { opacity: 0; position: absolute !important; } [data-mfb-toggle=\"hover\"]:hover .mfb-component__main-icon--active, [data-mfb-state=\"open\"] .mfb-component__main-icon--active { opacity: 1; } /*------------------------------------* #BUTTONS | Animations *------------------------------------*/ /** * SLIDE IN + FADE * When hovering the main button, the child buttons slide out from beneath * the main button while transitioning from transparent to opaque. * */ .mfb-component--tl.mfb-slidein .mfb-component__list li, .mfb-component--tr.mfb-slidein .mfb-component__list li { opacity: 0; transition: all 0.5s; } .mfb-component--tl.mfb-slidein[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li, .mfb-component--tl.mfb-slidein[data-mfb-state=\"open\"] .mfb-component__list li, .mfb-component--tr.mfb-slidein[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li, .mfb-component--tr.mfb-slidein[data-mfb-state=\"open\"] .mfb-component__list li { opacity: 1; } .mfb-component--tl.mfb-slidein[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(1), .mfb-component--tl.mfb-slidein[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(1), .mfb-component--tr.mfb-slidein[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(1), .mfb-component--tr.mfb-slidein[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(1) { -webkit-transform: translateY(70px); transform: translateY(70px); } .mfb-component--tl.mfb-slidein[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(2), .mfb-component--tl.mfb-slidein[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(2), .mfb-component--tr.mfb-slidein[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(2), .mfb-component--tr.mfb-slidein[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(2) { -webkit-transform: translateY(140px); transform: translateY(140px); } .mfb-component--tl.mfb-slidein[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(3), .mfb-component--tl.mfb-slidein[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(3), .mfb-component--tr.mfb-slidein[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(3), .mfb-component--tr.mfb-slidein[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(3) { -webkit-transform: translateY(210px); transform: translateY(210px); } .mfb-component--tl.mfb-slidein[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(4), .mfb-component--tl.mfb-slidein[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(4), .mfb-component--tr.mfb-slidein[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(4), .mfb-component--tr.mfb-slidein[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(4) { -webkit-transform: translateY(280px); transform: translateY(280px); } .mfb-component--bl.mfb-slidein .mfb-component__list li, .mfb-component--br.mfb-slidein .mfb-component__list li { opacity: 0; transition: all 0.5s; } .mfb-component--bl.mfb-slidein[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li, .mfb-component--bl.mfb-slidein[data-mfb-state=\"open\"] .mfb-component__list li, .mfb-component--br.mfb-slidein[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li, .mfb-component--br.mfb-slidein[data-mfb-state=\"open\"] .mfb-component__list li { opacity: 1; } .mfb-component--bl.mfb-slidein[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(1), .mfb-component--bl.mfb-slidein[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(1), .mfb-component--br.mfb-slidein[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(1), .mfb-component--br.mfb-slidein[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(1) { -webkit-transform: translateY(-70px); transform: translateY(-70px); } .mfb-component--bl.mfb-slidein[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(2), .mfb-component--bl.mfb-slidein[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(2), .mfb-component--br.mfb-slidein[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(2), .mfb-component--br.mfb-slidein[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(2) { -webkit-transform: translateY(-140px); transform: translateY(-140px); } .mfb-component--bl.mfb-slidein[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(3), .mfb-component--bl.mfb-slidein[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(3), .mfb-component--br.mfb-slidein[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(3), .mfb-component--br.mfb-slidein[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(3) { -webkit-transform: translateY(-210px); transform: translateY(-210px); } .mfb-component--bl.mfb-slidein[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(4), .mfb-component--bl.mfb-slidein[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(4), .mfb-component--br.mfb-slidein[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(4), .mfb-component--br.mfb-slidein[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(4) { -webkit-transform: translateY(-280px); transform: translateY(-280px); } /** * SLIDE IN SPRING * Same as slide-in but with a springy animation. * */ .mfb-component--tl.mfb-slidein-spring .mfb-component__list li, .mfb-component--tr.mfb-slidein-spring .mfb-component__list li { opacity: 0; transition: all 0.5s; transition-timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55); } .mfb-component--tl.mfb-slidein-spring .mfb-component__list li:nth-child(1), .mfb-component--tr.mfb-slidein-spring .mfb-component__list li:nth-child(1) { transition-delay: 0.05s; } .mfb-component--tl.mfb-slidein-spring .mfb-component__list li:nth-child(2), .mfb-component--tr.mfb-slidein-spring .mfb-component__list li:nth-child(2) { transition-delay: 0.1s; } .mfb-component--tl.mfb-slidein-spring .mfb-component__list li:nth-child(3), .mfb-component--tr.mfb-slidein-spring .mfb-component__list li:nth-child(3) { transition-delay: 0.15s; } .mfb-component--tl.mfb-slidein-spring .mfb-component__list li:nth-child(4), .mfb-component--tr.mfb-slidein-spring .mfb-component__list li:nth-child(4) { transition-delay: 0.2s; } .mfb-component--tl.mfb-slidein-spring[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li, .mfb-component--tl.mfb-slidein-spring[data-mfb-state=\"open\"] .mfb-component__list li, .mfb-component--tr.mfb-slidein-spring[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li, .mfb-component--tr.mfb-slidein-spring[data-mfb-state=\"open\"] .mfb-component__list li { opacity: 1; } .mfb-component--tl.mfb-slidein-spring[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(1), .mfb-component--tl.mfb-slidein-spring[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(1), .mfb-component--tr.mfb-slidein-spring[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(1), .mfb-component--tr.mfb-slidein-spring[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(1) { transition-delay: 0.05s; -webkit-transform: translateY(70px); transform: translateY(70px); } .mfb-component--tl.mfb-slidein-spring[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(2), .mfb-component--tl.mfb-slidein-spring[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(2), .mfb-component--tr.mfb-slidein-spring[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(2), .mfb-component--tr.mfb-slidein-spring[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(2) { transition-delay: 0.1s; -webkit-transform: translateY(140px); transform: translateY(140px); } .mfb-component--tl.mfb-slidein-spring[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(3), .mfb-component--tl.mfb-slidein-spring[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(3), .mfb-component--tr.mfb-slidein-spring[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(3), .mfb-component--tr.mfb-slidein-spring[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(3) { transition-delay: 0.15s; -webkit-transform: translateY(210px); transform: translateY(210px); } .mfb-component--tl.mfb-slidein-spring[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(4), .mfb-component--tl.mfb-slidein-spring[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(4), .mfb-component--tr.mfb-slidein-spring[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(4), .mfb-component--tr.mfb-slidein-spring[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(4) { transition-delay: 0.2s; -webkit-transform: translateY(280px); transform: translateY(280px); } .mfb-component--bl.mfb-slidein-spring .mfb-component__list li, .mfb-component--br.mfb-slidein-spring .mfb-component__list li { opacity: 0; transition: all 0.5s; transition-timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55); } .mfb-component--bl.mfb-slidein-spring .mfb-component__list li:nth-child(1), .mfb-component--br.mfb-slidein-spring .mfb-component__list li:nth-child(1) { transition-delay: 0.05s; } .mfb-component--bl.mfb-slidein-spring .mfb-component__list li:nth-child(2), .mfb-component--br.mfb-slidein-spring .mfb-component__list li:nth-child(2) { transition-delay: 0.1s; } .mfb-component--bl.mfb-slidein-spring .mfb-component__list li:nth-child(3), .mfb-component--br.mfb-slidein-spring .mfb-component__list li:nth-child(3) { transition-delay: 0.15s; } .mfb-component--bl.mfb-slidein-spring .mfb-component__list li:nth-child(4), .mfb-component--br.mfb-slidein-spring .mfb-component__list li:nth-child(4) { transition-delay: 0.2s; } .mfb-component--bl.mfb-slidein-spring[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li, .mfb-component--bl.mfb-slidein-spring[data-mfb-state=\"open\"] .mfb-component__list li, .mfb-component--br.mfb-slidein-spring[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li, .mfb-component--br.mfb-slidein-spring[data-mfb-state=\"open\"] .mfb-component__list li { opacity: 1; } .mfb-component--bl.mfb-slidein-spring[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(1), .mfb-component--bl.mfb-slidein-spring[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(1), .mfb-component--br.mfb-slidein-spring[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(1), .mfb-component--br.mfb-slidein-spring[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(1) { transition-delay: 0.05s; -webkit-transform: translateY(-70px); transform: translateY(-70px); } .mfb-component--bl.mfb-slidein-spring[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(2), .mfb-component--bl.mfb-slidein-spring[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(2), .mfb-component--br.mfb-slidein-spring[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(2), .mfb-component--br.mfb-slidein-spring[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(2) { transition-delay: 0.1s; -webkit-transform: translateY(-140px); transform: translateY(-140px); } .mfb-component--bl.mfb-slidein-spring[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(3), .mfb-component--bl.mfb-slidein-spring[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(3), .mfb-component--br.mfb-slidein-spring[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(3), .mfb-component--br.mfb-slidein-spring[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(3) { transition-delay: 0.15s; -webkit-transform: translateY(-210px); transform: translateY(-210px); } .mfb-component--bl.mfb-slidein-spring[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(4), .mfb-component--bl.mfb-slidein-spring[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(4), .mfb-component--br.mfb-slidein-spring[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(4), .mfb-component--br.mfb-slidein-spring[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(4) { transition-delay: 0.2s; -webkit-transform: translateY(-280px); transform: translateY(-280px); } /** * ZOOM-IN * When hovering the main button, the child buttons grow * from zero to normal size. * */ .mfb-component--tl.mfb-zoomin .mfb-component__list li, .mfb-component--tr.mfb-zoomin .mfb-component__list li { -webkit-transform: scale(0); transform: scale(0); } .mfb-component--tl.mfb-zoomin .mfb-component__list li:nth-child(1), .mfb-component--tr.mfb-zoomin .mfb-component__list li:nth-child(1) { -webkit-transform: translateY(70px) scale(0); transform: translateY(70px) scale(0); transition: all 0.5s; transition-delay: 0.15s; } .mfb-component--tl.mfb-zoomin .mfb-component__list li:nth-child(2), .mfb-component--tr.mfb-zoomin .mfb-component__list li:nth-child(2) { -webkit-transform: translateY(140px) scale(0); transform: translateY(140px) scale(0); transition: all 0.5s; transition-delay: 0.1s; } .mfb-component--tl.mfb-zoomin .mfb-component__list li:nth-child(3), .mfb-component--tr.mfb-zoomin .mfb-component__list li:nth-child(3) { -webkit-transform: translateY(210px) scale(0); transform: translateY(210px) scale(0); transition: all 0.5s; transition-delay: 0.05s; } .mfb-component--tl.mfb-zoomin .mfb-component__list li:nth-child(4), .mfb-component--tr.mfb-zoomin .mfb-component__list li:nth-child(4) { -webkit-transform: translateY(280px) scale(0); transform: translateY(280px) scale(0); transition: all 0.5s; transition-delay: 0s; } .mfb-component--tl.mfb-zoomin[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(1), .mfb-component--tl.mfb-zoomin[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(1), .mfb-component--tr.mfb-zoomin[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(1), .mfb-component--tr.mfb-zoomin[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(1) { -webkit-transform: translateY(70px) scale(1); transform: translateY(70px) scale(1); transition-delay: 0.05s; } .mfb-component--tl.mfb-zoomin[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(2), .mfb-component--tl.mfb-zoomin[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(2), .mfb-component--tr.mfb-zoomin[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(2), .mfb-component--tr.mfb-zoomin[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(2) { -webkit-transform: translateY(140px) scale(1); transform: translateY(140px) scale(1); transition-delay: 0.1s; } .mfb-component--tl.mfb-zoomin[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(3), .mfb-component--tl.mfb-zoomin[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(3), .mfb-component--tr.mfb-zoomin[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(3), .mfb-component--tr.mfb-zoomin[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(3) { -webkit-transform: translateY(210px) scale(1); transform: translateY(210px) scale(1); transition-delay: 0.15s; } .mfb-component--tl.mfb-zoomin[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(4), .mfb-component--tl.mfb-zoomin[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(4), .mfb-component--tr.mfb-zoomin[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(4), .mfb-component--tr.mfb-zoomin[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(4) { -webkit-transform: translateY(280px) scale(1); transform: translateY(280px) scale(1); transition-delay: 0.2s; } .mfb-component--bl.mfb-zoomin .mfb-component__list li, .mfb-component--br.mfb-zoomin .mfb-component__list li { -webkit-transform: scale(0); transform: scale(0); } .mfb-component--bl.mfb-zoomin .mfb-component__list li:nth-child(1), .mfb-component--br.mfb-zoomin .mfb-component__list li:nth-child(1) { -webkit-transform: translateY(-70px) scale(0); transform: translateY(-70px) scale(0); transition: all 0.5s; transition-delay: 0.15s; } .mfb-component--bl.mfb-zoomin .mfb-component__list li:nth-child(2), .mfb-component--br.mfb-zoomin .mfb-component__list li:nth-child(2) { -webkit-transform: translateY(-140px) scale(0); transform: translateY(-140px) scale(0); transition: all 0.5s; transition-delay: 0.1s; } .mfb-component--bl.mfb-zoomin .mfb-component__list li:nth-child(3), .mfb-component--br.mfb-zoomin .mfb-component__list li:nth-child(3) { -webkit-transform: translateY(-210px) scale(0); transform: translateY(-210px) scale(0); transition: all 0.5s; transition-delay: 0.05s; } .mfb-component--bl.mfb-zoomin .mfb-component__list li:nth-child(4), .mfb-component--br.mfb-zoomin .mfb-component__list li:nth-child(4) { -webkit-transform: translateY(-280px) scale(0); transform: translateY(-280px) scale(0); transition: all 0.5s; transition-delay: 0s; } .mfb-component--bl.mfb-zoomin[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(1), .mfb-component--bl.mfb-zoomin[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(1), .mfb-component--br.mfb-zoomin[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(1), .mfb-component--br.mfb-zoomin[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(1) { -webkit-transform: translateY(-70px) scale(1); transform: translateY(-70px) scale(1); transition-delay: 0.05s; } .mfb-component--bl.mfb-zoomin[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(2), .mfb-component--bl.mfb-zoomin[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(2), .mfb-component--br.mfb-zoomin[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(2), .mfb-component--br.mfb-zoomin[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(2) { -webkit-transform: translateY(-140px) scale(1); transform: translateY(-140px) scale(1); transition-delay: 0.1s; } .mfb-component--bl.mfb-zoomin[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(3), .mfb-component--bl.mfb-zoomin[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(3), .mfb-component--br.mfb-zoomin[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(3), .mfb-component--br.mfb-zoomin[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(3) { -webkit-transform: translateY(-210px) scale(1); transform: translateY(-210px) scale(1); transition-delay: 0.15s; } .mfb-component--bl.mfb-zoomin[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(4), .mfb-component--bl.mfb-zoomin[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(4), .mfb-component--br.mfb-zoomin[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(4), .mfb-component--br.mfb-zoomin[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(4) { -webkit-transform: translateY(-280px) scale(1); transform: translateY(-280px) scale(1); transition-delay: 0.2s; } /** * FOUNTAIN * When hovering the main button the child buttons * jump into view from outside the viewport */ .mfb-component--tl.mfb-fountain .mfb-component__list li, .mfb-component--tr.mfb-fountain .mfb-component__list li { -webkit-transform: scale(0); transform: scale(0); } .mfb-component--tl.mfb-fountain .mfb-component__list li:nth-child(1), .mfb-component--tr.mfb-fountain .mfb-component__list li:nth-child(1) { -webkit-transform: translateY(-70px) scale(0); transform: translateY(-70px) scale(0); transition: all 0.5s; transition-delay: 0.15s; } .mfb-component--tl.mfb-fountain .mfb-component__list li:nth-child(2), .mfb-component--tr.mfb-fountain .mfb-component__list li:nth-child(2) { -webkit-transform: translateY(-140px) scale(0); transform: translateY(-140px) scale(0); transition: all 0.5s; transition-delay: 0.1s; } .mfb-component--tl.mfb-fountain .mfb-component__list li:nth-child(3), .mfb-component--tr.mfb-fountain .mfb-component__list li:nth-child(3) { -webkit-transform: translateY(-210px) scale(0); transform: translateY(-210px) scale(0); transition: all 0.5s; transition-delay: 0.05s; } .mfb-component--tl.mfb-fountain .mfb-component__list li:nth-child(4), .mfb-component--tr.mfb-fountain .mfb-component__list li:nth-child(4) { -webkit-transform: translateY(-280px) scale(0); transform: translateY(-280px) scale(0); transition: all 0.5s; transition-delay: 0s; } .mfb-component--tl.mfb-fountain[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(1), .mfb-component--tl.mfb-fountain[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(1), .mfb-component--tr.mfb-fountain[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(1), .mfb-component--tr.mfb-fountain[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(1) { -webkit-transform: translateY(70px) scale(1); transform: translateY(70px) scale(1); transition-delay: 0.05s; } .mfb-component--tl.mfb-fountain[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(2), .mfb-component--tl.mfb-fountain[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(2), .mfb-component--tr.mfb-fountain[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(2), .mfb-component--tr.mfb-fountain[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(2) { -webkit-transform: translateY(140px) scale(1); transform: translateY(140px) scale(1); transition-delay: 0.1s; } .mfb-component--tl.mfb-fountain[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(3), .mfb-component--tl.mfb-fountain[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(3), .mfb-component--tr.mfb-fountain[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(3), .mfb-component--tr.mfb-fountain[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(3) { -webkit-transform: translateY(210px) scale(1); transform: translateY(210px) scale(1); transition-delay: 0.15s; } .mfb-component--tl.mfb-fountain[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(4), .mfb-component--tl.mfb-fountain[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(4), .mfb-component--tr.mfb-fountain[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(4), .mfb-component--tr.mfb-fountain[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(4) { -webkit-transform: translateY(280px) scale(1); transform: translateY(280px) scale(1); transition-delay: 0.2s; } .mfb-component--bl.mfb-fountain .mfb-component__list li, .mfb-component--br.mfb-fountain .mfb-component__list li { -webkit-transform: scale(0); transform: scale(0); } .mfb-component--bl.mfb-fountain .mfb-component__list li:nth-child(1), .mfb-component--br.mfb-fountain .mfb-component__list li:nth-child(1) { -webkit-transform: translateY(70px) scale(0); transform: translateY(70px) scale(0); transition: all 0.5s; transition-delay: 0.15s; } .mfb-component--bl.mfb-fountain .mfb-component__list li:nth-child(2), .mfb-component--br.mfb-fountain .mfb-component__list li:nth-child(2) { -webkit-transform: translateY(140px) scale(0); transform: translateY(140px) scale(0); transition: all 0.5s; transition-delay: 0.1s; } .mfb-component--bl.mfb-fountain .mfb-component__list li:nth-child(3), .mfb-component--br.mfb-fountain .mfb-component__list li:nth-child(3) { -webkit-transform: translateY(210px) scale(0); transform: translateY(210px) scale(0); transition: all 0.5s; transition-delay: 0.05s; } .mfb-component--bl.mfb-fountain .mfb-component__list li:nth-child(4), .mfb-component--br.mfb-fountain .mfb-component__list li:nth-child(4) { -webkit-transform: translateY(280px) scale(0); transform: translateY(280px) scale(0); transition: all 0.5s; transition-delay: 0s; } .mfb-component--bl.mfb-fountain[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(1), .mfb-component--bl.mfb-fountain[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(1), .mfb-component--br.mfb-fountain[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(1), .mfb-component--br.mfb-fountain[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(1) { -webkit-transform: translateY(-70px) scale(1); transform: translateY(-70px) scale(1); transition-delay: 0.05s; } .mfb-component--bl.mfb-fountain[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(2), .mfb-component--bl.mfb-fountain[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(2), .mfb-component--br.mfb-fountain[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(2), .mfb-component--br.mfb-fountain[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(2) { -webkit-transform: translateY(-140px) scale(1); transform: translateY(-140px) scale(1); transition-delay: 0.1s; } .mfb-component--bl.mfb-fountain[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(3), .mfb-component--bl.mfb-fountain[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(3), .mfb-component--br.mfb-fountain[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(3), .mfb-component--br.mfb-fountain[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(3) { -webkit-transform: translateY(-210px) scale(1); transform: translateY(-210px) scale(1); transition-delay: 0.15s; } .mfb-component--bl.mfb-fountain[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(4), .mfb-component--bl.mfb-fountain[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(4), .mfb-component--br.mfb-fountain[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(4), .mfb-component--br.mfb-fountain[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(4) { -webkit-transform: translateY(-280px) scale(1); transform: translateY(-280px) scale(1); transition-delay: 0.2s; } /*------------------------------------* #LABELS | base *------------------------------------*/ /** * These are the labels associated to each button, * exposed only when hovering the related button. * They are called labels but are in fact data-attributes of * each button (an anchor tag). */ /deep/ [data-mfb-label]:after { content: attr(data-mfb-label); opacity: 0; transition: all 0.5s; background: rgba(0, 0, 0, 0.4); padding: 4px 10px; border-radius: 3px; color: rgba(255, 255, 255, 0.8); font-size: 14px; font-weight: normal; pointer-events: none; line-height: normal; position: absolute; top: 50%; margin-top: -11px; transition: all 0.5s; } /deep/ [data-mfb-toggle=\"hover\"] [data-mfb-label]:hover:after, /deep/ [data-mfb-state=\"open\"] [data-mfb-label]:after { content: attr(data-mfb-label); opacity: 1; transition: all 0.3s; } /*------------------------------------* #LABELS | Modifiers *------------------------------------*/ /deep/ .mfb-component--br /deep/ [data-mfb-label]:after, .mfb-component--tr /deep/ [data-mfb-label]:after { content: attr(data-mfb-label); right: 70px; } /deep/ .mfb-component--br .mfb-component__list /deep/ [data-mfb-label]:after, .mfb-component--tr .mfb-component__list /deep/ [data-mfb-label]:after { content: attr(data-mfb-label); right: 70px; } /deep/ .mfb-component--tl /deep/ [data-mfb-label]:after, .mfb-component--bl /deep/ [data-mfb-label]:after { content: attr(data-mfb-label); left: 70px; } /deep/ .mfb-component--tl .mfb-component__list /deep/ [data-mfb-label]:after, .mfb-component--bl .mfb-component__list /deep/ [data-mfb-label]:after { content: attr(data-mfb-label); left: 70px; } /*------------------------------------* #DEVELOPMENT | In development *------------------------------------*/ /** * This part is where unfinished code should stay. * When a feature is ready(sh) move these styles to their proper place. */ /*------------------------------------* #DEVELOPMENT | Debuggers *------------------------------------*/ /** * These are mainly helpers for development. They do not have to end up * in production but it's handy to keep them when developing. */ /** * Apply this class to the html tag when developing the slide-in button */ "]}]}],"members":{"placement":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"effect":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"label":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"iconClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"activeIconClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"toggle":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"buttons":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor"}],"clicked":[{"__symbolic":"method"}],"entered":[{"__symbolic":"method"}],"leaved":[{"__symbolic":"method"}],"ngOnInit":[{"__symbolic":"method"}]}},"ɵb":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"ng2-floating-action-button","template":"<a href [attr.data-mfb-label]=\"button.label\" (click)=\"buttonClick()\" class=\"mfb-component__button--child\"> <i class=\"mfb-component__child-icon {{button.iconClass}}\"></i> </a> ","styles":[""]}]}],"members":{"button":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"buttonClick":[{"__symbolic":"method"}],"ngOnInit":[{"__symbolic":"method"}]}}},"origins":{"FloatingActionMenuModule":"./index","ɵa":"./floating-action-menu/floating-action-menu.component","ɵb":"./floating-action-menu/floating-action-button.component"},"importAs":"ng2-floating-action-menu"} | ||
{"__symbolic":"module","version":3,"metadata":{"FloatingActionMenuModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule"}],"declarations":[{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","name":"ɵb"},{"__symbolic":"reference","name":"ɵc"}],"exports":[{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","name":"ɵb"},{"__symbolic":"reference","name":"ɵc"}]}]}],"members":{},"statics":{"forRoot":{"__symbolic":"function","parameters":[],"value":{"ngModule":{"__symbolic":"reference","name":"FloatingActionMenuModule"},"providers":[]}}}},"ɵa":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"ng2-floating-action-menu","template":"<ul mfb-menu class=\"mfb-component--{{placement}} {{effect}}\" [attr.data-mfb-state]=\"state\" [attr.toggling-method]=\"toggle\" [attr.data-mfb-toggle]=\"toggle\"> <li class=\"mfb-component__wrap\"> <a class=\"mfb-component__button--main\" [attr.data-mfb-label]=\"label\" (click)=\"clicked()\" (mouseenter)=\"entered()\" (mouseleave)=\"leaved()\"> <!-- the main button icon visibile by default --> <i class=\"mfb-component__main-icon--resting {{iconClass}}\"></i> <!-- the main button icon visibile when the user is hovering/interacting with the menu --> <i class=\"mfb-component__main-icon--active {{activeIconClass}}\"></i> </a> <ul class=\"mfb-component__list\"> <!-- a child button, repeat as many times as needed --> <li *ngFor=\"let button of buttons\"> <ng2-floating-action-button [button]=\"button\"></ng2-floating-action-button> </li> </ul> </li> </ul> ","styles":["/** * CONTENTS * * #Introduction........Naming conventions used throughout the code. * * #SETTINGS * Variables............Globally-available variables and config. * * #TOOLS * Mixins...............Useful mixins. * * #GENERIC * Demo styles..........Styles for demo only (consider removing these). * * #BASE * Raw styles...........The very basic component wrapper. * Modifiers............The basic styles dependant on component placement. * Debuggers............The basic styles dependant on component placement. * * #BUTTONS * Base..................Wrapping and constraining every button. * Modifiers.............Styles that depends on state and settings. * Animations............Main animations of the component. * Debuggers.............Styles for development. * * #LABELS * Base..................Wrapping and constraining every label. * Modifiers.............Styles that depends on state and settings. * Debuggers.............Styles for development. * * #DEVELOPMENT * In development........These styles are in development and not yet finalised * Debuggers.............Helper styles and flags for development. */ /*------------------------------------* #Introduction *------------------------------------*/ /** * The code AND the comments use naming conventions to refer to each part of * the UI put in place by this component. If you see that somewhere they are * not followed please consider a Pull Request. The naming conventions are: * * \"Component\" : the widget itself as a whole. This is the last time it will be * called anything different than \"component\". So, stay away from * \"widget\", \"button\" or anything else when referring to the * Component in general. * * \"Main Button\" : the button that is always in view. Hovering or clicking on it * will reveal the child buttons. * * \"Child buttons\" : if you've read the previous point you know what they are. * Did you read the previous point? :) * * \"Label(s)\" : the tooltip that fades in when hovering over a button. /*------------------------------------* #SETTINGS | Variables *------------------------------------*/ /** * These variables are the default styles that serve as fallback and can be * easily customised at compile time. * Consider overriding them in your own style sheets rather than editing them * here. Refer to the docs for more info. */ /* COLORS ----------------------------*/ /* EFFECTS ---------------------------*/ /* SPEEDS ----------------------------*/ /* SIZES -----------------------------*/ /* SPACING ---------------------------*/ /* OTHER VARIABLES -------------------*/ /*------------------------------------* #BASE | Raw styles *------------------------------------*/ /** * The very core styling of the button. * These styles are shared by every instance of the button. * Styles placed here should NOT care about placement in the screen, * options chosen by the user or state of the button. */ .mfb-component--tl, .mfb-component--tr, .mfb-component--bl, .mfb-component--br { box-sizing: border-box; margin: 25px; position: fixed; white-space: nowrap; z-index: 30; padding-left: 0; list-style: none; } .mfb-component--tl *, .mfb-component--tr *, .mfb-component--bl *, .mfb-component--br *, .mfb-component--tl *:before, .mfb-component--tr *:before, .mfb-component--bl *:before, .mfb-component--br *:before, .mfb-component--tl *:after, .mfb-component--tr *:after, .mfb-component--bl *:after, .mfb-component--br *:after { box-sizing: inherit; } /*------------------------------------* #BASE | Modifiers *------------------------------------*/ /** * These styles depends on the placement of the button. * Styles can be: * 1. Top-left: modified by the \" --tl \" suffix. * 2. Top-right: modified by the \" --tr \" suffix. * 3. Bottom-left: modified by the \" --bl \" suffix. * 4. Bottom-right: modified by the \" --br \" suffix. */ .mfb-component--tl { left: 0; top: 0; } .mfb-component--tr { right: 0; top: 0; } .mfb-component--bl { left: 0; bottom: 0; } .mfb-component--br { right: 0; bottom: 0; } /*------------------------------------* #BUTTONS | Base *------------------------------------*/ .mfb-component__button--main, /deep/ .mfb-component__button--child { background-color: #E40A5D; display: inline-block; position: relative; border: none; border-radius: 50%; box-shadow: 0 0 4px rgba(0, 0, 0, 0.14), 0 4px 8px rgba(0, 0, 0, 0.28); cursor: pointer; outline: none; padding: 0; position: relative; -webkit-user-drag: none; color: #f1f1f1; } /** * This is the unordered list for the list items that contain * the child buttons. * */ .mfb-component__list { list-style: none; margin: 0; padding: 0; } .mfb-component__list > li { display: block; position: absolute; top: 0; right: 1px; padding: 10px 0; margin: -10px 0; } /** * These are the basic styles for all the icons inside the main button */ .mfb-component__icon, .mfb-component__main-icon--active, .mfb-component__main-icon--resting, /deep/ .mfb-component__child-icon { position: absolute; font-size: 18px; text-align: center; line-height: 56px; width: 100%; } .mfb-component__wrap { padding: 25px; margin: -25px; } [data-mfb-toggle=\"hover\"]:hover .mfb-component__icon, [data-mfb-toggle=\"hover\"]:hover .mfb-component__main-icon--active, [data-mfb-toggle=\"hover\"]:hover .mfb-component__main-icon--resting, [data-mfb-toggle=\"hover\"]:hover /deep/ .mfb-component__child-icon, /deep/ [data-mfb-toggle=\"hover\"]:hover .mfb-component__child-icon, [data-mfb-state=\"open\"] .mfb-component__icon, [data-mfb-state=\"open\"] .mfb-component__main-icon--active, [data-mfb-state=\"open\"] .mfb-component__main-icon--resting, [data-mfb-state=\"open\"] /deep/ .mfb-component__child-icon, /deep/ [data-mfb-state=\"open\"] .mfb-component__child-icon { -webkit-transform: scale(1) rotate(0deg); transform: scale(1) rotate(0deg); } /*------------------------------------* #BUTTONS | Modifiers *------------------------------------*/ .mfb-component__button--main { height: 56px; width: 56px; z-index: 20; } /deep/ .mfb-component__button--child { height: 56px; width: 56px; } .mfb-component__main-icon--active, .mfb-component__main-icon--resting { -webkit-transform: scale(1) rotate(360deg); transform: scale(1) rotate(360deg); -webkit-transition: -webkit-transform 150ms cubic-bezier(0.4, 0, 1, 1); transition: transform 150ms cubic-bezier(0.4, 0, 1, 1); } /deep/ .mfb-component__child-icon, /deep/ .mfb-component__child-icon { line-height: 56px; font-size: 18px; } .mfb-component__main-icon--active { opacity: 0; } [data-mfb-toggle=\"hover\"]:hover .mfb-component__main-icon, [data-mfb-state=\"open\"] .mfb-component__main-icon { -webkit-transform: scale(1) rotate(0deg); transform: scale(1) rotate(0deg); } [data-mfb-toggle=\"hover\"]:hover .mfb-component__main-icon--resting, [data-mfb-state=\"open\"] .mfb-component__main-icon--resting { opacity: 0; position: absolute !important; } [data-mfb-toggle=\"hover\"]:hover .mfb-component__main-icon--active, [data-mfb-state=\"open\"] .mfb-component__main-icon--active { opacity: 1; } /*------------------------------------* #BUTTONS | Animations *------------------------------------*/ /** * SLIDE IN + FADE * When hovering the main button, the child buttons slide out from beneath * the main button while transitioning from transparent to opaque. * */ .mfb-component--tl.mfb-slidein .mfb-component__list li, .mfb-component--tr.mfb-slidein .mfb-component__list li { opacity: 0; transition: all 0.5s; } .mfb-component--tl.mfb-slidein[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li, .mfb-component--tl.mfb-slidein[data-mfb-state=\"open\"] .mfb-component__list li, .mfb-component--tr.mfb-slidein[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li, .mfb-component--tr.mfb-slidein[data-mfb-state=\"open\"] .mfb-component__list li { opacity: 1; } .mfb-component--tl.mfb-slidein[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(1), .mfb-component--tl.mfb-slidein[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(1), .mfb-component--tr.mfb-slidein[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(1), .mfb-component--tr.mfb-slidein[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(1) { -webkit-transform: translateY(70px); transform: translateY(70px); } .mfb-component--tl.mfb-slidein[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(2), .mfb-component--tl.mfb-slidein[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(2), .mfb-component--tr.mfb-slidein[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(2), .mfb-component--tr.mfb-slidein[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(2) { -webkit-transform: translateY(140px); transform: translateY(140px); } .mfb-component--tl.mfb-slidein[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(3), .mfb-component--tl.mfb-slidein[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(3), .mfb-component--tr.mfb-slidein[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(3), .mfb-component--tr.mfb-slidein[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(3) { -webkit-transform: translateY(210px); transform: translateY(210px); } .mfb-component--tl.mfb-slidein[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(4), .mfb-component--tl.mfb-slidein[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(4), .mfb-component--tr.mfb-slidein[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(4), .mfb-component--tr.mfb-slidein[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(4) { -webkit-transform: translateY(280px); transform: translateY(280px); } .mfb-component--bl.mfb-slidein .mfb-component__list li, .mfb-component--br.mfb-slidein .mfb-component__list li { opacity: 0; transition: all 0.5s; } .mfb-component--bl.mfb-slidein[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li, .mfb-component--bl.mfb-slidein[data-mfb-state=\"open\"] .mfb-component__list li, .mfb-component--br.mfb-slidein[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li, .mfb-component--br.mfb-slidein[data-mfb-state=\"open\"] .mfb-component__list li { opacity: 1; } .mfb-component--bl.mfb-slidein[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(1), .mfb-component--bl.mfb-slidein[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(1), .mfb-component--br.mfb-slidein[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(1), .mfb-component--br.mfb-slidein[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(1) { -webkit-transform: translateY(-70px); transform: translateY(-70px); } .mfb-component--bl.mfb-slidein[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(2), .mfb-component--bl.mfb-slidein[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(2), .mfb-component--br.mfb-slidein[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(2), .mfb-component--br.mfb-slidein[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(2) { -webkit-transform: translateY(-140px); transform: translateY(-140px); } .mfb-component--bl.mfb-slidein[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(3), .mfb-component--bl.mfb-slidein[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(3), .mfb-component--br.mfb-slidein[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(3), .mfb-component--br.mfb-slidein[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(3) { -webkit-transform: translateY(-210px); transform: translateY(-210px); } .mfb-component--bl.mfb-slidein[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(4), .mfb-component--bl.mfb-slidein[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(4), .mfb-component--br.mfb-slidein[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(4), .mfb-component--br.mfb-slidein[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(4) { -webkit-transform: translateY(-280px); transform: translateY(-280px); } /** * SLIDE IN SPRING * Same as slide-in but with a springy animation. * */ .mfb-component--tl.mfb-slidein-spring .mfb-component__list li, .mfb-component--tr.mfb-slidein-spring .mfb-component__list li { opacity: 0; transition: all 0.5s; transition-timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55); } .mfb-component--tl.mfb-slidein-spring .mfb-component__list li:nth-child(1), .mfb-component--tr.mfb-slidein-spring .mfb-component__list li:nth-child(1) { transition-delay: 0.05s; } .mfb-component--tl.mfb-slidein-spring .mfb-component__list li:nth-child(2), .mfb-component--tr.mfb-slidein-spring .mfb-component__list li:nth-child(2) { transition-delay: 0.1s; } .mfb-component--tl.mfb-slidein-spring .mfb-component__list li:nth-child(3), .mfb-component--tr.mfb-slidein-spring .mfb-component__list li:nth-child(3) { transition-delay: 0.15s; } .mfb-component--tl.mfb-slidein-spring .mfb-component__list li:nth-child(4), .mfb-component--tr.mfb-slidein-spring .mfb-component__list li:nth-child(4) { transition-delay: 0.2s; } .mfb-component--tl.mfb-slidein-spring[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li, .mfb-component--tl.mfb-slidein-spring[data-mfb-state=\"open\"] .mfb-component__list li, .mfb-component--tr.mfb-slidein-spring[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li, .mfb-component--tr.mfb-slidein-spring[data-mfb-state=\"open\"] .mfb-component__list li { opacity: 1; } .mfb-component--tl.mfb-slidein-spring[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(1), .mfb-component--tl.mfb-slidein-spring[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(1), .mfb-component--tr.mfb-slidein-spring[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(1), .mfb-component--tr.mfb-slidein-spring[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(1) { transition-delay: 0.05s; -webkit-transform: translateY(70px); transform: translateY(70px); } .mfb-component--tl.mfb-slidein-spring[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(2), .mfb-component--tl.mfb-slidein-spring[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(2), .mfb-component--tr.mfb-slidein-spring[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(2), .mfb-component--tr.mfb-slidein-spring[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(2) { transition-delay: 0.1s; -webkit-transform: translateY(140px); transform: translateY(140px); } .mfb-component--tl.mfb-slidein-spring[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(3), .mfb-component--tl.mfb-slidein-spring[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(3), .mfb-component--tr.mfb-slidein-spring[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(3), .mfb-component--tr.mfb-slidein-spring[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(3) { transition-delay: 0.15s; -webkit-transform: translateY(210px); transform: translateY(210px); } .mfb-component--tl.mfb-slidein-spring[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(4), .mfb-component--tl.mfb-slidein-spring[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(4), .mfb-component--tr.mfb-slidein-spring[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(4), .mfb-component--tr.mfb-slidein-spring[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(4) { transition-delay: 0.2s; -webkit-transform: translateY(280px); transform: translateY(280px); } .mfb-component--bl.mfb-slidein-spring .mfb-component__list li, .mfb-component--br.mfb-slidein-spring .mfb-component__list li { opacity: 0; transition: all 0.5s; transition-timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55); } .mfb-component--bl.mfb-slidein-spring .mfb-component__list li:nth-child(1), .mfb-component--br.mfb-slidein-spring .mfb-component__list li:nth-child(1) { transition-delay: 0.05s; } .mfb-component--bl.mfb-slidein-spring .mfb-component__list li:nth-child(2), .mfb-component--br.mfb-slidein-spring .mfb-component__list li:nth-child(2) { transition-delay: 0.1s; } .mfb-component--bl.mfb-slidein-spring .mfb-component__list li:nth-child(3), .mfb-component--br.mfb-slidein-spring .mfb-component__list li:nth-child(3) { transition-delay: 0.15s; } .mfb-component--bl.mfb-slidein-spring .mfb-component__list li:nth-child(4), .mfb-component--br.mfb-slidein-spring .mfb-component__list li:nth-child(4) { transition-delay: 0.2s; } .mfb-component--bl.mfb-slidein-spring[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li, .mfb-component--bl.mfb-slidein-spring[data-mfb-state=\"open\"] .mfb-component__list li, .mfb-component--br.mfb-slidein-spring[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li, .mfb-component--br.mfb-slidein-spring[data-mfb-state=\"open\"] .mfb-component__list li { opacity: 1; } .mfb-component--bl.mfb-slidein-spring[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(1), .mfb-component--bl.mfb-slidein-spring[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(1), .mfb-component--br.mfb-slidein-spring[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(1), .mfb-component--br.mfb-slidein-spring[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(1) { transition-delay: 0.05s; -webkit-transform: translateY(-70px); transform: translateY(-70px); } .mfb-component--bl.mfb-slidein-spring[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(2), .mfb-component--bl.mfb-slidein-spring[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(2), .mfb-component--br.mfb-slidein-spring[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(2), .mfb-component--br.mfb-slidein-spring[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(2) { transition-delay: 0.1s; -webkit-transform: translateY(-140px); transform: translateY(-140px); } .mfb-component--bl.mfb-slidein-spring[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(3), .mfb-component--bl.mfb-slidein-spring[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(3), .mfb-component--br.mfb-slidein-spring[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(3), .mfb-component--br.mfb-slidein-spring[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(3) { transition-delay: 0.15s; -webkit-transform: translateY(-210px); transform: translateY(-210px); } .mfb-component--bl.mfb-slidein-spring[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(4), .mfb-component--bl.mfb-slidein-spring[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(4), .mfb-component--br.mfb-slidein-spring[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(4), .mfb-component--br.mfb-slidein-spring[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(4) { transition-delay: 0.2s; -webkit-transform: translateY(-280px); transform: translateY(-280px); } /** * ZOOM-IN * When hovering the main button, the child buttons grow * from zero to normal size. * */ .mfb-component--tl.mfb-zoomin .mfb-component__list li, .mfb-component--tr.mfb-zoomin .mfb-component__list li { -webkit-transform: scale(0); transform: scale(0); } .mfb-component--tl.mfb-zoomin .mfb-component__list li:nth-child(1), .mfb-component--tr.mfb-zoomin .mfb-component__list li:nth-child(1) { -webkit-transform: translateY(70px) scale(0); transform: translateY(70px) scale(0); transition: all 0.5s; transition-delay: 0.15s; } .mfb-component--tl.mfb-zoomin .mfb-component__list li:nth-child(2), .mfb-component--tr.mfb-zoomin .mfb-component__list li:nth-child(2) { -webkit-transform: translateY(140px) scale(0); transform: translateY(140px) scale(0); transition: all 0.5s; transition-delay: 0.1s; } .mfb-component--tl.mfb-zoomin .mfb-component__list li:nth-child(3), .mfb-component--tr.mfb-zoomin .mfb-component__list li:nth-child(3) { -webkit-transform: translateY(210px) scale(0); transform: translateY(210px) scale(0); transition: all 0.5s; transition-delay: 0.05s; } .mfb-component--tl.mfb-zoomin .mfb-component__list li:nth-child(4), .mfb-component--tr.mfb-zoomin .mfb-component__list li:nth-child(4) { -webkit-transform: translateY(280px) scale(0); transform: translateY(280px) scale(0); transition: all 0.5s; transition-delay: 0s; } .mfb-component--tl.mfb-zoomin[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(1), .mfb-component--tl.mfb-zoomin[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(1), .mfb-component--tr.mfb-zoomin[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(1), .mfb-component--tr.mfb-zoomin[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(1) { -webkit-transform: translateY(70px) scale(1); transform: translateY(70px) scale(1); transition-delay: 0.05s; } .mfb-component--tl.mfb-zoomin[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(2), .mfb-component--tl.mfb-zoomin[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(2), .mfb-component--tr.mfb-zoomin[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(2), .mfb-component--tr.mfb-zoomin[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(2) { -webkit-transform: translateY(140px) scale(1); transform: translateY(140px) scale(1); transition-delay: 0.1s; } .mfb-component--tl.mfb-zoomin[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(3), .mfb-component--tl.mfb-zoomin[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(3), .mfb-component--tr.mfb-zoomin[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(3), .mfb-component--tr.mfb-zoomin[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(3) { -webkit-transform: translateY(210px) scale(1); transform: translateY(210px) scale(1); transition-delay: 0.15s; } .mfb-component--tl.mfb-zoomin[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(4), .mfb-component--tl.mfb-zoomin[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(4), .mfb-component--tr.mfb-zoomin[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(4), .mfb-component--tr.mfb-zoomin[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(4) { -webkit-transform: translateY(280px) scale(1); transform: translateY(280px) scale(1); transition-delay: 0.2s; } .mfb-component--bl.mfb-zoomin .mfb-component__list li, .mfb-component--br.mfb-zoomin .mfb-component__list li { -webkit-transform: scale(0); transform: scale(0); } .mfb-component--bl.mfb-zoomin .mfb-component__list li:nth-child(1), .mfb-component--br.mfb-zoomin .mfb-component__list li:nth-child(1) { -webkit-transform: translateY(-70px) scale(0); transform: translateY(-70px) scale(0); transition: all 0.5s; transition-delay: 0.15s; } .mfb-component--bl.mfb-zoomin .mfb-component__list li:nth-child(2), .mfb-component--br.mfb-zoomin .mfb-component__list li:nth-child(2) { -webkit-transform: translateY(-140px) scale(0); transform: translateY(-140px) scale(0); transition: all 0.5s; transition-delay: 0.1s; } .mfb-component--bl.mfb-zoomin .mfb-component__list li:nth-child(3), .mfb-component--br.mfb-zoomin .mfb-component__list li:nth-child(3) { -webkit-transform: translateY(-210px) scale(0); transform: translateY(-210px) scale(0); transition: all 0.5s; transition-delay: 0.05s; } .mfb-component--bl.mfb-zoomin .mfb-component__list li:nth-child(4), .mfb-component--br.mfb-zoomin .mfb-component__list li:nth-child(4) { -webkit-transform: translateY(-280px) scale(0); transform: translateY(-280px) scale(0); transition: all 0.5s; transition-delay: 0s; } .mfb-component--bl.mfb-zoomin[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(1), .mfb-component--bl.mfb-zoomin[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(1), .mfb-component--br.mfb-zoomin[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(1), .mfb-component--br.mfb-zoomin[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(1) { -webkit-transform: translateY(-70px) scale(1); transform: translateY(-70px) scale(1); transition-delay: 0.05s; } .mfb-component--bl.mfb-zoomin[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(2), .mfb-component--bl.mfb-zoomin[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(2), .mfb-component--br.mfb-zoomin[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(2), .mfb-component--br.mfb-zoomin[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(2) { -webkit-transform: translateY(-140px) scale(1); transform: translateY(-140px) scale(1); transition-delay: 0.1s; } .mfb-component--bl.mfb-zoomin[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(3), .mfb-component--bl.mfb-zoomin[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(3), .mfb-component--br.mfb-zoomin[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(3), .mfb-component--br.mfb-zoomin[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(3) { -webkit-transform: translateY(-210px) scale(1); transform: translateY(-210px) scale(1); transition-delay: 0.15s; } .mfb-component--bl.mfb-zoomin[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(4), .mfb-component--bl.mfb-zoomin[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(4), .mfb-component--br.mfb-zoomin[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(4), .mfb-component--br.mfb-zoomin[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(4) { -webkit-transform: translateY(-280px) scale(1); transform: translateY(-280px) scale(1); transition-delay: 0.2s; } /** * FOUNTAIN * When hovering the main button the child buttons * jump into view from outside the viewport */ .mfb-component--tl.mfb-fountain .mfb-component__list li, .mfb-component--tr.mfb-fountain .mfb-component__list li { -webkit-transform: scale(0); transform: scale(0); } .mfb-component--tl.mfb-fountain .mfb-component__list li:nth-child(1), .mfb-component--tr.mfb-fountain .mfb-component__list li:nth-child(1) { -webkit-transform: translateY(-70px) scale(0); transform: translateY(-70px) scale(0); transition: all 0.5s; transition-delay: 0.15s; } .mfb-component--tl.mfb-fountain .mfb-component__list li:nth-child(2), .mfb-component--tr.mfb-fountain .mfb-component__list li:nth-child(2) { -webkit-transform: translateY(-140px) scale(0); transform: translateY(-140px) scale(0); transition: all 0.5s; transition-delay: 0.1s; } .mfb-component--tl.mfb-fountain .mfb-component__list li:nth-child(3), .mfb-component--tr.mfb-fountain .mfb-component__list li:nth-child(3) { -webkit-transform: translateY(-210px) scale(0); transform: translateY(-210px) scale(0); transition: all 0.5s; transition-delay: 0.05s; } .mfb-component--tl.mfb-fountain .mfb-component__list li:nth-child(4), .mfb-component--tr.mfb-fountain .mfb-component__list li:nth-child(4) { -webkit-transform: translateY(-280px) scale(0); transform: translateY(-280px) scale(0); transition: all 0.5s; transition-delay: 0s; } .mfb-component--tl.mfb-fountain[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(1), .mfb-component--tl.mfb-fountain[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(1), .mfb-component--tr.mfb-fountain[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(1), .mfb-component--tr.mfb-fountain[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(1) { -webkit-transform: translateY(70px) scale(1); transform: translateY(70px) scale(1); transition-delay: 0.05s; } .mfb-component--tl.mfb-fountain[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(2), .mfb-component--tl.mfb-fountain[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(2), .mfb-component--tr.mfb-fountain[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(2), .mfb-component--tr.mfb-fountain[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(2) { -webkit-transform: translateY(140px) scale(1); transform: translateY(140px) scale(1); transition-delay: 0.1s; } .mfb-component--tl.mfb-fountain[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(3), .mfb-component--tl.mfb-fountain[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(3), .mfb-component--tr.mfb-fountain[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(3), .mfb-component--tr.mfb-fountain[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(3) { -webkit-transform: translateY(210px) scale(1); transform: translateY(210px) scale(1); transition-delay: 0.15s; } .mfb-component--tl.mfb-fountain[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(4), .mfb-component--tl.mfb-fountain[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(4), .mfb-component--tr.mfb-fountain[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(4), .mfb-component--tr.mfb-fountain[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(4) { -webkit-transform: translateY(280px) scale(1); transform: translateY(280px) scale(1); transition-delay: 0.2s; } .mfb-component--bl.mfb-fountain .mfb-component__list li, .mfb-component--br.mfb-fountain .mfb-component__list li { -webkit-transform: scale(0); transform: scale(0); } .mfb-component--bl.mfb-fountain .mfb-component__list li:nth-child(1), .mfb-component--br.mfb-fountain .mfb-component__list li:nth-child(1) { -webkit-transform: translateY(70px) scale(0); transform: translateY(70px) scale(0); transition: all 0.5s; transition-delay: 0.15s; } .mfb-component--bl.mfb-fountain .mfb-component__list li:nth-child(2), .mfb-component--br.mfb-fountain .mfb-component__list li:nth-child(2) { -webkit-transform: translateY(140px) scale(0); transform: translateY(140px) scale(0); transition: all 0.5s; transition-delay: 0.1s; } .mfb-component--bl.mfb-fountain .mfb-component__list li:nth-child(3), .mfb-component--br.mfb-fountain .mfb-component__list li:nth-child(3) { -webkit-transform: translateY(210px) scale(0); transform: translateY(210px) scale(0); transition: all 0.5s; transition-delay: 0.05s; } .mfb-component--bl.mfb-fountain .mfb-component__list li:nth-child(4), .mfb-component--br.mfb-fountain .mfb-component__list li:nth-child(4) { -webkit-transform: translateY(280px) scale(0); transform: translateY(280px) scale(0); transition: all 0.5s; transition-delay: 0s; } .mfb-component--bl.mfb-fountain[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(1), .mfb-component--bl.mfb-fountain[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(1), .mfb-component--br.mfb-fountain[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(1), .mfb-component--br.mfb-fountain[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(1) { -webkit-transform: translateY(-70px) scale(1); transform: translateY(-70px) scale(1); transition-delay: 0.05s; } .mfb-component--bl.mfb-fountain[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(2), .mfb-component--bl.mfb-fountain[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(2), .mfb-component--br.mfb-fountain[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(2), .mfb-component--br.mfb-fountain[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(2) { -webkit-transform: translateY(-140px) scale(1); transform: translateY(-140px) scale(1); transition-delay: 0.1s; } .mfb-component--bl.mfb-fountain[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(3), .mfb-component--bl.mfb-fountain[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(3), .mfb-component--br.mfb-fountain[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(3), .mfb-component--br.mfb-fountain[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(3) { -webkit-transform: translateY(-210px) scale(1); transform: translateY(-210px) scale(1); transition-delay: 0.15s; } .mfb-component--bl.mfb-fountain[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(4), .mfb-component--bl.mfb-fountain[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(4), .mfb-component--br.mfb-fountain[data-mfb-toggle=\"hover\"]:hover .mfb-component__list li:nth-child(4), .mfb-component--br.mfb-fountain[data-mfb-state=\"open\"] .mfb-component__list li:nth-child(4) { -webkit-transform: translateY(-280px) scale(1); transform: translateY(-280px) scale(1); transition-delay: 0.2s; } /*------------------------------------* #LABELS | base *------------------------------------*/ /** * These are the labels associated to each button, * exposed only when hovering the related button. * They are called labels but are in fact data-attributes of * each button (an anchor tag). */ /deep/ [data-mfb-label]:after { content: attr(data-mfb-label); opacity: 0; transition: all 0.5s; background: rgba(0, 0, 0, 0.4); padding: 4px 10px; border-radius: 3px; color: rgba(255, 255, 255, 0.8); font-size: 14px; font-weight: normal; pointer-events: none; line-height: normal; position: absolute; top: 50%; margin-top: -11px; transition: all 0.5s; } /deep/ [data-mfb-toggle=\"hover\"] [data-mfb-label]:hover:after, /deep/ [data-mfb-state=\"open\"] [data-mfb-label]:after { content: attr(data-mfb-label); opacity: 1; transition: all 0.3s; } /*------------------------------------* #LABELS | Modifiers *------------------------------------*/ /deep/ .mfb-component--br /deep/ [data-mfb-label]:after, .mfb-component--tr /deep/ [data-mfb-label]:after { content: attr(data-mfb-label); right: 70px; } /deep/ .mfb-component--br .mfb-component__list /deep/ [data-mfb-label]:after, .mfb-component--tr .mfb-component__list /deep/ [data-mfb-label]:after { content: attr(data-mfb-label); right: 70px; } /deep/ .mfb-component--tl /deep/ [data-mfb-label]:after, .mfb-component--bl /deep/ [data-mfb-label]:after { content: attr(data-mfb-label); left: 70px; } /deep/ .mfb-component--tl .mfb-component__list /deep/ [data-mfb-label]:after, .mfb-component--bl .mfb-component__list /deep/ [data-mfb-label]:after { content: attr(data-mfb-label); left: 70px; } /*------------------------------------* #DEVELOPMENT | In development *------------------------------------*/ /** * This part is where unfinished code should stay. * When a feature is ready(sh) move these styles to their proper place. */ /*------------------------------------* #DEVELOPMENT | Debuggers *------------------------------------*/ /** * These are mainly helpers for development. They do not have to end up * in production but it's handy to keep them when developing. */ /** * Apply this class to the html tag when developing the slide-in button */ "]}]}],"members":{"placement":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"effect":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"label":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"iconClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"activeIconClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"toggle":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"buttons":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor"}],"clicked":[{"__symbolic":"method"}],"entered":[{"__symbolic":"method"}],"leaved":[{"__symbolic":"method"}],"ngOnInit":[{"__symbolic":"method"}]}},"ɵb":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"ng2-floating-action-button","template":"<a href [attr.data-mfb-label]=\"button.label\" (click)=\"buttonClick()\" class=\"mfb-component__button--child\"> <i class=\"mfb-component__child-icon {{button.iconClass}}\"></i> </a> ","styles":[""]}]}],"members":{"button":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"buttonClick":[{"__symbolic":"method"}],"ngOnInit":[{"__symbolic":"method"}]}},"ɵc":{"__symbolic":"class","members":{}}},"origins":{"FloatingActionMenuModule":"./index","ɵa":"./floating-action-menu/floating-action-menu.component","ɵb":"./floating-action-menu/floating-action-button.component","ɵc":"./floating-action-menu/floating-action-button"},"importAs":"ng2-floating-action-menu"} |
@@ -7,2 +7,8 @@ (function (global, factory) { | ||
var FloatingActionButton = (function () { | ||
function FloatingActionButton() { | ||
} | ||
return FloatingActionButton; | ||
}()); | ||
var FloatingActionMenuComponent = (function () { | ||
@@ -128,7 +134,9 @@ function FloatingActionMenuComponent() { | ||
FloatingActionMenuComponent, | ||
FloatingActionButtonComponent | ||
FloatingActionButtonComponent, | ||
FloatingActionButton | ||
], | ||
exports: [ | ||
FloatingActionMenuComponent, | ||
FloatingActionButtonComponent | ||
FloatingActionButtonComponent, | ||
FloatingActionButton | ||
] | ||
@@ -135,0 +143,0 @@ },] }, |
{ | ||
"name": "ng2-floating-action-menu", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"repository": { | ||
@@ -5,0 +5,0 @@ "type": "git", |
@@ -0,0 +0,0 @@ # ng2-floating-action-menu |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
122950
582