You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2019/11/07 15:19:13 UTC

[allura] 01/02: [#8339] scope form CSS rules better on various pages, so it doesn't interfere with a form that may be in a custom theme header

This is an automated email from the ASF dual-hosted git repository.

brondsem pushed a commit to branch db/8339
in repository https://gitbox.apache.org/repos/asf/allura.git

commit 59660aa09d7471ac83b8a8149bc7d2c987524a7e
Author: Dave Brondsema <da...@brondsema.net>
AuthorDate: Wed Nov 6 11:29:25 2019 -0500

    [#8339] scope form CSS rules better on various pages, so it doesn't interfere with a form that may be in a custom theme header
---
 ...ite_admin_site_notifications_create_update.html | 22 +++++++++++-----------
 Allura/allura/templates/site_admin_task_new.html   | 20 ++++++++++----------
 Allura/allura/templates/webhooks/create_form.html  | 12 ++++++------
 .../forgeimporters/templates/importer_base.html    | 12 ++++++------
 4 files changed, 33 insertions(+), 33 deletions(-)

diff --git a/Allura/allura/templates/site_admin_site_notifications_create_update.html b/Allura/allura/templates/site_admin_site_notifications_create_update.html
index 0d3c730..2bae3cb 100644
--- a/Allura/allura/templates/site_admin_site_notifications_create_update.html
+++ b/Allura/allura/templates/site_admin_site_notifications_create_update.html
@@ -22,33 +22,33 @@
 
 {% block extra_css %}
 <style>
-  form {
+  #content_base form {
     margin: 1em;
   }
-  form > div {
+  #content_base form > div {
     margin-bottom: 1em;
   }
-  form > div > *{
+  #content_base form > div > *{
     display: inline-block;
     vertical-align: top;
   }
-  form > div input,
-  form > div textarea,
-  form > .input {
+  #content_base form > div input,
+  #content_base form > div textarea,
+  #content_base form > .input {
     display: block;
     -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
     box-sizing: border-box;
   }
-  form > div  input:not([type="checkbox"]),
-  form > div textarea,
-  form > .input {
+  #content_base form > div  input:not([type="checkbox"]),
+  #content_base form > div textarea,
+  #content_base form > .input {
     width: 300px;
   }
-  form > div label {
+  #content_base form > div label {
     width: 100px;
   }
-  .error {
+  #content_base .error {
     width: 300px;
     background: none;
     border: none;
diff --git a/Allura/allura/templates/site_admin_task_new.html b/Allura/allura/templates/site_admin_task_new.html
index cf66620..ecd41da 100644
--- a/Allura/allura/templates/site_admin_task_new.html
+++ b/Allura/allura/templates/site_admin_task_new.html
@@ -22,26 +22,26 @@
 
 {% block extra_css %}
 <style>
-  form {
+  #content_base form {
     margin: 1em;
   }
-  form > div {
+  #content_base form > div {
     margin-bottom: 1em;
   }
-  form > div > *{
+  #content_base form > div > *{
     display: inline-block;
     vertical-align: top;
   }
-  form > div input,
-  form > div textarea,
-  form > .input {
+  #content_base form > div input,
+  #content_base form > div textarea,
+  #content_base form > .input {
     display: block;
     width: 300px;
   }
-  form > div label {
+  #content_base form > div label {
     width: 100px;
   }
-  .error {
+  #content_base .error {
     width: 300px;
     background: none;
     border: none;
@@ -49,10 +49,10 @@
     margin: 0;
     padding: 0 0 0 .8em;
   }
-  pre.doc {
+  #content_base pre.doc {
     clear: left;
   }
-  .note {
+  #content_base .note {
     font-size: small;
     font-style: italic;
   }
diff --git a/Allura/allura/templates/webhooks/create_form.html b/Allura/allura/templates/webhooks/create_form.html
index 878b4f7..9598e1f 100644
--- a/Allura/allura/templates/webhooks/create_form.html
+++ b/Allura/allura/templates/webhooks/create_form.html
@@ -24,29 +24,29 @@
 
 {% block extra_css %}
   <style type="text/css">
-    form {
+    #content_base form {
       padding: 0 20px 20px 20px;
     }
-    form label {
+    #content_base form label {
       display: inline-block;
       width: 30%;
       vertical-align: top;
     }
-    form > div {
+    #content_base form > div {
       margin-bottom: 10px;
     }
-    form > div input {
+    #content_base form > div input {
       width: 30%;
       vertical-align: top;
     }
-    form > div input[type="checkbox"] {
+    #content_base form > div input[type="checkbox"] {
       -moz-box-shadow: none;
       -webkit-box-shadow: none;
       -o-box-shadow: none;
       box-shadow: none;
       width: 1em;
     }
-    form .error {
+    #content_base form .error {
       display: inline-block;
       color: #f00;
       background: none;
diff --git a/ForgeImporters/forgeimporters/templates/importer_base.html b/ForgeImporters/forgeimporters/templates/importer_base.html
index 18fc312..cec5195 100644
--- a/ForgeImporters/forgeimporters/templates/importer_base.html
+++ b/ForgeImporters/forgeimporters/templates/importer_base.html
@@ -28,29 +28,29 @@
 
 {% block extra_css %}
   <style type="text/css">
-    form {
+    #content_base form {
       padding: 0 20px 20px 20px;
     }
-    form label {
+    #content_base form label {
       display: inline-block;
       width: 30%;
       vertical-align: top;
     }
-    form > div {
+    #content_base form > div {
       margin-bottom: 10px;
     }
-    form > div input {
+    #content_base form > div input {
       width: 30%;
       vertical-align: top;
     }
-    form > div input[type="checkbox"] {
+    #content_base form > div input[type="checkbox"] {
       -moz-box-shadow: none;
       -webkit-box-shadow: none;
       -o-box-shadow: none;
       box-shadow: none;
       width: 1em;
     }
-    form .error {
+    #content_base form .error {
       display: inline-block;
       color: #f00;
       background: none;