Unverified Commit 56a6b420 authored by Tristan Olive's avatar Tristan Olive Committed by GitHub

Merge pull request #3394 from drshawnkwang/drupal_fix_captchalayout

Drupal: Add ID to captcha element to theme it.
parents 3fdf87d0 89b196cc
...@@ -1309,6 +1309,8 @@ function boincuser_form_alter(&$form, $form_state, $form_id) { ...@@ -1309,6 +1309,8 @@ function boincuser_form_alter(&$form, $form_state, $form_id) {
$form['register_captcha'] = array( $form['register_captcha'] = array(
'#type' => 'captcha', '#type' => 'captcha',
'#weight' => 1000, '#weight' => 1000,
'#prefix' => '<div id="captcha-on-left">',
'#suffix' => '</div>'
); );
} }
......
...@@ -644,6 +644,10 @@ html.js fieldset.collapsible legend a, ...@@ -644,6 +644,10 @@ html.js fieldset.collapsible legend a,
#recaptcha_response_field { #recaptcha_response_field {
left: 0; left: 0;
} }
/* This id cancels out the above margin-left for .captcha*/
#captcha-on-left {
margin-left: -360px;
}
/* Task App filter */ /* Task App filter */
select.task-app-filter { select.task-app-filter {
...@@ -661,4 +665,4 @@ select.task-app-filter { ...@@ -661,4 +665,4 @@ select.task-app-filter {
font-weight: 400; font-weight: 400;
line-height: 24px; line-height: 24px;
margin-right: 40px; margin-right: 40px;
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment