From 93037429debfbe98875edff43edbdf1262c01c81 Mon Sep 17 00:00:00 2001 From: Shaun O'Connell Date: Sat, 17 Feb 2024 17:28:15 +1300 Subject: [PATCH] Inline the SVG for the lander --- assets/css/wc/lander-vehicle.css | 6 +----- index.html | 25 +++++++++++++++++++------ 2 files changed, 20 insertions(+), 11 deletions(-) diff --git a/assets/css/wc/lander-vehicle.css b/assets/css/wc/lander-vehicle.css index 6e8a330..9c75c98 100644 --- a/assets/css/wc/lander-vehicle.css +++ b/assets/css/wc/lander-vehicle.css @@ -3,12 +3,8 @@ lander-vehicle { position: absolute; inset-block-start: calc(var(--lander_position_y) * 1%); inset-inline-start: calc(var(--lander_position_x) * 1%); - inline-size: calc(2.5 * var(--unit_root)); + inline-size: calc(2.75 * var(--unit_root)); block-size: calc(5 * var(--unit_root)); - background-size: contain; - background-image: url('../../img/lander.svg'); - background-position: 50% 50%; - background-repeat: no-repeat; transform-origin: 50% 50%; transition-property: transform; transition-duration: 1s; diff --git a/index.html b/index.html index 0e04301..95921e7 100644 --- a/index.html +++ b/index.html @@ -53,12 +53,25 @@ --> - - + + + + + + + + + + + + + + + + + + +