summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMáirín Duffy <duffy@redhat.com>2011-12-08 21:18:54 (GMT)
committerMáirín Duffy <duffy@redhat.com>2011-12-08 21:18:54 (GMT)
commit6716f4c1e4cf3fd34092daa8557ec2b85ac3b6d3 (patch)
treef7291d2c527f95e3cddea6acf40f62c6cc1edfcd
parent3fb9ce2b58874d221e841c8f4791fc1b382a5222 (diff)
downloadfedoracommunity-6716f4c1e4cf3fd34092daa8557ec2b85ac3b6d3.zip
fedoracommunity-6716f4c1e4cf3fd34092daa8557ec2b85ac3b6d3.tar.gz
fedoracommunity-6716f4c1e4cf3fd34092daa8557ec2b85ac3b6d3.tar.xz
patch tweaks for css
-rw-r--r--fedoracommunity/public/css/fedora.css108
-rw-r--r--fedoracommunity/widgets/package/templates/changelog.mak3
-rw-r--r--fedoracommunity/widgets/package/templates/changelog_table_widget.mak4
-rw-r--r--fedoracommunity/widgets/package/templates/diffstat.mak4
-rw-r--r--fedoracommunity/widgets/package/templates/patch.mak5
-rw-r--r--fedoracommunity/widgets/package/templates/patches.mak5
6 files changed, 118 insertions, 11 deletions
diff --git a/fedoracommunity/public/css/fedora.css b/fedoracommunity/public/css/fedora.css
index a65252a..616201b 100644
--- a/fedoracommunity/public/css/fedora.css
+++ b/fedoracommunity/public/css/fedora.css
@@ -187,6 +187,114 @@ h1#logo {
height: 26px;
}
+/* Patches stuff */
+
+
+.patches {
+ display: table;
+ width: 100%;
+ background-color: #efefef;
+ border: 1px solid #efefef;
+ margin-top: 12px;
+}
+
+.patches table {
+ background-color: white;
+ width: 100%;
+ border: 10px solid #efefef;
+ border-top: 5px solid #efefef;
+ border-collapse: collapse;
+}
+
+.patches td {
+ border-bottom: 1px solid #ededed;
+ padding: 3px 5px;
+}
+
+.patches tr#patch td {
+ padding: 3px 0px;
+}
+
+.patches table table {
+ width: 100%;
+ border: none !important;
+ background-color: none;
+}
+
+.patches table table td {
+ border: white !important;
+}
+
+.patches table tr#patch table td {
+ border: none;
+}
+
+.patches pre {
+ max-width: 500px !important;
+ word-wrap: break-word !important; /* IE */
+ white-space: pre-wrap; /* css3 */
+ white-space: -moz-pre-wrap; /* moz */
+ white-space: -pre-wrap; /* old opera */
+ white-space: -o-pre-wrap; /* new opera */
+ width: 100%;
+
+}
+
+.patches .highlighttable .linenos {
+ padding: 1px;
+ background-color: #f8f8f8;
+
+}
+
+.patches .patch_footer {
+ background-color: #efefef;
+}
+
+.patches .patch_footer a {
+ text-decoration: none;
+ padding-left: 5px;
+}
+
+.patches .frame_link {
+ display: block;
+ text-align: center;
+ padding-top: 3px;
+}
+
+.patches .changelog {
+ background-color: #fcfcfc;
+ width: 100%;
+ font-size: small;
+}
+
+.patches h4 {
+ color: #666;
+ font-size: small;
+ padding-top: 5px;
+ padding-bottom: 3px;
+ background-color: #f9f9f9;
+ padding-left: 8px;
+}
+
+.patches .diffstat {
+ padding-top: 5px;
+ background-color: #f9f9f9;
+ font-size: small;
+}
+
+.patches .diffstat th {
+ font-size: x-small;
+ font-weight: bold;
+ text-transform: uppercase;
+ padding-left: 10px;
+ color: black;
+}
+
+.patches .diffstat .split {
+ font-size: x-small;
+ font-weight: bold;
+}
+
/* Footer Stuff */
diff --git a/fedoracommunity/widgets/package/templates/changelog.mak b/fedoracommunity/widgets/package/templates/changelog.mak
index 8c5115c..c3c8288 100644
--- a/fedoracommunity/widgets/package/templates/changelog.mak
+++ b/fedoracommunity/widgets/package/templates/changelog.mak
@@ -1,6 +1,5 @@
<div>
- <div>
- <h3>Current Builds</h3>
+ <div class="tab-container">
<div>${w.children[0].display(build_id=w.default_build_id,
latest_builds=w.latest_builds)}</div>
</div>
diff --git a/fedoracommunity/widgets/package/templates/changelog_table_widget.mak b/fedoracommunity/widgets/package/templates/changelog_table_widget.mak
index 7c283c7..5bf1e18 100644
--- a/fedoracommunity/widgets/package/templates/changelog_table_widget.mak
+++ b/fedoracommunity/widgets/package/templates/changelog_table_widget.mak
@@ -17,10 +17,10 @@
return results.html();
}
</script>
- <div id='grid-controls'>
+ <div id="grid-controls">
<form>
<div id="filter" class="grid_filter" name="build_filter">
- <label for="version">Build:</label>
+ <label for="version"><h4>Release:</h4></label>
<select name="build_id">
% for (i, build) in enumerate(w.latest_builds.keys()):
<%
diff --git a/fedoracommunity/widgets/package/templates/diffstat.mak b/fedoracommunity/widgets/package/templates/diffstat.mak
index 4f54b67..b85b107 100644
--- a/fedoracommunity/widgets/package/templates/diffstat.mak
+++ b/fedoracommunity/widgets/package/templates/diffstat.mak
@@ -1,12 +1,12 @@
<%def name="render_diffstat(diffstat)">
<table class="diffstat">
-<thead><tr><td><b>File</b></td><td><b>Changes</b></td></tr></thead>
+<thead><tr><th>File</th><th>Changes</th></tr></thead>
<% diffstat_split = diffstat.strip().split('\n') %>
% for line in diffstat_split[:-1]:
<% split = line.split('|') %>
<tr><td>${split[0]}</td><td>${split[1]}</td></tr>
% endfor
-<tr><td colspan="2"><b>${diffstat_split[-1]}</b></td></tr>
+<tr><td colspan="2" class="split">${diffstat_split[-1]}</td></tr>
</table>
</%def>
diff --git a/fedoracommunity/widgets/package/templates/patch.mak b/fedoracommunity/widgets/package/templates/patch.mak
index b777bce..6e4f1cb 100644
--- a/fedoracommunity/widgets/package/templates/patch.mak
+++ b/fedoracommunity/widgets/package/templates/patch.mak
@@ -1,8 +1,7 @@
<%namespace file="diffstat.mak" import="render_diffstat"/>
% if w.changelog:
-<b>ChangeLog:</b>
-<table>
+<table class="changelog">
% for change in w.changelog:
<tr>
<td>
@@ -19,7 +18,7 @@
% endif
% if w.diffstat:
-<b>Summary of changes in this patch:</b>
+<h4>Summary of changes in this patch:</h4>
${render_diffstat(w.diffstat)}
% endif
<br/>
diff --git a/fedoracommunity/widgets/package/templates/patches.mak b/fedoracommunity/widgets/package/templates/patches.mak
index 736c2bc..3f23bc3 100644
--- a/fedoracommunity/widgets/package/templates/patches.mak
+++ b/fedoracommunity/widgets/package/templates/patches.mak
@@ -1,12 +1,12 @@
+<div class="patches">
<%namespace file="diffstat.mak" import="render_diffstat"/>
-<center><a id="diffstat_link" href="#" onclick="return toggle_diffstat()">Show summary of all patches</a></center>
+<a class="frame_link" href="#" onclick="return toggle_diffstat()">Show summary of all patches</a>
<div id="diffstat" style="display:none">
% if w.diffstat:
${render_diffstat(w.diffstat)}
% endif
</div>
-<br/>
<table>
% for patch in sorted(w.patches):
<tr id="${patch}">
@@ -45,4 +45,5 @@ function toggle_diffstat() {
}
}
</script>
+</div>