Commit baac6eee authored by KatyMoon's avatar KatyMoon
Browse files

amendments to signup block in header

parent 32e8aea4
......@@ -138,6 +138,7 @@ body {
}
#block-search-form .form-text, #search-form .form-text,
#block-webform-client-block-2053 .webform-component-email input,
#block-webform-client-block-2055 .webform-component-email input {
background-image: url("../images/sr1.png");
background-repeat: no-repeat;
......@@ -150,7 +151,9 @@ body {
width: 200px;
text-transform: uppercase;
}
#block-webform-client-block-2053 .webform-component-email input,
#block-webform-client-block-2055 .webform-component-email input {
width: 230px;
padding-left: 10px;
color: #aaa;
}
......@@ -2633,51 +2636,61 @@ h3 a {
/* margin-top: -14px !important;
*/}
#block-webform-client-block-2052,
#block-webform-client-block-2053,
#block-webform-client-block-2055 {
width: 424px;
float: right;
clear: none;
}
#block-webform-client-block-2053,
#block-webform-client-block-2055 {
float: left;
padding-top: 12px;
padding-top: 20px;
}
form#webform-client-form-2052,
form#webform-client-form-2053,
form#webform-client-form-2055 {
margin: 0;
}
#block-webform-client-block-2052 h2,
#block-webform-client-block-2053 h2,
#block-webform-client-block-2055 h2 {
color: #fff;
font-family: "Open Sans Condensed", Arial,Helvetica,sans-serif;
margin-top: 24px;
font-size: 24px;
}
#block-webform-client-block-2053 h2,
#block-webform-client-block-2055 h2 {
margin: 0 0 5px 0;
margin: 0 0 0 5px;
color: #A55F53;
font-size: 14px;
font-family: "PT Sans Caption",Cantarell,Helvetica,Arial,sans-serif;
}
#block-webform-client-block-2052 .webform-component-civicrm_contact,
#block-webform-client-block-2053 .webform-component-civicrm_contact,
#block-webform-client-block-2055 .webform-component-civicrm_contact {
margin: 0;
}
#block-webform-client-block-2052 .webform-component-email,
#block-webform-client-block-2053 .webform-component-email,
#block-webform-client-block-2055 .webform-component-email {
float: left;
}
#block-webform-client-block-2053 .webform-component-email,
#block-webform-client-block-2055 .webform-component-email {
margin: 0;
}
#block-webform-client-block-2052 input,
#block-webform-client-block-2053 input,
#block-webform-client-block-2055 input {
font-family: "PT Sans Caption", Cantarell, Arial, Helvetica, sans-serif;
font-size: 12px;
height: 24px;
}
#block-webform-client-block-2052 .webform-component-email input,
#block-webform-client-block-2053 .webform-component-email input,
#block-webform-client-block-2055 .webform-component-email input {
text-indent: 3px;
}
......@@ -2687,6 +2700,7 @@ form#webform-client-form-2055 {
padding: 3px;
}
#block-webform-client-block-2052 input.form-submit,
#block-webform-client-block-2053 input.form-submit,
#block-webform-client-block-2055 input.form-submit {
height: 32px;
background: #7ec757 none;
......@@ -2696,11 +2710,13 @@ form#webform-client-form-2055 {
float: left;
margin: 1em 0 1em 10px;
}
#block-webform-client-block-2053 input.form-submit,
#block-webform-client-block-2055 input.form-submit {
margin: 0 0 0 1.5em;
margin: 0 0 0 12px;
height: 25px;
padding: 0 3px;
}
#block-webform-client-block-2053 div.form-actions,
#block-webform-client-block-2055 div.form-actions {
margin: 0;
overflow: hidden;
......@@ -2715,5 +2731,5 @@ form#webform-client-form-2055 {
#block-search-form {
float: right;
padding-top: 12px;
margin-bottom: 0.5em;
margin-bottom: 12px;
}
\ No newline at end of file
......@@ -97,7 +97,7 @@ function civicrm_theme_form_alter(&$form, &$form_state, $form_id) {
$form["submitted"][$key]['#title_display'] = 'invisible';
}
// Sign up to our mailing list -header
// Sign up to our mailing list-header
if($form_id == webform_client_form_2053) {
foreach ($form["submitted"] as $key => $value) {
if (in_array($value["#type"], array("textfield", "webform_email", "textarea"))) {
......@@ -107,6 +107,17 @@ function civicrm_theme_form_alter(&$form, &$form_state, $form_id) {
//hides the labels but keeps them accessible
$form["submitted"][$key]['#title_display'] = 'invisible';
}
// Sign up to our mailing list-header
if($form_id == webform_client_form_2055) {
foreach ($form["submitted"] as $key => $value) {
if (in_array($value["#type"], array("textfield", "webform_email", "textarea"))) {
$form["submitted"][$key]['#attributes']["placeholder"] = t("Enter your ").strtolower(t($value["#title"]));
}
}
//hides the labels but keeps them accessible
$form["submitted"][$key]['#title_display'] = 'invisible';
}
}
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