[epiphany/wip/exalm/css: 2/3] theme: Update pinned tab style




commit 47add3e029efb3de465dcb7bfe3c7f0961fe0b5a
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Tue Aug 18 23:22:13 2020 +0500

    theme: Update pinned tab style
    
    Since they are now reorderable, they don't need any special styling, and
    we only need smaller minimum width. Do this for all tabs instead, others
    have minimum width restricted to well above the default 30px anyway.
    
    Meanwhile, in elementary the default value is now too low, increase it to
    30px.

 src/resources/themes/_Adwaita-base.scss | 26 +-------------------------
 src/resources/themes/elementary.scss    |  4 ++--
 2 files changed, 3 insertions(+), 27 deletions(-)
---
diff --git a/src/resources/themes/_Adwaita-base.scss b/src/resources/themes/_Adwaita-base.scss
index 7580d1e29..01a51b9e8 100644
--- a/src/resources/themes/_Adwaita-base.scss
+++ b/src/resources/themes/_Adwaita-base.scss
@@ -87,7 +87,7 @@ $close_button_fg_color: if($variant == 'light', lighten($fg_color, 10%), darken(
 
 // Pinned tabs
 .main-notebook {
-  tab:not(.reorderable-page) {
+  tab {
     min-width: 16px;
   }
 
@@ -108,30 +108,6 @@ $close_button_fg_color: if($variant == 'light', lighten($fg_color, 10%), darken(
   }
 }
 
-window:not(.incognito-mode) .main-notebook tab:not(.reorderable-page) {
-  &:hover {
-    border-color: transparentize($borders_color, 0.7);
-    background-color: transparentize($bg_color, 0.8);
-  }
-
-  &:backdrop {
-    border-color: transparent;
-    background-color: transparent;
-  }
-
-  &:checked {
-    border-color: transparentize($borders_color, 0.5);
-    background-color: transparentize($bg_color, 0.5);
-
-    &:hover { background-color: transparentize($bg_color, 0.3); }
-  }
-
-  &:backdrop:checked {
-    border-color: $backdrop_borders_color;
-    background-color: $backdrop_bg_color;
-  }
-}
-
 .tab-attention {
   $_dot_color: if($variant=='light', $selected_bg_color,
                                    lighten($selected_bg_color,15%));
diff --git a/src/resources/themes/elementary.scss b/src/resources/themes/elementary.scss
index e34ec27c8..26459a87c 100644
--- a/src/resources/themes/elementary.scss
+++ b/src/resources/themes/elementary.scss
@@ -57,8 +57,8 @@ $variant: 'light';
 }
 
 .main-notebook {
-  tab:not(.reorderable-page) {
-    min-width: 18px;
+  tab {
+    min-width: 30px;
   }
 }
 


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