]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 460752: Move hardcoded CSS from attachment/diff-header.html.tmpl into a separate...
authorlpsolit%gmail.com <>
Tue, 9 Dec 2008 18:09:59 +0000 (18:09 +0000)
committerlpsolit%gmail.com <>
Tue, 9 Dec 2008 18:09:59 +0000 (18:09 +0000)
skins/standard/create_attachment.css
template/en/default/attachment/diff-header.html.tmpl

index dcb19836d11fb59121591964fe3f9c8c6571ec44..9ed5151788b8190b4c0c4c85db3e4119ab451490 100644 (file)
@@ -34,3 +34,73 @@ table#flags td {
     vertical-align: baseline;
     font-size: small;
 }
+
+/* Rules used to view patches in diff mode. */
+
+.file_head {
+  font-weight: bold;
+  font-size: 1em;
+  background-color: #c3c3c3;
+  border: 1px solid black;
+}
+
+.file_head a {
+  text-decoration: none;
+  font-family: monospace;
+  font-size: 1.1em;
+}
+
+.file_collapse {
+  display: none;
+}
+
+.section_head {
+  background-color: #f0f0f0;
+  border: 1px solid black;
+  text-align: left;
+}
+
+table.file_table {
+  table-layout: fixed;
+  width: 100%;
+  empty-cells: show;
+  border-spacing: 0px;
+  border-collapse: collapse;
+  /* draw border below last open context section in listing */
+  border-bottom: 1px solid black;
+}
+
+tbody.file pre {
+  display: inline;
+  white-space: pre-wrap; /* CSS 3 & CSS 2.1 */
+  white-space: -moz-pre-wrap; /* Gecko < 1.9.1 */
+  white-space: -o-pre-wrap; /* Opera 7 */
+  font-size: 0.9em;
+}
+
+tbody.file pre:empty {
+  display: block;
+}
+
+.changed {
+  background-color: lightblue;
+}
+
+.added {
+  background-color: lightgreen;
+}
+
+.removed {
+  background-color: #FFCC99;
+}
+
+.num {
+  background-color: #ffe9ae;
+  text-align:right;
+  padding: 0 0.3em;
+  width: 3em;
+}
+
+.warning {
+  color: red
+}
index 0bf88d3d9753f189d11b0f29b35374f229e0e00d..8dcd073f11cfdf06e0c2e47169d385cc398d3ece 100644 (file)
@@ -30,76 +30,6 @@ Interdiff of #[% oldid %] and #[% newid %] for [% terms.bug %] #[% bugid %]
   [% END %]
 [% END %]
 
-[% style = BLOCK %]
-.file_head {
-  font-weight: bold;
-  font-size: 1em;
-  background-color: #c3c3c3;
-  border: 1px solid black;
-}
-
-.file_head a {
-  text-decoration: none; 
-  font-family: monospace; 
-  font-size: 1.1em;
-}
-
-.file_collapse {
-  display: none;
-}
-
-.section_head {
-  background-color: #f0f0f0;
-  border: 1px solid black;
-  text-align: left;
-}
-
-table.file_table {
-  table-layout: fixed;
-  width: 100%;
-  empty-cells: show;
-  border-spacing: 0px;
-  border-collapse: collapse;
-  /* draw border below last open context section in listing */
-  border-bottom: 1px solid black;
-}
-
-tbody.file pre {
-  display: inline;
-  white-space: pre-wrap; /* CSS 3 & CSS 2.1 */
-  white-space: -moz-pre-wrap; /* Gecko < 1.9.1 */
-  white-space: -o-pre-wrap; /* Opera 7 */
-  font-size: 0.9em;
-}
-
-tbody.file pre:empty {
-  display: block;
-}
-
-.changed {
-  background-color: lightblue;
-}
-
-.added {
-  background-color: lightgreen;
-}
-
-.removed {
-  background-color: #FFCC99;
-}
-
-.num {
-  background-color: #ffe9ae;
-  text-align:right;
-  padding: 0 0.3em;
-  width: 3em;
-}
-
-.warning {
-  color: red
-}
-[% END %]
-
 [% onload = 'restore_all(); document.checkboxform.restore_indicator.checked = true' %]
 
 [% BLOCK viewurl %]attachment.cgi?id=[% id %][% END %]
@@ -122,13 +52,12 @@ tbody.file pre:empty {
     [% bugsummary FILTER html %]
   [% END %]
   [% PROCESS global/header.html.tmpl doc_section = "attachments.html#patchviewer"
-                                     javascript_urls = "js/attachment.js" %]
+                                     javascript_urls = "js/attachment.js"
+                                     style_urls = ['skins/standard/create_attachment.css'] %]
 [% ELSE %]
   <html>
   <head>
-  <style type="text/css">
-  [% style %]
-  </style>
+  <link href="skins/standard/create_attachment.css" rel="stylesheet" type="text/css">
   <script src="js/attachment.js" type="text/javascript"></script>
   </head>
   <body onload="[% onload FILTER html %]">