summaryrefslogtreecommitdiff
path: root/www/lib/ng-mfb/mfb/src/_/_slidein.scss
diff options
context:
space:
mode:
authorARC <arjunrc@gmail.com>2015-04-28 11:26:57 -0400
committerARC <arjunrc@gmail.com>2015-04-28 11:26:57 -0400
commit6fa29c170159e7bfbcaf7681cdfb52ba7f98cac0 (patch)
tree0039de6ab6324d0d91cb63383a290a9205541043 /www/lib/ng-mfb/mfb/src/_/_slidein.scss
parent6e83957c0231d48eb9f29d1270806cadef3a3c6d (diff)
Events navigation not works with a cool full screen mode and floating buttons
Diffstat (limited to 'www/lib/ng-mfb/mfb/src/_/_slidein.scss')
-rw-r--r--www/lib/ng-mfb/mfb/src/_/_slidein.scss53
1 files changed, 53 insertions, 0 deletions
diff --git a/www/lib/ng-mfb/mfb/src/_/_slidein.scss b/www/lib/ng-mfb/mfb/src/_/_slidein.scss
new file mode 100644
index 00000000..f2735124
--- /dev/null
+++ b/www/lib/ng-mfb/mfb/src/_/_slidein.scss
@@ -0,0 +1,53 @@
+@mixin effects-slidein{
+
+/**
+ * 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--tr.mfb-slidein{
+ .mfb-component__list li{
+ opacity: 0;
+ transition: all $slide-speed;
+ }
+ &[data-mfb-toggle="hover"]:hover,
+ &[data-mfb-state="open"]{
+ .mfb-component__list{
+ li{
+ opacity: 1;
+ }
+ @for $i from 1 through $number-of-child-buttons {
+ $distance: $button-space * $i;
+ li:nth-child( #{$i} ) {
+ -webkit-transform: translateY( $distance );
+ transform: translateY( $distance ); }
+ }
+ }
+ }
+ }
+
+ .mfb-component--bl.mfb-slidein,
+ .mfb-component--br.mfb-slidein{
+ .mfb-component__list li{
+ opacity: 0;
+ transition: all $slide-speed;
+ }
+ &[data-mfb-toggle="hover"]:hover,
+ &[data-mfb-state="open"]{
+ .mfb-component__list{
+ li{
+ opacity: 1;
+ }
+ @for $i from 1 through $number-of-child-buttons {
+ $distance: -1 * $button-space * $i;
+ li:nth-child( #{$i} ) { -webkit-transform: translateY( $distance );
+ transform: translateY( $distance ); }
+ }
+ }
+ }
+ }
+
+}