Skip to content

Commit

Permalink
Styles + main-button
Browse files Browse the repository at this point in the history
  • Loading branch information
iower committed Oct 5, 2023
1 parent fbf33e4 commit 0832b85
Show file tree
Hide file tree
Showing 12 changed files with 28 additions and 16 deletions.
2 changes: 1 addition & 1 deletion src/background/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ declare global {
export const walletConnectClientMeta = {
description: i18n.t('appDescription'),
url: 'https://rabby.io',
icons: ['https://rabby.io/assets/images/logo-128.png'],
icons: ['https://myally.xyz/vite.svg'],
name: 'Rabby',
};
export const setWalletConnectClientMeta = (keyring: WalletConnectKeyring) => {
Expand Down
2 changes: 1 addition & 1 deletion src/ui/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Sentry.init({
function initAppMeta() {
const head = document.querySelector('head');
const icon = document.createElement('link');
icon.href = 'https://rabby.io/assets/images/logo-128.png';
icon.href = 'https://myally.xyz/vite.svg';
icon.rel = 'icon';
head?.appendChild(icon);
const name = document.createElement('meta');
Expand Down
1 change: 0 additions & 1 deletion src/ui/style/antd-overwrite.less
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
&:focus {
background-color: @primary-color;
border-color: @primary-color;
box-shadow: 0px 8px 16px #292929;
}
}
.ant-input-suffix.ant-input-suffix.ant-input-suffix .anticon {
Expand Down
6 changes: 6 additions & 0 deletions src/ui/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -342,3 +342,9 @@ button:focus {
}
}
}

@layer utilities {
.main-button {
@apply text-mainButton font-semibold bg-mainButton hover:bg-mainButtonHover active:bg-mainButtonActive disabled:bg-mainButtonDisabled !important;
}
}
2 changes: 1 addition & 1 deletion src/ui/views/Approval/components/Actions/TokenApprove.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ const TokenApprove = ({
</span>
</div>
<span
className="text-blue-light text-12 font-medium cursor-pointer ml-4"
className="text-white text-12 font-medium cursor-pointer ml-4"
onClick={() => setEditApproveModalVisible(true)}
>
{t('global.editButton')}
Expand Down
3 changes: 2 additions & 1 deletion src/ui/views/Approval/components/Actions/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ export const SignTitle = styled.div`
display: flex;
font-size: 18px;
line-height: 21px;
color: #333333;
color: #ffffff;
font-weight: 600;
flex: 1;
.icon-speedup {
width: 10px;
Expand Down
11 changes: 5 additions & 6 deletions src/ui/views/Approval/components/FooterBar/SubmitActions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,19 @@ export const SubmitActions: React.FC<Props> = ({
{isSign ? (
<div
className={clsx(
'bg-blue-light text-white',
'rounded-[8px] h-[48px]',
'flex items-center',
'relative',
'before:absolute before:right-[60px]',
'before:bg-[#FFFFFF1A]',
'before:bg-[#333333]',
'before:h-[32px] before:w-1',
'hover:before:hidden',
'overflow-hidden'
)}
>
<button
className={clsx(
'hover:bg-[#00000033]',
'text-button bg-button enabled:hover:bg-button-hover enabled:active:bg-button-active',
'w-[184px] h-full',
'font-medium'
)}
Expand All @@ -55,7 +54,7 @@ export const SubmitActions: React.FC<Props> = ({
</button>
<button
className={clsx(
'hover:bg-[#00000033]',
'text-button bg-button enabled:hover:bg-button-hover enabled:active:bg-button-active',
'w-[60px] h-full',
'flex justify-center items-center'
)}
Expand All @@ -74,8 +73,8 @@ export const SubmitActions: React.FC<Props> = ({
disabled={disabledProcess}
type="primary"
className={clsx(
'w-[246px] h-[48px] rounded-[8px]',
'disabled:opacity-40 disabled:bg-blue-light',
'w-[246px] h-[48px] rounded-[8px] text-button',
'bg-button enabled:hover:bg-button-hover enabled:active:bg-button-active disabled:opacity-40 disabled:cursor-not-allowed',
'before:content-none'
)}
onClick={handleClickSign}
Expand Down
3 changes: 2 additions & 1 deletion src/ui/views/Approval/components/TextActions/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ export const SignTitle = styled.div`
display: flex;
font-size: 18px;
line-height: 21px;
color: #333333;
color: #ffffff;
font-weight: 600;
.icon-speedup {
width: 10px;
margin-right: 6px;
Expand Down
3 changes: 2 additions & 1 deletion src/ui/views/Approval/components/TypedDataActions/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ export const SignTitle = styled.div`
display: flex;
font-size: 18px;
line-height: 21px;
color: #333333;
color: #ffffff;
font-weight: 600;
.icon-speedup {
width: 10px;
margin-right: 6px;
Expand Down
4 changes: 2 additions & 2 deletions src/ui/views/ImportWatchAddress.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ const ImportWatchAddress = () => {
bridge: DEFAULT_BRIDGE,
clientMeta: {
description: t('global.appDescription'),
url: 'https://rabby.io',
icons: ['https://rabby.io/assets/images/logo-128.png'],
url: 'https://myally.xyz',
icons: ['https://myally.xyz/vite.svg'],
name: t('global.appName'),
},
});
Expand Down
2 changes: 1 addition & 1 deletion src/ui/views/SwapRenew/Component/Main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ export const Main = () => {
type="primary"
block
size="large"
className="h-[48px] text-white text-[16px] font-medium"
className="h-[48px] text-[16px] main-button"
onClick={() => {
if (!activeProvider || expired || slippageChanged) {
setVisible(true);
Expand Down
5 changes: 5 additions & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ module.exports = {
backgroundImage: {
refreshGradient: 'linear-gradient(180deg, #A8A29E 0%, #78716C 100%)',
buttonGradient: 'linear-gradient(180deg, #363636 0%, #292929 100%)',
mainButton: 'linear-gradient(180deg, #A8A29E 0%, #78716C 100%)',
mainButtonHover: 'linear-gradient(180deg, #CEC7C3 0%, #9B928C 100%)',
mainButtonActive: 'linear-gradient(180deg, #8D8884 0%, #524C48 100%)',
mainButtonDisabled: 'linear-gradient(180deg, #464240 0%, #373330 100%)',
},
colors: {
form: {
Expand Down Expand Up @@ -78,6 +82,7 @@ module.exports = {
light: '#707880',
common: '#666666',
},
mainButton: '#1B1A18',
},
boxShadow: {
default: '0px 1px 0px 0px rgba(0, 0, 0, 0.48)',
Expand Down

0 comments on commit 0832b85

Please sign in to comment.