diff --git a/less/landing.less b/less/landing.less
index 130daeb..3d8cfd3 100644
--- a/less/landing.less
+++ b/less/landing.less
@@ -54,6 +54,10 @@
@landing-action-bar-border-radius: @global-small-border-radius;
@landing-metrics-grip-gap: 80px;
+@landing-metrics-background-color: @global-secondary-background;
+@landing-metrics-background-svg: '';
+
+@landing-action-bar-mobile-border: @global-border;
.landing {
#landing-center-content {
@@ -196,8 +200,8 @@
z-index: @global-z-index - 20;
& > div {
- padding: 10px 20px;
- border-top: @landing-action-bar-border-width solid lightgrey;
+ padding: 8px 20px;
+ border-top: @landing-action-bar-border-width solid @landing-action-bar-mobile-border;
}
}
@@ -205,10 +209,14 @@
grid-gap: @landing-metrics-grip-gap;
}
- .landing-metrics-card {
- background-image: url("../metrics-bg.svg");
- background-repeat: no-repeat;
- background-size: cover;
+ .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: 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;
}
// rules for overriding styles of altmetrics embedded library
diff --git a/metrics-badge.svg b/metrics-badge.svg
index 067b2a0..906e447 100644
--- a/metrics-badge.svg
+++ b/metrics-badge.svg
@@ -1,8 +1,8 @@