-
Notifications
You must be signed in to change notification settings - Fork 865
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21377 from brave/feat-wallet-update-swap-settings…
…-modal feat(wallet): Update Swap Setting Modal
- Loading branch information
Showing
18 changed files
with
381 additions
and
696 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
109 changes: 109 additions & 0 deletions
109
...age/screens/composer_ui/advanced_settings_modal.style.ts/advanced_settings_modal.style.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
// Copyright (c) 2023 The Brave Authors. All rights reserved. | ||
// This Source Code Form is subject to the terms of the Mozilla Public | ||
// License, v. 2.0. If a copy of the MPL was not distributed with this file, | ||
// You can obtain one at https://mozilla.org/MPL/2.0/. | ||
|
||
import styled from 'styled-components' | ||
import * as leo from '@brave/leo/tokens/css' | ||
import Button from '@brave/leo/react/button' | ||
import Radio from '@brave/leo/react/radioButton' | ||
import Icon from '@brave/leo/react/icon' | ||
|
||
// Shared Styles | ||
import { Column, Row, Text } from '../../../../components/shared/style' | ||
import { | ||
layoutSmallWidth // | ||
} from '../../../../components/desktop/wallet-page-wrapper/wallet-page-wrapper.style' | ||
|
||
export const SlippageButton = styled(Button)<{ | ||
isSelected: boolean | ||
}>` | ||
--leo-button-color: ${(p) => | ||
p.isSelected ? leo.color.button.background : leo.color.text.secondary}; | ||
margin-right: 18px; | ||
` | ||
|
||
export const SectionWrapper = styled(Column)` | ||
padding: 24px 40px; | ||
@media screen and (max-width: ${layoutSmallWidth}px) { | ||
padding: 16px; | ||
} | ||
` | ||
|
||
export const InputWrapper = styled(Row)` | ||
display: flex; | ||
background-color: ${leo.color.container.highlight}; | ||
border: 1px solid ${leo.color.container.highlight}; | ||
border-radius: 8px; | ||
flex-direction: row; | ||
padding: 10px 12px; | ||
justify-content: space-between; | ||
box-sizing: border-box; | ||
` | ||
|
||
export const CustomSlippageInput = styled.input` | ||
height: 100%; | ||
width: 100%; | ||
border: none; | ||
background: none; | ||
background-color: none; | ||
color: ${leo.color.text.primary}; | ||
text-align: right; | ||
font-family: 'Poppins'; | ||
font-size: 14px; | ||
font-style: normal; | ||
font-weight: 400; | ||
line-height: 22px; | ||
letter-spacing: -0.1px; | ||
::placeholder { | ||
color: ${leo.color.text.tertiary}; | ||
} | ||
:focus { | ||
outline: none; | ||
} | ||
::-webkit-inner-spin-button { | ||
-webkit-appearance: none; | ||
margin: 0; | ||
} | ||
::-webkit-outer-spin-button { | ||
-webkit-appearance: none; | ||
margin: 0; | ||
} | ||
` | ||
|
||
export const PercentText = styled(Text)` | ||
color: ${leo.color.text.tertiary}; | ||
line-height: 22px; | ||
` | ||
|
||
export const RadioButton = styled(Radio)` | ||
width: 100%; | ||
margin-bottom: 16px; | ||
` | ||
|
||
export const DarkText = styled(Text)` | ||
line-height: 22px; | ||
color: ${leo.color.text.primary}; | ||
` | ||
|
||
export const LightText = styled(DarkText)` | ||
color: ${leo.color.text.tertiary}; | ||
` | ||
|
||
export const ButtonRow = styled(Row)` | ||
padding: 0px 40px 24px 40px; | ||
@media screen and (max-width: ${layoutSmallWidth}px) { | ||
padding: 0px 16px 16px 16px; | ||
} | ||
` | ||
|
||
export const InfoIcon = styled(Icon).attrs({ | ||
name: 'info-outline' | ||
})` | ||
--leo-icon-size: 20px; | ||
color: ${leo.color.icon.default}; | ||
` | ||
|
||
export const TooltipContent = styled.div` | ||
max-width: 280px; | ||
` |
Oops, something went wrong.