From 6cfb1c00247e2ddf9edd74d82dbea26ce2842060 Mon Sep 17 00:00:00 2001 From: Aaron Pepper Date: Thu, 17 Oct 2024 20:44:16 +0800 Subject: [PATCH] fix: update buttons to fix wrapping issue on mobile (#259) - Fix issue where the text was wrapping inside the new universe buttons on mobile iOS - Added a cache buster to the CSS files --- _includes/head.html | 4 ++-- assets/css/universe.css | 26 +++++++++++++++++++------- index.html | 2 +- 3 files changed, 22 insertions(+), 10 deletions(-) diff --git a/_includes/head.html b/_includes/head.html index 554bf4f..c59ae48 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -20,7 +20,7 @@ - + @@ -31,7 +31,7 @@ - + diff --git a/assets/css/universe.css b/assets/css/universe.css index 49b3eac..2f777ac 100644 --- a/assets/css/universe.css +++ b/assets/css/universe.css @@ -103,7 +103,7 @@ display: flex; width: 226px; height: 59px; - padding: 24px 80px 24px 30px; + padding: 0 54px 0 0; justify-content: center; align-items: center; gap: 30px; @@ -121,6 +121,7 @@ position: relative; transition: transform 0.2s ease-in-out; + white-space: nowrap; } #universe .universe_button-group .universe_button-purple:hover { @@ -140,14 +141,23 @@ align-items: center; } -#universe .universe_button-group .universe_button-outline { +#universe .universe_button-group .universe_button-purple .universe_button-text { + height: 100%; + display: flex; + justify-content: center; + align-items: center; + width: 100%; +} + +#universe .universe_button-group .universe_button-outline { width: 226px; height: 59px; - padding: 24px 39px 24px 69px; + + display: flex; justify-content: center; align-items: center; - gap: 14px; + gap: 5px; border-radius: 3px; border: 1px solid #9330ff; @@ -160,6 +170,7 @@ font-weight: 700; line-height: 93%; text-transform: uppercase; + white-space: nowrap; position: relative; @@ -171,7 +182,8 @@ } #universe .universe_button-gem { - position: absolute; - top: 10px; - left: 19px; + width: 42px; + height: unset !important; + flex: unset !important; + transform: translateY(1px); } diff --git a/index.html b/index.html index e1198fc..72f1c78 100755 --- a/index.html +++ b/index.html @@ -15,7 +15,7 @@
- Tari Universe + Tari Universe