From a99e30fe4156f8d43f1ed3df4e62b3f539927ab7 Mon Sep 17 00:00:00 2001 From: Claire Date: Tue, 1 Jun 2021 23:47:27 +0200 Subject: [PATCH] [Glitch] Fix deprecated slash as division in SASS files Port 5137b5aa8f6b5a1e9239792815640071cc55b931 to glitch-soc Signed-off-by: Claire --- app/javascript/flavours/glitch/styles/widgets.scss | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/javascript/flavours/glitch/styles/widgets.scss b/app/javascript/flavours/glitch/styles/widgets.scss index 05bc076ea3..06bf55e1e5 100644 --- a/app/javascript/flavours/glitch/styles/widgets.scss +++ b/app/javascript/flavours/glitch/styles/widgets.scss @@ -1,3 +1,5 @@ +@use "sass:math"; + .hero-widget { margin-bottom: 10px; box-shadow: 0 0 15px rgba($base-shadow-color, 0.2); @@ -489,10 +491,10 @@ $fluid-breakpoint: $maximum-width + 20px; } &__item { - width: (960px - 20px) / 3; + width: math.div(960px - 20px, 3); @media screen and (max-width: $fluid-breakpoint) { - width: (940px - 20px) / 3; + width: math.div(940px - 20px, 3); } @media screen and (max-width: 640px) {