]> _ Git - fluidbook-v3.git/commitdiff
Adjust position of validation error messages and hide immediately on click/touch...
authorstephen@cubedesigners.com <stephen@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Tue, 19 Jul 2016 16:05:28 +0000 (16:05 +0000)
committerstephen@cubedesigners.com <stephen@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Tue, 19 Jul 2016 16:05:28 +0000 (16:05 +0000)
js/315-quote.js
less/315-quote.less

index db33dabb77dc4efab886a4f9b5bcb0d72e9c260b..834cf67a09c2ca2e01648c3bde1f92811822fdc7 100644 (file)
@@ -7,6 +7,10 @@ function load_quoteform() {
     $(window).on('cubeitopenpopup', function() {
         initFancySelect();
     });
+
+    $(document).on('click touchend', function() {
+        $('.validation-messages').hide();
+    });
 }
 
 function initFancySelect() {
index 45aaa425f22039098b6769a23da7a6d275aa778b..4288aba27f8b4c14c94efe03da1b781819cb9b8b 100644 (file)
                background-color: #343c44;
                border-radius: 17px;
                position: fixed;
-               bottom: 10px;
+               bottom: 5%; // For older browsers
+               bottom: 5vw; // For browsers that understand vw units
                left: 50%;
                transform: translateX(-50%);
                color: #fff;
                font-size: 14px;
                text-align: center;
                z-index: 1000;
-               pointer-events: none;
+               //pointer-events: none; // Disabled to allow messages to be hidden on click
                display: none;
 
                br {