]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 956190 (part 1): Merge index.css and page.css with global.css
authorFrédéric Buclin <LpSolit@gmail.com>
Sun, 2 Mar 2014 13:14:12 +0000 (14:14 +0100)
committerFrédéric Buclin <LpSolit@gmail.com>
Sun, 2 Mar 2014 13:14:12 +0000 (14:14 +0100)
r/a=justdave

skins/contrib/Dusk/global.css
skins/contrib/Dusk/index.css [deleted file]
skins/standard/global.css
skins/standard/index.css [deleted file]
skins/standard/page.css [deleted file]
template/en/default/index.html.tmpl
template/en/default/pages/fields.html.tmpl
template/en/default/pages/quicksearch.html.tmpl
template/en/default/pages/release-notes.html.tmpl
template/en/default/pages/release-notes3.html.tmpl
template/en/default/welcome-admin.html.tmpl

index 4f6e00341d451ac33802574ff0548965c419ac5b..7ffb910144bb2a2c7f56ede06583566eb9c25f3f 100644 (file)
@@ -212,6 +212,10 @@ hr {
     background-color: #f0f0f0;
 }
 
+#page-index .outro {
+    clear:both;
+}
+
 /* Rules specific for printing */
 @media print {
     #header,
diff --git a/skins/contrib/Dusk/index.css b/skins/contrib/Dusk/index.css
deleted file mode 100644 (file)
index 8ea90b5..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This Source Code Form is "Incompatible With Secondary Licenses", as
- * defined by the Mozilla Public License, v. 2.0.
- */
-    
-    div#page-index .outro 
-    {
-        clear:both;
-    }
index 517d3afb8970128bc7ca830d8cae56fb02433e38..60ffe5d469d8d3aaaf16e7896df5c45f3fee5227 100644 (file)
@@ -765,3 +765,211 @@ tr.shared_search {
     -moz-columns: 3;
     -webkit-columns: 3;
 }
+
+/* index.cgi (begin) */
+
+#page-index {
+    padding: 0.2em 0.2em 0.15em 0.2em;
+    max-width: 1000px;
+}
+
+/* By default these contain nothing, but these CSS rules make things
+   easier on customizers. */
+.intro, .outro {
+    text-align: center;
+}
+
+#new_release {
+    border: 2px solid red;
+    padding: 0.5em 1em;
+    margin: 1em;
+    font-weight: bold;
+}
+
+#new_release .notice {
+    font-size: 80%;
+    font-weight: normal;
+}
+
+#welcome-admin a {
+    font-weight: bold;
+}
+
+.bz_common_actions {
+    text-align: center;
+}
+
+.bz_common_actions ul {
+    list-style-type: none;
+    padding: 0;
+}
+
+.bz_common_actions ul li {
+    display: inline;
+    vertical-align: top;
+}
+
+.bz_common_actions ul li a {
+    display: inline-block;
+    height: 170px;
+    width: 145px;
+    margin: 0 2ex 2em 0;
+}
+
+.bz_common_actions ul li a span {
+    position: relative;
+    top: 90%;
+    font-weight: bold;
+}
+
+.bz_common_actions a,
+.bz_common_actions a:visited,
+.bz_common_actions a:hover {
+    text-decoration: none;
+}
+
+#enter_bug { background: url(index/file-a-bug.png)  no-repeat; }
+#query     { background: url(index/search.png)      no-repeat; }
+#account   { background: url(index/new-account.png) no-repeat; }
+#help      { background: url(index/help.png)        no-repeat; }
+
+#quicksearchForm {
+    clear: both;
+    text-align: center;
+    margin-bottom: 2em;
+}
+
+#quicksearchForm #quicksearch_main {
+    width: 27em;
+}
+
+#quicksearchForm {
+    margin: 0;
+    padding: 0;
+}
+
+#page-index table {
+    border-collapse: collapse;
+    margin: auto;
+}
+
+#welcome {
+    font-size: x-large;
+    font-weight: bold;
+    text-align: center;
+    margin: 0 0 0.8em 0;
+    padding: 0;
+}
+
+#common_queries ul {
+    list-style: none;
+    padding-left: 1.5em;
+}
+
+#common_queries li a {
+    text-decoration: none;
+}
+
+ul#quicksearch_links {
+    margin-bottom: 1em;
+}
+
+ul.additional_links {
+    list-style: none;
+    margin: 0;
+    padding: 0;
+}
+
+ul.additional_links li {
+    display: inline;
+}
+
+ul.additional_links li.bz_default_hidden {
+    display: none;
+}
+
+input.quicksearch_help_text {
+    color: #ccc;
+}
+
+/* index.cgi (end) */
+
+/* page.cgi (begin) */
+
+body.narrow_page #bugzilla-body > * {
+    /* People have an easier time reading narrower columns of text. */
+    max-width: 45em;
+}
+
+/*****************/
+/* Release Notes */
+/*****************/
+
+.req_new {
+    color: red;
+}
+
+.req_table {
+    border-collapse: collapse;
+}
+
+.req_table td, .req_table th {
+    border: 1px solid black;
+    padding: .25em;
+}
+
+/********************/
+/* QuickSearch Help */
+/********************/
+
+.qs_help li {
+   margin-top: 1ex;
+}
+
+.qs_fields th {
+    padding: 0 .25em;
+}
+.qs_fields th.field_nickname {
+    text-align: left;
+}
+.qs_fields td {
+    padding: .25em;
+    border-top: 1px solid gray;
+}
+.qs_fields .field_name {
+    width: 10em;
+}
+
+/***************/
+/* fields.html */
+/***************/
+
+table.field_value_explanation {
+    table-layout: fixed;
+    border-collapse: collapse;
+}
+
+.field_value_explanation thead h2 {
+    margin: 0;
+}
+
+.field_value_explanation .header_row td {
+    text-align: center;
+    font-size: 120%;
+    font-weight: bold;
+}
+
+.field_value_explanation tbody td {
+    border: 1px solid black;
+    padding: 1em;
+}
+
+.field_value_explanation dt, .field_descriptions dt {
+    margin-top: 1em;
+}
+
+.field_descriptions dt {
+    font-size: 120%;
+}
+
+/* page.cgi (end) */
diff --git a/skins/standard/index.css b/skins/standard/index.css
deleted file mode 100644 (file)
index bfe0b2a..0000000
+++ /dev/null
@@ -1,142 +0,0 @@
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This Source Code Form is "Incompatible With Secondary Licenses", as
- * defined by the Mozilla Public License, v. 2.0.
- */
-
-/* index page (begin) */
-
-    #page-index
-    {
-        padding: 0.2em 0.2em 0.15em 0.2em;
-        max-width: 1000px;
-    }
-
-    /* By default these contain nothing, but these CSS rules make things
-       easier on customizers. */
-    .intro, .outro {
-        text-align: center;
-    }
-
-    /* Hide from NN4 */
-
-    #new_release
-    {
-        border: 2px solid red;
-        padding: 0.5em 1em;
-        margin: 1em;
-        font-weight: bold;
-    }
-
-    #new_release .notice
-    {
-        font-size: 80%;
-        font-weight: normal;
-    }
-
-    #welcome-admin a
-    {
-        font-weight: bold;
-    }
-
-    .bz_common_actions {
-        text-align: center;
-    }
-    .bz_common_actions ul {
-        list-style-type: none;
-        padding: 0;
-    }
-    .bz_common_actions ul li {
-        display: inline;
-        vertical-align: top;
-    }
-    .bz_common_actions ul li a {
-        display: inline-block;
-        height: 170px;
-        width: 145px;
-        margin: 0 2ex 2em 0;
-    }
-    .bz_common_actions ul li a span {
-        position: relative;
-        top: 90%;
-        font-weight: bold;
-    }
-    .bz_common_actions a,
-    .bz_common_actions a:visited,
-    .bz_common_actions a:hover {
-        text-decoration: none;
-    }
-    #enter_bug { background: url(index/file-a-bug.png)  no-repeat; }
-    #query     { background: url(index/search.png)      no-repeat; }
-    #account   { background: url(index/new-account.png) no-repeat; }
-    #help      { background: url(index/help.png)        no-repeat; }
-
-    #quicksearchForm
-    {
-        clear: both;
-        text-align: center;
-        margin-bottom: 2em;
-    }
-    
-    #quicksearchForm #quicksearch_main
-    {
-        width: 27em;
-    }
-    
-    #quicksearchForm
-    {
-        margin: 0;
-        padding: 0;
-    }
-    
-    #page-index table{
-        border-collapse: collapse;
-        margin: auto;
-    }
-    
-    #welcome
-    {
-        font-size: x-large;
-        font-weight: bold;
-        text-align: center;
-        margin: 0 0 0.8em 0;
-        padding: 0;
-    }
-
-    #common_queries ul {
-        list-style: none;
-        padding-left: 1.5em;
-    }
-
-    #common_queries li a {
-        text-decoration: none;
-    }
-
-    ul.additional_links 
-    {
-        list-style: none;
-        margin: 0;
-        padding: 0;
-    }
-    
-    ul#quicksearch_links{
-        margin-bottom: 1em;
-    }
-    
-    ul.additional_links li
-    {
-        display: inline;
-    }
-    
-    ul.additional_links li.bz_default_hidden
-    {
-        display: none;
-    }
-    
-    input.quicksearch_help_text
-    {
-        color: #ccc;
-    }
-/* index page (end) */
diff --git a/skins/standard/page.css b/skins/standard/page.css
deleted file mode 100644 (file)
index f4037f3..0000000
+++ /dev/null
@@ -1,92 +0,0 @@
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This Source Code Form is "Incompatible With Secondary Licenses", as
- * defined by the Mozilla Public License, v. 2.0.
- */
-
-/* This CSS is used by various informational pages in the
-   template/en/default/pages/ directory. */
-
-#bugzilla-body {
-    padding: 0 1em;
-}
-
-#bugzilla-body > * {
-    /* People have an easier time reading narrower columns of text. */
-    max-width: 45em;
-}
-
-/*****************/
-/* Release Notes */
-/*****************/
-
-.req_new {
-    color: red;
-}
-
-.req_table {
-    border-collapse: collapse;
-}
-
-.req_table td, .req_table th {
-    border: 1px solid black;
-    padding: .25em;
-}
-
-/********************/
-/* QuickSearch Help */
-/********************/
-
-.qs_help li {
-   margin-top: 1ex;
-}
-
-.qs_fields th {
-    padding: 0 .25em;
-}
-.qs_fields th.field_nickname {
-    text-align: left;
-}
-.qs_fields td {
-    padding: .25em;
-    border-top: 1px solid gray;
-}
-.qs_fields .field_name {
-    width: 10em;
-}
-
-/***************/
-/* fields.html */
-/***************/
-
-table.field_value_explanation {
-  table-layout: fixed;
-  border-collapse: collapse;
-}
-
-.field_value_explanation thead h2 {
-  margin: 0;
-}
-
-.field_value_explanation .header_row td {
-  text-align: center;
-  font-size: 120%;
-  font-weight: bold;
-}
-
-.field_value_explanation tbody td {
-  border: 1px solid black;
-  padding: 1em;
-}
-
-.field_value_explanation dt,
-.field_descriptions dt
-{
-  margin-top: 1em;
-}
-
-.field_descriptions dt {
-  font-size: 120%;
-}
index 6904b9c944780acbf43d90611aaf649725a77db2..aa50a60e99bf187450d33328926aa9b574b6de17 100644 (file)
@@ -14,7 +14,6 @@
    title = "$terms.Bugzilla Main Page"
    header = "Main Page" 
    header_addl_info = "version $constants.BUGZILLA_VERSION"
-   style_urls = [ 'skins/standard/index.css' ]
 %]
 
 [% IF release %]
index 48b09aee0ca685f96c5e5f56f799369dea5c2132..8db61c5195551a0846efaf22e1d5bf898a1f4460 100644 (file)
@@ -6,9 +6,9 @@
   # defined by the Mozilla Public License, v. 2.0.
   #%]
 
-[% PROCESS global/header.html.tmpl 
-  title = "$terms.Bug Fields" 
-  style_urls = ['skins/standard/page.css']
+[% PROCESS global/header.html.tmpl
+  title = "$terms.Bug Fields"
+  bodyclasses = ['narrow_page']
 %]
 
 <p>This page describes the various fields that you see 
index 3c8fcfbb26ae0d609ced229b03f9cbeaa19a6ad8..8564f64d0150f0a8cef989a84a01fdd0467fc610 100644 (file)
@@ -7,8 +7,8 @@
   #%]
 
 [% INCLUDE global/header.html.tmpl
-   title  = "$terms.Bugzilla QuickSearch",
-   style_urls = ['skins/standard/page.css']
+  title = "$terms.Bugzilla QuickSearch"
+  bodyclasses = ['narrow_page']
  %]
 
 [% USE Bugzilla %]
index 887bfc5e79ef516f16ec84a9bf9175d953dc8e50..226ba145726fd78aceddf7545e6fd80e4f7db4ed 100644 (file)
@@ -9,7 +9,7 @@
 [% SET title = "Bugzilla 4.4 Release Notes" %]
 [% INCLUDE global/header.html.tmpl 
   title = title
-  style_urls = ['skins/standard/page.css'] 
+  bodyclasses = ['narrow_page']
 %]
 
 <h1>[% title FILTER html %]</h1>
index bb63a909356d290f6a5924de9967299d117d38b2..1dbbde8cb86e4424ec1098f2f252eb47145dff76 100644 (file)
@@ -9,7 +9,7 @@
 [% SET title = "Bugzilla 3.6 Release Notes" %]
 [% INCLUDE global/header.html.tmpl
   title = title
-  style_urls = ['skins/standard/page.css']
+  bodyclasses = ['narrow_page']
 %]
 
 <h3>Release Notes For Newer Versions</h3>
index 3902daf74eaddf53708b868367394fc5154d21dc..a9b30f68a7fa33f209b413b2ee820547f1170cce 100644 (file)
@@ -15,7 +15,6 @@
 [% PROCESS global/header.html.tmpl
    title = title
    header_addl_info = "version $constants.BUGZILLA_VERSION"
-   style_urls = [ 'skins/standard/index.css' ]
 %]
 
 <div id="welcome-admin">