[nautilus] search: fix tagged entries style



commit ae60dbd45b1322fddaaa29e3438fa1ff496f9a9b
Author: Carlos Soriano <csoriano gnome org>
Date:   Thu Feb 4 13:21:23 2016 +0100

    search: fix tagged entries style
    
    To use libgd tagged entries you must use this css which
    doesn't come with the submolude.

 src/resources/css/Adwaita.css |   38 ++++++++++++++++++++++++++++++++++++++
 1 files changed, 38 insertions(+), 0 deletions(-)
---
diff --git a/src/resources/css/Adwaita.css b/src/resources/css/Adwaita.css
index 815ca5c..5ddae5c 100644
--- a/src/resources/css/Adwaita.css
+++ b/src/resources/css/Adwaita.css
@@ -115,3 +115,41 @@
 .nautilus-list-view .view {
     border-bottom: 1px solid @theme_bg_color;
 }
+
+/* Libgd tag entries in the search. Sadly it requires this copy pasted css style.
+ * https://git.gnome.org/browse/libgd/tree/libgd/gd-tagged-entry-default.css
+ */
+ define-color entry_tag_bg #3465a4;
+ define-color entry_tag_fg #ffffff;
+
+.documents-entry-tag {
+    background-image: none;
+    background-color: @entry_tag_bg;
+    color: @entry_tag_fg;
+
+    border-radius: 4px;
+    border-width: 0;
+
+    margin: 2px;
+    padding: 4px;
+}
+
+.documents-entry-tag:hover {
+    background-color: shade(@entry_tag_bg, 1.10);
+    color: @entry_tag_fg;
+}
+
+.documents-entry-tag.button,
+.documents-entry-tag.button:hover,
+.documents-entry-tag.button:active,
+.documents-entry-tag.button:active:hover {
+    background-color: transparent;
+    background-image: none;
+    box-shadow: none;
+    border-image: none;
+    border-width: 0;
+}
+
+.documents-entry-tag.button:hover {
+    color: shade(@entry_tag_bg, 2.10);
+}


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]