Centralize stylesheets
authorMagnus Hagander <magnus@hagander.net>
Thu, 22 Jan 2015 14:13:16 +0000 (15:13 +0100)
committerMagnus Hagander <magnus@hagander.net>
Thu, 22 Jan 2015 14:13:16 +0000 (15:13 +0100)
Instead of having inline stylesheets, put them all in a separate CSS
file. This really should've been done from the beginning, but was
clearly forgotten before deployment.

pgcommitfest/commitfest/static/commitfest/css/commitfest.css [new file with mode: 0644]
pgcommitfest/commitfest/templates/base.html
pgcommitfest/commitfest/templates/base_form.html
pgcommitfest/commitfest/templates/patch.html
pgcommitfest/commitfest/templates/thread_attach.inc
pgcommitfest/userprofile/templates/userprofileform.html

diff --git a/pgcommitfest/commitfest/static/commitfest/css/commitfest.css b/pgcommitfest/commitfest/static/commitfest/css/commitfest.css
new file mode 100644 (file)
index 0000000..74cb018
--- /dev/null
@@ -0,0 +1,62 @@
+/*
+ * commitfest.postgresql.org specific styles
+ */
+
+/* For close button with float disabled */
+.close-nofloat {
+   float: none !important;
+}
+
+/* General form styling */
+.form-horizontal div.form-group {
+   margin-bottom: 10px;
+}
+div.form-group div.controls ul {
+   list-style-type: none;
+   margin: 0px;
+   padding: 0px;
+}
+div.form-group div.controls ul li {
+   display: inline;
+}
+div.form-group div.controls ul li label {
+   display: inline;
+   font-weight: normal;
+   vertical-align:middle;
+}
+div.form-group div.controls ul li label input {
+   display: inline;
+   vertical-align:middle;
+}
+div.form-group div.controls input[type='checkbox'] {
+   width: 10px;
+}
+
+div.controls ul.selectable-deck li.selectable-deck-item {
+   display: block;
+}
+
+div.controls ul.selectable-deck li.selectable-deck-item a.selectable-deck-remove {
+   float: none;
+   margin-left: 10px;
+}
+
+div.form-group div.controls input.threadpick-input {
+   width: 80%;
+   display: inline;
+}
+
+
+/*
+ * Attach thread dialog
+ */
+#attachThreadListWrap.loading {
+    display: block;
+    background: url('/static/commitfest/spinner.gif') no-repeat center;
+    width: 124px;
+    height: 124px;
+    margin: 0 auto;
+}
+#attachThreadListWrap.loading * {
+    display: none;
+}
index a22b1eeec14bb5a24450d51fe0776530e0e4cf03..6c8756c5a36819e6da9b9a43236d0904475544cc 100644 (file)
@@ -7,6 +7,7 @@
   <link rel="stylesheet" href="/static/selectable/css/dj.selectable.css" type="text/css" media="all">
   <link rel="stylesheet" href="/static/commitfest/css/bootstrap.css" />
   <link rel="stylesheet" href="/static/commitfest/css/bootstrap-theme.min.css" />
+  <link rel="stylesheet" href="/static/commitfest/css/commitfest.css" />
   <link rel="shortcut icon" href="/static/commitfest/favicon.ico" />
 {%if rss_alternate%}  <link rel="alternate" type="application/rss+xml" title="{{rss_alternate_title}}" href="{{rss_alternate}}" />{%endif%}
 </head>
index c6cf605c325f295818aa9292c794d1535f458109..6a2adddec99c35a3153178bfbd95811ffcc88611 100644 (file)
@@ -3,45 +3,6 @@
 {%load commitfest%}
 
 {%block contents%}
-<style>
-.form-horizontal div.form-group {
-   margin-bottom: 10px;
-}
-div.form-group div.controls ul {
-   list-style-type: none;
-   margin: 0px;
-   padding: 0px;
-}
-div.form-group div.controls ul li {
-   display: inline;
-}
-div.form-group div.controls ul li label {
-   display: inline;
-   font-weight: normal;
-   vertical-align:middle;
-}
-div.form-group div.controls ul li label input {
-   display: inline;
-   vertical-align:middle;
-}
-div.form-group div.controls input[type='checkbox'] {
-   width: 10px;
-}
-
-div.controls ul.selectable-deck li.selectable-deck-item {
-   display: block;
-}
-
-div.controls ul.selectable-deck li.selectable-deck-item a.selectable-deck-remove {
-   float: none;
-   margin-left: 10px;
-}
-
-div.form-group div.controls input.threadpick-input {
-   width: 80%;
-   display: inline;
-}
-</style>
 <form class="form-horizontal {{extraformclass}}" method="POST" action=".">{%csrf_token%}
 {%if form.errors%}
  <div class="alert">Please correct the errors below, and re-submit the form.</div>
index 4bfb6ab63040476843cc81109ab65ecae7818b1a..d09a1752b9d15acfddc040e04bd5dbb58e074239 100644 (file)
@@ -1,12 +1,6 @@
 {%extends "base.html"%}
 {%load commitfest%}
 {%block contents%}
-<style>
-.close-nofloat {
-   float: none !important;
-}
-</style>
-
 {%include "patch_commands.inc"%}
 <table class="table table-bordered">
   <tbody>
index 44c4316856dd71471db52520e80d6c1bf8cb4c40..4e538ccdd0a72fbd20f0f4e0668f2e86cdfaa2c5 100644 (file)
@@ -1,17 +1,4 @@
 {%comment%}Modal dialog for attach thread{%endcomment%}
-<style>
-#attachThreadListWrap.loading {
-    display: block;
-    background: url('/static/commitfest/spinner.gif') no-repeat center;
-    width: 124px;
-    height: 124px;
-    margin: 0 auto;
-}
-#attachThreadListWrap.loading * {
-    display: none;
-}
-</style>
-
 <div class="modal fade" id="attachModal" role="dialog">
  <div class="modal-dialog modal-lg"><div class="modal-content">
  <div class="modal-header">
index 4764fadc096de5bf6e5bdf7725a758a94c2c6a76..9e6db7fd533e4023ae378147c89680b4f9a0ec73 100644 (file)
@@ -2,45 +2,6 @@
 {%load commitfest%}
 
 {%block contents%}
-<style>
-.form-horizontal div.form-group {
-   margin-bottom: 10px;
-}
-div.form-group div.controls ul {
-   list-style-type: none;
-   margin: 0px;
-   padding: 0px;
-}
-div.form-group div.controls ul li {
-   display: inline;
-}
-div.form-group div.controls ul li label {
-   display: inline;
-   font-weight: normal;
-   vertical-align:middle;
-}
-div.form-group div.controls ul li label input {
-   display: inline;
-   vertical-align:middle;
-}
-div.form-group div.controls input[type='checkbox'] {
-   width: 10px;
-}
-
-div.controls ul.selectable-deck li.selectable-deck-item {
-   display: block;
-}
-
-div.controls ul.selectable-deck li.selectable-deck-item a.selectable-deck-remove {
-   float: none;
-   margin-left: 10px;
-}
-
-div.form-group div.controls input.threadpick-input {
-   width: 80%;
-   display: inline;
-}
-</style>
 <form class="form-horizontal {{extraformclass}}" method="POST" action=".">{%csrf_token%}
 {%if form.errors%}
  <div class="alert">Please correct the errors below, and re-submit the form.</div>