Added text and submit classes to search form input and submit buttons, respectively. Fixed the width of the search form in IE. Button height's off in IE 8 compatbility mode.

This commit is contained in:
Chad Kieffer
2010-08-21 14:05:29 -07:00
committed by Bharat Mediratta
parent 33e76f5e33
commit 3fc08dfd4c
3 changed files with 12 additions and 6 deletions
+2 -2
View File
@@ -8,10 +8,10 @@
<ul>
<li>
<label for="q"><?= t("Search the gallery") ?></label>
<input name="q" id="q" type="text" value="<?= html::clean_attribute($q) ?>"/>
<input name="q" id="q" type="text" value="<?= html::clean_attribute($q) ?>" class="text" />
</li>
<li>
<input type="submit" value="<?= t("Search")->for_html_attr() ?>" />
<input type="submit" value="<?= t("Search")->for_html_attr() ?>" class="submit" />
</li>
</ul>
</fieldset>
+2 -2
View File
@@ -3,10 +3,10 @@
<ul>
<li>
<label for="g-search"><?= t("Search the gallery") ?></label>
<input type="text" name="q" id="g-search"/>
<input type="text" name="q" id="g-search" class="text" />
</li>
<li>
<input type="submit" value="<?= t("Go")->for_html_attr() ?>" />
<input type="submit" value="<?= t("Go")->for_html_attr() ?>" class="submit" />
</li>
</ul>
</form>
+8 -2
View File
@@ -1,5 +1,5 @@
/**
* Fix display in IE 6, 7
* Fix display in IE 6, 7, and 8
*/
#g-banner {
@@ -26,11 +26,17 @@ input.submit {
display: inline !important;
}
.g-short-form input[type='submit'] {
.g-short-form input.text,
.g-short-form input.submit {
font-size: 1em;
line-height: 1em;
padding: .38em .3em;
}
#g-search-form input#q {
width: 300px;
}
#g-add-tag-form input.textbox {
width: 110px !important;
}