aboutsummaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2014-09-25 16:07:21 +0100
committerMatthew Somerville <matthew@mysociety.org>2014-09-25 16:07:21 +0100
commita1ae8fd11dd82e48d7d1409cc0edf55eb57ed04d (patch)
tree3892a3f953f31c5ceb4afbe431f6b50373c97c48 /web
parent84a41f4a8728d24c81815988b67b0f7bcd51a5f9 (diff)
Remove margin from fieldsets, tidy box sizes.
Diffstat (limited to 'web')
-rw-r--r--web/cobrands/fixmystreet/layout.scss6
-rw-r--r--web/cobrands/sass/_base.scss39
-rw-r--r--web/cobrands/sass/_layout.scss9
3 files changed, 5 insertions, 49 deletions
diff --git a/web/cobrands/fixmystreet/layout.scss b/web/cobrands/fixmystreet/layout.scss
index 196545670..3f707f619 100644
--- a/web/cobrands/fixmystreet/layout.scss
+++ b/web/cobrands/fixmystreet/layout.scss
@@ -302,9 +302,3 @@ body.alertindex {
display: none;
}
}
-
-#report-a-problem-main {
- input[type=text], input[type=password], input[type=email], textarea {
- max-width: 27em;
- }
-}
diff --git a/web/cobrands/sass/_base.scss b/web/cobrands/sass/_base.scss
index 0f696ae43..4ef03d509 100644
--- a/web/cobrands/sass/_base.scss
+++ b/web/cobrands/sass/_base.scss
@@ -156,12 +156,6 @@ img {
select, input, textarea {
font-size: 99%;
- max-width: 95%;
-}
-.ie7 {
- select, input, textarea {
- max-width: none;
- }
}
// To deal with bug from drop-down being wider than holder
@@ -249,12 +243,6 @@ h4.static-with-rule{
}
}
-// wrap anything inside the form in a fieldset to give
-// us the right spacing
-fieldset {
- margin: 1em;
-}
-
input[type=file] {
width: 100%;
}
@@ -275,14 +263,6 @@ textarea {
textarea {
max-width: 95%;
}
- // In order to work around the IE7 specific issue of inheriting left margins
- // http://techblog.willshouse.com/2009/07/12/ie6ie7-form-element-margin-inheritance-bug/
- fieldset > input[type=text],
- fieldset > input[type=password],
- fieldset > input[type=email],
- fieldset > textarea {
- margin-left: -1em;
- }
}
textarea {
@@ -319,10 +299,10 @@ label{
// grey background, full width box
.form-box {
- margin: 0 -2em 0.25em -2em;
- background:#eeeeee;
- padding:1em 2em 1em 2em;
- >input[type=text], input[type=email] {
+ margin: 0 -1em 0.25em -1em;
+ background: #eee;
+ padding: 1em;
+ > input[type=text], input[type=email] {
margin-bottom:1em;
}
.title {
@@ -363,17 +343,6 @@ label{
margin-top: -0.5em;
}
-#report-a-problem-main {
- fieldset {
- margin: 0;
- }
-
- .form-box {
- margin: 0 -1em 0.25em -1em;
- padding: 1em;
- }
-}
-
.form-txt-submit-box {
min-height:3em;
input[type=password],
diff --git a/web/cobrands/sass/_layout.scss b/web/cobrands/sass/_layout.scss
index 4f8b9597f..148bbdc36 100644
--- a/web/cobrands/sass/_layout.scss
+++ b/web/cobrands/sass/_layout.scss
@@ -729,7 +729,7 @@ input[type=text],
input[type=password],
input[type=email],
textarea{
- max-width: 25em;
+ max-width: 27em;
}
/* form errors */
@@ -1126,13 +1126,6 @@ $button_bg_col: #a1a1a1; // also search bar (tables)
.container {
width: 100%;
}
- /*FORMS*/
- input[type=text],
- input[type=password],
- input[type=email],
- textarea{
- width: 95%;
- }
// Remove central positioning of mainmenu and float right.
// Left padding is to ensure no overlap of the site-logo