From 9f778e6eba97312e5cce72d985cea19f8f51eaff Mon Sep 17 00:00:00 2001 From: Willian Mitsuda Date: Tue, 31 Aug 2021 04:02:26 -0300 Subject: [PATCH] Extract table bg hover theme color --- src/index.css | 2 ++ src/search/TransactionItem.tsx | 4 +++- src/special/london/BlockRow.tsx | 2 +- tailwind.config.js | 1 + 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/index.css b/src/index.css index 9333e63..6088bfb 100644 --- a/src/index.css +++ b/src/index.css @@ -8,5 +8,7 @@ --color-from-text: 220, 38, 38; --color-from-fill: 254, 242, 242; --color-to-fill: 236, 253, 245; + + --color-table-row-hover: 243, 244, 246; } } diff --git a/src/search/TransactionItem.tsx b/src/search/TransactionItem.tsx index 32aab32..f5196d8 100644 --- a/src/search/TransactionItem.tsx +++ b/src/search/TransactionItem.tsx @@ -56,7 +56,9 @@ const TransactionItem: React.FC = ({ return (
diff --git a/src/special/london/BlockRow.tsx b/src/special/london/BlockRow.tsx index 8915417..df22a85 100644 --- a/src/special/london/BlockRow.tsx +++ b/src/special/london/BlockRow.tsx @@ -22,7 +22,7 @@ const BlockRow: React.FC = ({ now, block, baseFeeDelta }) => { const totalReward = block.blockReward.add(netFeeReward ?? 0); return ( -
+
diff --git a/tailwind.config.js b/tailwind.config.js index 4289294..48964a3 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -42,6 +42,7 @@ module.exports = { skin: { from: withOpacity("--color-from-fill"), to: withOpacity("--color-to-fill"), + "table-hover": withOpacity("--color-table-row-hover"), }, }, },