Skip to content

Commit

Permalink
Added text and submit classes to search form input and submit buttons…
Browse files Browse the repository at this point in the history
…, respectively. Fixed the width of the search form in IE. Button height's off in IE 8 compatbility mode.
  • Loading branch information
ckieffer committed Aug 17, 2010
1 parent ff1d8ae commit 8c2ed0d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
4 changes: 2 additions & 2 deletions modules/search/views/search.html.php
Expand Up @@ -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>
Expand Down
4 changes: 2 additions & 2 deletions modules/search/views/search_link.html.php
Expand Up @@ -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>
10 changes: 8 additions & 2 deletions themes/wind/css/fix-ie.css
@@ -1,5 +1,5 @@
/**
* Fix display in IE 6, 7
* Fix display in IE 6, 7, and 8
*/

#g-banner {
Expand All @@ -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;
}
Expand Down

0 comments on commit 8c2ed0d

Please sign in to comment.