[Xfce4-commits] <postler:master> Use .actions .button for replying and attachments
Christian Dywan
noreply at xfce.org
Thu Jun 30 00:34:04 CEST 2011
Updating branch refs/heads/master
to 72aef4d11cb0a6d3757feeefabaf14ac3c73da62 (commit)
from fee41d4cf3238c025f87d39a7d1ed97c16533a22 (commit)
commit 72aef4d11cb0a6d3757feeefabaf14ac3c73da62
Author: Christian Dywan <christian at twotoasts.de>
Date: Wed Jun 29 23:19:17 2011 +0200
Use .actions .button for replying and attachments
postler/postler-content.vala | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/postler/postler-content.vala b/postler/postler-content.vala
index 50a8d81..8a8562d 100644
--- a/postler/postler-content.vala
+++ b/postler/postler-content.vala
@@ -55,6 +55,12 @@ public class Postler.Content : WebKit.WebView {
.sender {
margin-bottom: 0.5em;
}
+ .button, .button[href] {
+ padding: 0.4em 1em !important;
+ -webkit-appearance: push-button !important;
+ color: ButtonText !important;
+ text-decoration: none !important;
+ }
/* Addresses not underlined, but underlined when hovering */
a {
color: Link !important;
@@ -110,12 +116,6 @@ public class Postler.Content : WebKit.WebView {
.actions {
float: right;
}
- .actions a, .actions a[href] {
- padding: 0.4em 1em;
- -webkit-appearance: push-button;
- color: ButtonText !important;
- text-decoration: none !important;
- }
/* Dynamically sized and visible statusbar */
a[href^=http]:hover:after {
content: attr(href);
@@ -714,8 +714,8 @@ public class Postler.Content : WebKit.WebView {
/* FIXME: Move Bureau.compose_message () here */
reply_chunk.append ("""
<div class="actions">
- <a href="mailto:%s?subject=Re: %s">%s</a>
- <a href="mailto:%s?subject=Fw: %s">%s</a></div>
+ <a href="mailto:%s?subject=Re: %s" class="button">%s</a>
+ <a href="mailto:%s?subject=Fw: %s" class="button">%s</a></div>
""".printf (
child.sender, child.subject, _("Reply"),
child.sender, child.subject, _("Forward")));
@@ -746,8 +746,8 @@ public class Postler.Content : WebKit.WebView {
reply_markup = reply_markup.replace ("%message%",
"""
<b>%s</b><div class="actions">
- <a href="message-part:save:%d">%s</a>
- <a href="message-part:open:%d">%s</a></div>
+ <a href="message-part:save:%d" class="button">%s</a>
+ <a href="message-part:open:%d" class="button">%s</a></div>
""".printf (
attachment_part.filename ?? attachment_part.mime_type,
child.parts.position (child.parts.find (attachment_part)), _("Save"),
More information about the Xfce4-commits
mailing list