From 6bf530cf16e2a7afe91023df22b5a25b0a77b56e Mon Sep 17 00:00:00 2001 From: David Eads Date: Sat, 2 Jun 2012 16:58:47 -0500 Subject: [PATCH] add css to volunteer module that makes form bigger and friendlier; fixes #157 --- .../css/freegeek-townsquare-volunteer.css | 24 +++++++++++++++++++ .../freegeek_townsquare_volunteer.module | 4 ++++ 2 files changed, 28 insertions(+) create mode 100644 modules/townsquare_examples/freegeek_townsquare_volunteer/css/freegeek-townsquare-volunteer.css diff --git a/modules/townsquare_examples/freegeek_townsquare_volunteer/css/freegeek-townsquare-volunteer.css b/modules/townsquare_examples/freegeek_townsquare_volunteer/css/freegeek-townsquare-volunteer.css new file mode 100644 index 0000000..f468b84 --- /dev/null +++ b/modules/townsquare_examples/freegeek_townsquare_volunteer/css/freegeek-townsquare-volunteer.css @@ -0,0 +1,24 @@ +#main-content { + max-width: 500px; + float: none; + margin-left: auto; + margin-right: auto; +} +.form-horizontal .form-item .control-label { + width: 160px; +} +#main-content .form-item label { + font-size: 20px; +} +#main-content .form-item input { + font-size: 18px; + width: 281px; +} +#main-content .form-actions { + border: none; + text-align: right; +} +#main-content .form-actions button { + font-size: 18px; + font-weight: bold; +} diff --git a/modules/townsquare_examples/freegeek_townsquare_volunteer/freegeek_townsquare_volunteer.module b/modules/townsquare_examples/freegeek_townsquare_volunteer/freegeek_townsquare_volunteer.module index eaa3a20..82aa42b 100644 --- a/modules/townsquare_examples/freegeek_townsquare_volunteer/freegeek_townsquare_volunteer.module +++ b/modules/townsquare_examples/freegeek_townsquare_volunteer/freegeek_townsquare_volunteer.module @@ -50,6 +50,10 @@ function freegeek_townsquare_volunteer_signup_form($form, &$form_state) { drupal_get_path('module', 'freegeek_townsquare_volunteer') .'/js/freegeek-townsquare-volunteer.js' ), + 'css' => array( + drupal_get_path('module', 'freegeek_townsquare_volunteer') + .'/css/freegeek-townsquare-volunteer.css' + ), ); // Set and hide form values