]> _ Git - fluidbook-v3.git/commitdiff
Fix rendering problems with scaled content and CSS hover transitions #531 @0:15
authorstephen@cubedesigners.com <stephen@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Tue, 5 Jul 2016 14:55:41 +0000 (14:55 +0000)
committerstephen@cubedesigners.com <stephen@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Tue, 5 Jul 2016 14:55:41 +0000 (14:55 +0000)
less/003-mixins.less

index b2ee9d66e39203ef3070354d863e9166e469f2cd..414003938950758add5b4e891bf7fcaf010e8d5d 100644 (file)
 .longarrow-button(@padding-vertical: 23px, @padding-horizontal: 40px, @offset: 20px, @offset-arrow: -5px) {
        padding: @padding-vertical @padding-horizontal;
        position: relative;
-       transition: all @transition-time-buttons;
+       transition: padding @transition-time-buttons;
        line-height: 0.8em;
 
        &:after {
                content: '-';
+        .font-thinning();
                font-family: @icons;
                font-size: 1.5em;
                position: absolute;
                top: @padding-vertical;
                right: @padding-horizontal - @offset - @offset-arrow;
                opacity: 0;
-               transition: opacity @transition-time-buttons;
+               visibility: hidden;
+               transition: visibility @transition-time-buttons;
        }
 
        &:hover, &:active {
                padding-left: @padding-horizontal - @offset;
 
                &:after {
+                       visibility: visible;
                        opacity: 1;
                }
        }