Permalink
Browse files

Sort out issue of text box alignments.

  • Loading branch information...
1 parent d5b2b36 commit e57fdb9e148de0594272380483ee8de0b01cfe5b @dracos dracos committed Mar 30, 2012
@@ -111,7 +111,7 @@ <h1>[% loc('Reporting a problem') %]</h1>
[% IF c.user_exists %]
<div class="form-box">
- <label for="form_may_show_nameme">[% loc('Name') %]</label>
+ <label for="form_name">[% loc('Name') %]</label>
[% IF field_errors.name %]
<p class='form-error'>[% field_errors.name %]</p>
[% END %]
@@ -170,7 +170,7 @@ <h5>[% loc('<strong>No</strong> Let me confirm my report by email') %]</h5>
[% INCLUDE 'report/new/extra_name.html' %]
- <label for="form_may_show_nameme">[% loc('Name') %]</label>
+ <label for="form_name">[% loc('Name') %]</label>
[% IF field_errors.name %]
<p class='form-error'>[% field_errors.name %]</p>
[% END %]
@@ -146,14 +146,8 @@ img {
select, input, textarea {
font-size: 99%;
- max-width: 95%;
+ max-width: 100%;
}
-.ie7 {
- select, input, textarea {
- max-width: none;
- }
-}
-
// links
a,
@@ -246,10 +240,19 @@ input[type=password],
input[type=email],
input[type=file],
textarea {
+ @include box-sizing(border-box);
width: 100%;
// adjust so the sides line up
padding: 0.5em;
- margin: 0 0 0 -0.5em;
+}
+.ie7 {
+ input[type=text],
+ input[type=password],
+ input[type=email],
+ input[type=file],
+ textarea {
+ max-width: 95%;
+ }
}
textarea {
@@ -293,7 +296,6 @@ label{
margin: 0 -2em 0.25em -2em;
background:#eeeeee;
padding:1em 2em 1em 2em;
- max-width:26em;
>input[type=text] {
margin-bottom:1em;
}
@@ -318,6 +320,14 @@ label{
// it looks okay.
.ie6 .form-box {
margin: 0 0 0.25em 0;
+ padding: 1em;
+}
+// Prevent grey displaying oddly by giving it a width, and stop odd left margin issue
+.ie7 .form-box {
+ width: 100%;
+ > input[type=text] {
+ margin-left: 2em;
+ }
}
.form-txt-submit-box {
@@ -703,12 +703,8 @@ input[type=text],
input[type=password],
input[type=email],
textarea{
- width: 25em;
+ max-width: 25em;
}
-.form-box {
- max-width:25em;
-}
-
/* form errors */
div.form-error,

0 comments on commit e57fdb9

Please sign in to comment.