Hey
Im my site, the Fusion Core based theme, Acquia Prosper, adds a border with background and -moz-border-radius to every form items, like buttons and images.
this of course clashes with Custom Search image, as it is an input field.
so i faced the problem of having to remove those borders, background and border-radius from it.
i though no biggie... until i came to the conclusion that Custom Search module does not sets a class attribute for the image, although it does for the search box and search form.
so i wrote a patch for 6.x-1.4, 6.x-1.x, 7.x-1.4 and 7.x-1.x.
it is quite simple - it only adds a single line in all 4 versions for .module file:
for 6.x:$form['submit']['#attributes'] = array('class' => 'custom-search-button');
for 7.x: $form['actions']['submit']['#attributes'] = array('class' => 'custom-search-button');
basically it adds a CLASS attribute to the image input item. nothing else.
the class (custom-search-button) can be loaded in the theme .css files and is entirely optional.
i've tested 6.x-1.4 and it works fine.
the other versions i did not test, but they should work well as well.
patches for all versions supplied bellow.
i've also included the .module file with the patch applied for all versions.
Comment | File | Size | Author |
---|---|---|---|
#2 | custom_search-6.x-1.4-LPCA.tar_.gz | 27.17 KB | lpalgarvio |
#2 | custom_search-6.x-1.x-dev-LPCA.tar_.gz | 29.4 KB | lpalgarvio |
#2 | custom_search-7.x-1.4-LPCA.tar_.gz | 27.53 KB | lpalgarvio |
#2 | custom_search-7.x-1.x-dev-LPCA.tar_.gz | 29.88 KB | lpalgarvio |
custom_search.7.x-1.x.new_.txt | 24.6 KB | lpalgarvio |
Comments
Comment #1
lpalgarvio CreditAttribution: lpalgarvio commentedfor those wishing to style the button in Acquia Prosper theme, try this CSS code in local.css:
Comment #2
lpalgarvio CreditAttribution: lpalgarvio commentedforgot to mention... i patched against the versions dated of:
also, packed up tar.gz archives bellow.
Comment #3
jdanthinne CreditAttribution: jdanthinne commentedThanks.
Committed to DEV.