This repository was archived by the owner on Jun 24, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Claim modal styles WIP. * Claim modal styles WIP. * Claim modal styles WIP. * Claim modal styles WIP. * Claim modal styles WIP. * Claim modal styles WIP. * Claim modal styles WIP. * Claim modal styles WIP. * Claim modal styles WIP. * Claim modal styles WIP. * Claim modal styles WIP. * Claim modal styles WIP. * Claim modal styles WIP. * Claim modal styles WIP. * Claim modal styles WIP. * Claim modal styles WIP. * Claim modal styles WIP.
- Loading branch information
1 parent
d2060bb
commit 956c342
Showing
10 changed files
with
1,388 additions
and
136 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
"semi": false, | ||
"singleQuote": true, | ||
"printWidth": 120 | ||
} | ||
} |
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,34 @@ | ||
import styled from 'styled-components/macro' | ||
import CowProtocolIcon from 'assets/cow-swap/cowprotocol.svg' | ||
|
||
export const Icon = styled.span<Props>` | ||
${({ theme }) => theme.cowToken.background}; | ||
${({ theme }) => theme.cowToken.boxShadow}; | ||
height: ${({ size }) => (size ? `${size}px` : '24px')}; | ||
width: ${({ size }) => (size ? `${size}px` : '24px')}; | ||
display: inline-block; | ||
margin: 0; | ||
border-radius: ${({ size }) => (size ? `${size}px` : '24px')}; | ||
position: relative; | ||
&::after { | ||
content: ''; | ||
width: 100%; | ||
height: 100%; | ||
position: absolute; | ||
left: 0; | ||
right: 0; | ||
top: 8%; | ||
bottom: 0; | ||
margin: auto; | ||
background: url(${CowProtocolIcon}) no-repeat center/70%; | ||
} | ||
` | ||
|
||
interface Props { | ||
size?: number | undefined | ||
} | ||
|
||
export default function CowProtocolLogo({ size }: Props) { | ||
return <Icon size={size} /> | ||
} |
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
Oops, something went wrong.