[epiphany/wip/exalm/urlbar: 3/5] CSS: Make entry transparent in incognito mode



commit 4a251c46838a7a635778f260401c57fd4338098a
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date:   Tue Jan 29 10:47:28 2019 +0500

    CSS: Make entry transparent in incognito mode

 src/resources/themes/Adwaita.css  | 2 ++
 src/resources/themes/Adwaita.scss | 4 ++++
 2 files changed, 6 insertions(+)
---
diff --git a/src/resources/themes/Adwaita.css b/src/resources/themes/Adwaita.css
index b1aba3b37..5bbb33992 100644
--- a/src/resources/themes/Adwaita.css
+++ b/src/resources/themes/Adwaita.css
@@ -43,6 +43,8 @@
 
 .incognito-mode headerbar entry { border-color: #9cb9da; }
 
+.incognito-mode headerbar entry:not(:hover):not(:focus) { background-color: rgba(255, 255, 255, 0.75); }
+
 .incognito-mode headerbar entry:focus { border-color: #3584e4; box-shadow: inset 0 0 0 1px #3584e4; }
 
 .incognito-mode headerbar entry:backdrop { box-shadow: none; }
diff --git a/src/resources/themes/Adwaita.scss b/src/resources/themes/Adwaita.scss
index 6aec47cc9..ff9b4de48 100644
--- a/src/resources/themes/Adwaita.scss
+++ b/src/resources/themes/Adwaita.scss
@@ -67,6 +67,10 @@
     entry {
       border-color: _border_color($incognito_borders_color);
 
+      &:not(:hover):not(:focus) {
+        background-color: transparentize($base_color, 0.25);
+      }
+
       &:focus {
         border-color: entry_focus_border($selected_bg_color);
         box-shadow: entry_focus_shadow($selected_bg_color);


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