[gnome-shell/wip/snwh/sass-cleanup] theme: some more calc fixes



commit fd99de1a11e4b507e0ec3a61c51856b3c857bbc8
Author: Sam Hewitt <sam snwh org>
Date:   Wed Dec 18 15:12:12 2019 -0500

    theme: some more calc fixes

 data/theme/gnome-shell-sass/_common.scss               | 2 +-
 data/theme/gnome-shell-sass/widgets/_message-list.scss | 4 ++--
 data/theme/gnome-shell-sass/widgets/_panel.scss        | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/data/theme/gnome-shell-sass/_common.scss b/data/theme/gnome-shell-sass/_common.scss
index 62d53ebe5e..7ed554ac6a 100644
--- a/data/theme/gnome-shell-sass/_common.scss
+++ b/data/theme/gnome-shell-sass/_common.scss
@@ -51,7 +51,7 @@ $active_fg_color: darken($fg_color,if($variant=='light', 5%, 3%));
 $active_borders_color: darken($borders_color,if($variant=='light', 5%, 3%));
 
 // fonts
-$base_font_size: 11pt;
+$base_font_size: 11;
 $text_shadow_color: if($variant == 'light', rgba(255,255,255,0.3), rgba(0,0,0,0.2));
 
 // icons
diff --git a/data/theme/gnome-shell-sass/widgets/_message-list.scss 
b/data/theme/gnome-shell-sass/widgets/_message-list.scss
index 8bd9f71b90..4317c4e92f 100644
--- a/data/theme/gnome-shell-sass/widgets/_message-list.scss
+++ b/data/theme/gnome-shell-sass/widgets/_message-list.scss
@@ -124,8 +124,8 @@
        &:insensitive { color: darken($fg_color,40%); }
        
        // fix border-radius for last button on hover
-       &:last-child:ltr { &:hover {border-radius:  0 $base_border_radius + 2px $base_border_radius + 2px 0;} 
}
-       &:last-child:rtl { &:hover {border-radius: calc(#{$base_border_radius} + 2px) 0 0 
calc(#{$base_border_radius} + 2px);} }
+       &:last-child:ltr { &:hover {border-radius:  0 $base_border_radius+2 $base_border_radius+2 0;} }
+       &:last-child:rtl { &:hover {border-radius: $base_border_radius+2 0 0 $base_border_radius+2;} }
 }
 
 // album-art
diff --git a/data/theme/gnome-shell-sass/widgets/_panel.scss b/data/theme/gnome-shell-sass/widgets/_panel.scss
index acfe54e189..e5f6b96598 100644
--- a/data/theme/gnome-shell-sass/widgets/_panel.scss
+++ b/data/theme/gnome-shell-sass/widgets/_panel.scss
@@ -1,7 +1,7 @@
 /* Top Bar */
 // a.k.a. the panel
 
-$panel_corner_radius: 6px;
+$panel_corner_radius: $base_border_radius+1;
 $panel_bg_color: if($variant == 'light', rgba(0,0,0,0.9), #000);
 $panel_fg_color: if($variant == 'light', darken($bg_color, 15%), darken($fg_color, 10%));
 $panel_height: 1.86em;


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