From dd3d604b6d927f325604be30b41d909b5cfaaf81 Mon Sep 17 00:00:00 2001 From: Michael James Gratton Date: Wed, 8 Feb 2017 00:31:25 +1100 Subject: [PATCH] Tidy up ConversationWebView's CSS a bit. --- ui/conversation-web-view.css | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/ui/conversation-web-view.css b/ui/conversation-web-view.css index b366b58b..81a4d1fd 100644 --- a/ui/conversation-web-view.css +++ b/ui/conversation-web-view.css @@ -136,8 +136,15 @@ pre { -webkit-user-drag: none; } - .geary-quote-container .geary-button, - .geary-quote-container .geary-button { + .geary-quote-container.geary-controllable.geary-hide > .geary-hider { + display: none; + } + .geary-quote-container.geary-controllable.geary-hide > .geary-shower, + .geary-quote-container.geary-controllable > .geary-hider { + display: block; + } + + .geary-quote-container >> .geary-button { display: block; width: 100%; height: 16px; @@ -147,6 +154,8 @@ pre { padding: 0; font-size: 8px; /* Absolute size in pixels for graphics */ white-space: pre; + -webkit-user-select: none; + -webkit-user-drag: none; /* All futher properties below are a workaround for WK Bug 166648 * . The result is * we need to manually style these buttons outselves. */ @@ -165,7 +174,7 @@ pre { text-shadow: 0 1px rgba(255, 255, 255, 0.76923); box-shadow: inset 0 1px rgba(255, 255, 255, 0.8); } } - .geary-quote-container .geary-button:hover { + .geary-quote-container >> .geary-button:hover { /* Likewise the properties below also workaround WK Bug 166648, * and taken from gtk/theme/Adwaita/gtk-contained.css. */ color: #2e3436; @@ -177,14 +186,6 @@ pre { background-image: linear-gradient(to bottom, #f7f7f7, #e8e8e7 60%, #dededd); } - .geary-quote-container.geary-controllable.geary-hide > .geary-hider { - display: none; - } - .geary-quote-container.geary-controllable.geary-hide > .geary-shower, - .geary-quote-container.geary-controllable > .geary-hider { - display: block; - } - /* Highlight search terms */ .geary_search_coloring *::selection {