From 2fd57843f85125e54adfb95b35776755037ea359 Mon Sep 17 00:00:00 2001 From: "k.triantafyllou" Date: Wed, 12 Jul 2023 18:27:41 +0300 Subject: [PATCH] Landing: Update metrics box in order to have always light mode and fix position of metrics icon. --- less/landing.less | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/less/landing.less b/less/landing.less index 540c81f..f52031a 100644 --- a/less/landing.less +++ b/less/landing.less @@ -54,8 +54,7 @@ @landing-action-bar-border-radius: @global-small-border-radius; @landing-metrics-grip-gap: 80px; -@landing-metrics-color: @global-inverse-color; -@landing-metrics-background-color: @secondary-color; +@landing-metrics-background-color: @global-secondary-background; @landing-metrics-background-svg: ' '; .landing { @@ -208,16 +207,14 @@ grid-gap: @landing-metrics-grip-gap; } - .landing-metrics-card:extend(.uk-card) { + .landing-metrics-card:extend(.uk-card):extend(.uk-card-secondary all) { background-repeat: no-repeat, no-repeat; @svg: escape(replace(@landing-metrics-background-svg, "@landing-metrics-background-color", @landing-metrics-background-color)); background-image: url("../metrics-badge.svg"), url("data: image/svg+xml, @{svg}"); - background-position: bottom right, center; + background-position: calc(100% - @card-body-padding-vertical) calc(100% - @card-body-padding-horizontal), center; background-blend-mode: color-dodge; background-size: auto, cover; background-color: unset; - - color: @landing-metrics-color; } // rules for overriding styles of altmetrics embedded library