Set fields to 100% width again
authorSverre Rabbelier <srabbelier@gmail.com>
Sat, 28 Mar 2009 20:19:50 +0000
changeset 2026 388b65cabfbb
parent 2025 e44de18a2f5d
child 2027 199bcab679df
Set fields to 100% width again This patch properly fixes the problem without punishing other browsers for IE's brokenness. If we have any other IE specific fixes, we should include them in this way too. Patch by: Timothy Robert Ansell <tansell@google.com>
app/soc/content/css/soc-090418-ie.css
app/soc/content/css/soc-090418.css
app/soc/templates/soc/base.html
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/soc/content/css/soc-090418-ie.css	Sat Mar 28 20:19:50 2009 +0000
@@ -0,0 +1,32 @@
+/*
+Copyright 2009 the Melange authors.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+ */
+
+/*
+ * Put IE specific hacks in this file. Which will only be included by IE.
+ */
+
+td.formfieldvalue input {
+  width: 200px;
+}
+
+td.formfieldvalue textarea {
+  width: 200px;
+}
+
+td.formfieldvalue select {
+  width: 200px;
+}
+
--- a/app/soc/content/css/soc-090418.css	Sat Mar 28 20:19:18 2009 +0000
+++ b/app/soc/content/css/soc-090418.css	Sat Mar 28 20:19:50 2009 +0000
@@ -188,7 +188,11 @@
 }
 
 td.formfieldvalue input {
-  width: 200px;
+  width: 100%;
+}
+
+td.formfieldvalue input[type=checkbox] {
+  width: auto;
 }
 
 td.formfieldvalue input:focus {
--- a/app/soc/templates/soc/base.html	Sat Mar 28 20:19:18 2009 +0000
+++ b/app/soc/templates/soc/base.html	Sat Mar 28 20:19:50 2009 +0000
@@ -17,6 +17,10 @@
   <meta content="text/html; charset=ISO-8859-1" http-equiv="content-type">
 	{% block stylesheet %}
   <link rel="stylesheet" href="/soc/content/css/soc-090418.css" type="text/css"/>
+  <!--[if IE]>
+  <link rel="stylesheet" href="/soc/content/css/soc-090418-ie.css" type="text/css"/>
+  <![endif]-->
+
   {% if uses_jq_autocomplete %}
   <link rel="stylesheet" href="/soc/content/css/jquery-autocomplete-090304.css" type="text/css"/>
   {% endif %}