Fix Register Now button on small screens.
authorrsiddharth <rsd@gnu.org>
Sat, 29 Oct 2016 23:45:29 +0000 (23:45 +0000)
committerrsiddharth <rsd@gnu.org>
Sat, 29 Oct 2016 23:45:29 +0000 (23:45 +0000)
2017/assets/css/custom.css
2017/includes/common_js.html
2017/includes/register-now.html

index 0f01f188965d2f9f8fd44cc91cdbcd156597115f..faf4bcf07c0bf54932f1bc840460da88a25d5caf 100644 (file)
@@ -331,10 +331,6 @@ hr {
   }
 }
 
-.register-block {
-    z-index: 1000;
-}
-
 .btn-register {
   margin-top: 0.5em;
   margin-bottom: 0.3em;
index d13c84a2538ee41054439cb63d51bb9a8dd09778..486491e2e32b03fb83acdb6304ef25fcaf2d4cfe 100755 (executable)
@@ -28,10 +28,12 @@ function logoTextStack() {
      screen_width = $(window).width();
 
      if(screen_width <= 767) {
-         $('.register-block').prependTo('#lp-content');
+         $('.register-block').prependTo('#lp-content')
+                             .removeClass('col-sm-offset-2 col-sm-4');
          $('#lp-signup-block').insertBefore('#lp-content');
      }else {
-         $('.register-block').appendTo('.lp-head');
+         $('.register-block').appendTo('.lp-head')
+                             .addClass('col-sm-offset-2 col-sm-4');
          $('#lp-signup-block').appendTo('.lp-head');
      }
  }
index f8f34c1bad46c7c055ef66b099c02bebc67fcc55..57e8520095fe0ef1df6e81b6324dc011c1df8930 100644 (file)
@@ -1,4 +1,4 @@
-<div class="register-block col-sm-offset-2 col-sm-4 col-xs-12">
+<div class="register-block col-sm-offset-2 col-sm-4">
     <a class="btn btn-register btn-lg btn-block register-now"
        href="https://my.fsf.org/civicrm/event/register?reset=1&id=47">
         Register now