summaryrefslogtreecommitdiff
path: root/www/css/_/_slidein.scss
diff options
context:
space:
mode:
authorPliablePixels <pliablepixels@gmail.com>2015-07-03 17:14:26 -0400
committerPliablePixels <pliablepixels@gmail.com>2015-07-03 17:14:26 -0400
commit422d1da283a133c6718e0b19dcad14b3adbf3e00 (patch)
treed2e513e4922acec1267e16a188b1e4beb44df60f /www/css/_/_slidein.scss
parentcb3f96dd10f0fd19c280e1f303e45c466c1a012f (diff)
moved scss and dependencies of ng-mfb to my css directory so I can adhoc compile there.
Diffstat (limited to 'www/css/_/_slidein.scss')
-rw-r--r--www/css/_/_slidein.scss53
1 files changed, 53 insertions, 0 deletions
diff --git a/www/css/_/_slidein.scss b/www/css/_/_slidein.scss
new file mode 100644
index 00000000..f2735124
--- /dev/null
+++ b/www/css/_/_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 ); }
+ }
+ }
+ }
+ }
+
+}