From 24d93d0d898740183118e667b295b2033c95a336 Mon Sep 17 00:00:00 2001 From: Tyler Shipe Date: Sat, 8 Jan 2022 19:36:24 -0500 Subject: [PATCH] add padding to global notification component --- components/DayHighLow.tsx | 4 ++-- components/GlobalNotification.tsx | 4 ++-- components/Input.tsx | 2 +- components/MarketDetails.tsx | 10 +++++----- components/trade_form/TradeType.jsx | 2 +- tailwind.config.js | 8 ++++---- 6 files changed, 15 insertions(+), 15 deletions(-) diff --git a/components/DayHighLow.tsx b/components/DayHighLow.tsx index c124f83e..e8e7df5e 100644 --- a/components/DayHighLow.tsx +++ b/components/DayHighLow.tsx @@ -18,7 +18,7 @@ const DayHighLow = ({ high, low, latest }) => { {t('daily-range')}
-
+
{low ? formatUsdValue(low) : }
@@ -29,7 +29,7 @@ const DayHighLow = ({ high, low, latest }) => { className="flex rounded bg-th-primary" >
-
+
{high ? formatUsdValue(high) : }
diff --git a/components/GlobalNotification.tsx b/components/GlobalNotification.tsx index 987c15f9..5216ff3d 100644 --- a/components/GlobalNotification.tsx +++ b/components/GlobalNotification.tsx @@ -11,10 +11,10 @@ const GlobalNotification = () => { if (show) { return (
-
+
The Solana network is currently experiencing degraded performance - resulting in some transactions timing out + resulting in some transactions timing out. {
{t('oracle-price')}
-
+
{oraclePrice && selectedMarket ? oraclePrice.toFixed(getDecimalCount(selectedMarket.tickSize)) : '--'} @@ -195,7 +195,7 @@ const MarketDetails = () => { ? `text-th-green` : change < 0 ? `text-th-red` - : `text-th-fgd-1` + : `text-th-fgd-2` }`} > {change.toFixed(2) + '%'} @@ -209,7 +209,7 @@ const MarketDetails = () => {
{t('daily-volume')}
-
+
{perpVolume ? ( usdFormatter(perpVolume, 0) ) : ( @@ -224,7 +224,7 @@ const MarketDetails = () => {
{t('average-funding')}
-
+
{selectedMarket ? ( `${funding1hStr}% (${fundingAprStr}% APR)` ) : ( @@ -236,7 +236,7 @@ const MarketDetails = () => {
{t('open-interest')}
-
+
{selectedMarket ? ( `${parseOpenInterest( selectedMarket as PerpMarket diff --git a/components/trade_form/TradeType.jsx b/components/trade_form/TradeType.jsx index 47aca2b0..9bcbda15 100644 --- a/components/trade_form/TradeType.jsx +++ b/components/trade_form/TradeType.jsx @@ -24,7 +24,7 @@ const TradeType = ({ {({ open }) => ( <>
{t(value.toLowerCase().replaceAll(' ', '-'))} diff --git a/tailwind.config.js b/tailwind.config.js index 007ba7c8..8d93a31c 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -51,9 +51,9 @@ module.exports = { 'bkg-2': '#1B1B1F', 'bkg-3': '#27272B', 'bkg-4': '#38383D', - 'fgd-1': '#F7F7F7', - 'fgd-2': '#E7E7E7', - 'fgd-3': '#DADADA', + 'fgd-1': '#E1E1E1', + 'fgd-2': '#D1D1D1', + 'fgd-3': '#B3B3B3', 'fgd-4': '#878787', }, 'mango-theme': { @@ -68,7 +68,7 @@ module.exports = { 'bkg-2': '#1D1832', 'bkg-3': '#2A2440', 'bkg-4': '#37324D', - 'fgd-1': '#F0EDFF', + 'fgd-1': '#E5E3EC', 'fgd-2': '#E5E3EC', 'fgd-3': '#C1BED3', 'fgd-4': '#706C81',