[gnome-calculator/wip/cdavis/gtk4: 9/16] css: Fix `calc()` calls




commit 97080744cdc2b391ac76522dcb3c6d8e44e8435c
Author: Christopher Davis <christopherdavis gnome org>
Date:   Wed Oct 20 14:43:22 2021 -0700

    css: Fix `calc()` calls
    
    There needs to be space between operators
    for calc to work.

 src/ui/calculator.css | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/src/ui/calculator.css b/src/ui/calculator.css
index 347a920d..8900f855 100644
--- a/src/ui/calculator.css
+++ b/src/ui/calculator.css
@@ -50,10 +50,10 @@ clamp.small > grid > :first-child {
 
 .math-buttons > grid {
   /* 5 44px high buttons and 4px spacing. */
-  min-height: calc(44px*5+4px*4);
+  min-height: calc(44px * 5 + 4px * 4);
   /* 5 60px wide buttons and 4px spacing. */
   /* Update the clamp size in templates accordingly. */
-  min-width: calc(60px*5+4px*4-6px);
+  min-width: calc(60px * 5 + 4px * 4 - 6px);
   margin-left: 12px;
   margin-right: 12px;
   margin-top: 12px;
@@ -61,10 +61,6 @@ clamp.small > grid > :first-child {
   transition: 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
 }
 
-.math-buttons.unfolded > grid {
-  min-width: calc(60px*5+4px*4);
-}
-
 .math-buttons.unfolded > grid:not(:only-child):first-child {
   margin-right: 6px;
 }


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