summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMáirín Duffy <duffy@redhat.com>2011-12-13 23:23:14 (GMT)
committerMáirín Duffy <duffy@redhat.com>2011-12-13 23:23:14 (GMT)
commit4319d4558b61c2346afb48bf49aa5b205c6599fc (patch)
tree02dbb15263e4b8a4f83c729d9cd6c255708e5cd8
parent1afb15ed476c04cbb3e7a6b10416f8b27767eb39 (diff)
downloadfedoracommunity-4319d4558b61c2346afb48bf49aa5b205c6599fc.zip
fedoracommunity-4319d4558b61c2346afb48bf49aa5b205c6599fc.tar.gz
fedoracommunity-4319d4558b61c2346afb48bf49aa5b205c6599fc.tar.xz
lots more pretty for the patches UI. but again, work-in-progress!
-rw-r--r--fedoracommunity/public/css/fedora.css82
-rw-r--r--fedoracommunity/widgets/package/templates/patches.mak4
2 files changed, 71 insertions, 15 deletions
diff --git a/fedoracommunity/public/css/fedora.css b/fedoracommunity/public/css/fedora.css
index 6682c1a..2f8acbc 100644
--- a/fedoracommunity/public/css/fedora.css
+++ b/fedoracommunity/public/css/fedora.css
@@ -193,10 +193,6 @@ table {
/* Patches stuff */
-.patches .highlight {
- width: 720px;
-}
-
.patches pre {
white-space: pre-wrap;
white-space: -moz-pre-wrap;
@@ -211,7 +207,7 @@ table {
}
.patches .highlight pre {
- margin-top: -19px;
+ margin-top: -7px;
padding-left: 7px;
}
@@ -222,8 +218,8 @@ table {
.patches {
display: table;
- background-color: #efefef;
- border: 1px solid #efefef;
+ background-color: #ddd;
+ border: 1px solid #ddd;
margin-top: 12px;
width: 100%;
}
@@ -231,8 +227,8 @@ table {
.patches table {
background-color: white;
width: 100%;
- border: 10px solid #efefef;
- border-top: 5px solid #efefef;
+ border: 10px solid #ddd;
+ border-top: 5px solid #ddd;
border-collapse: collapse;
}
@@ -350,10 +346,6 @@ table {
border-bottom: 1px solid #DB347A !important;
}
-table.changelog {
-
-}
-
.patches td {
padding: 0px !important;
}
@@ -362,6 +354,70 @@ table.changelog {
padding: 3px 5px !important;
}
+.changelog td {
+ padding-right: 0px;
+}
+
+.patches .patch-name td:first-child {
+ padding-left: 7px !important;
+ border-left: 1px solid #ccc;
+}
+
+.patches .patch-name td:last-child {
+ padding-right: 7px !important;
+ border-right: 1px solid #ccc;
+}
+
+#patches .diffstat-all .diffstat th:first-child,
+#patches .diffstat-all .diffstat td:first-child { border-left: 0px !important; padding-left: 7px !important;}
+#patches .diffstat-all .diffstat th:last-child,
+#patches .diffstat-all .diffstat td:last-child { border-right: 0px !important; padding-right: 7px !important;}
+#patches .diffstat-all table.diffstat {
+ padding-bottom: 15px;
+}
+
+#patches .diffstat-all table.diffstat td {
+ border-bottom: 0px;
+ padding-bottom: 3px !important;
+}
+
+#patches .diffstat-all table.diffstat .split {
+ padding-top: 5px !important;
+}
+
+.patches .patch-name td {
+ border-bottom: 1px solid #ccc;
+}
+
+.patches .patch-name:first-child td {
+ border-top: 1px solid #ccc;
+}
+
+.patches .patch-name td { padding-top: 4px !important; padding-bottom: 4px !important;}
+
+.patches .frame_link { text-decoration: underline; color: #a07cbc; }
+
+#patches .diffstat-all .diffstat th:last-child {
+ padding-left: 0px;
+}
+
+.active-patch td {
+ background-color: #eee !important;
+}
+
+.patch-content .changelog {
+ background-color: #eee !important;
+}
+
+.patch-content .changelog tr:last-child td {
+ padding-bottom: 10px !important;
+}
+
+.patch-name td:first-child a {
+ font-weight: 700;
+ font-size: 100%;
+}
+
/* Specfile stuff */
#specfile .code .highlight {
diff --git a/fedoracommunity/widgets/package/templates/patches.mak b/fedoracommunity/widgets/package/templates/patches.mak
index c0d9c38..5e71e87 100644
--- a/fedoracommunity/widgets/package/templates/patches.mak
+++ b/fedoracommunity/widgets/package/templates/patches.mak
@@ -14,14 +14,14 @@ ${w.children[0].display(on_change='on_change', package=w.package)}
<%namespace file="diffstat.mak" import="render_diffstat"/>
<a class="frame_link" href="#" onclick="return toggle_diffstat()">Show summary of all patches</a>
-<div id="diffstat" style="display:none">
+<div id="diffstat" class="diffstat-all" "style="display:none">
% if w.diffstat:
${render_diffstat(w.diffstat)}
% endif
</div>
<table>
% for patch in sorted(w.patches):
- <tr id="${patch}">
+ <tr id="${patch}" class="patch-name">
<td><a href="#" onclick="return toggle_patch('${patch}');">${patch}</a></td>
<td class="age">Added ${w.patches[patch][0]} ago <span class="date">(${w.patches[patch][1]})</span></td>
</tr>