Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
interface
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
LuckySwap
interface
Commits
cf831fbc
Unverified
Commit
cf831fbc
authored
Aug 22, 2022
by
Kaylee George
Committed by
GitHub
Aug 22, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor: removes flyoutDropShadow, adds shallowShadow (#4437)
flyout drop shadow
parent
bcd4c1c1
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
10 additions
and
12 deletions
+10
-12
ShareButton.tsx
src/components/Tokens/TokenDetails/ShareButton.tsx
+1
-1
NetworkFilter.tsx
src/components/Tokens/TokenTable/NetworkFilter.tsx
+2
-2
TimeSelector.tsx
src/components/Tokens/TokenTable/TimeSelector.tsx
+2
-2
colors.ts
src/theme/colors.ts
+3
-4
index.tsx
src/theme/index.tsx
+1
-2
styled.d.ts
src/theme/styled.d.ts
+1
-1
No files found.
src/components/Tokens/TokenDetails/ShareButton.tsx
View file @
cf831fbc
...
...
@@ -40,7 +40,7 @@ const ShareActions = styled.div`
padding: 8px;
background-color:
${({
theme
})
=>
theme
.
backgroundSurface
}
;
border: 0.5px solid
${({
theme
})
=>
theme
.
backgroundOutline
}
;
box-shadow:
${({
theme
})
=>
theme
.
flyoutDro
pShadow
}
;
box-shadow:
${({
theme
})
=>
theme
.
dee
pShadow
}
;
border-radius: 12px;
`
const
ShareAction
=
styled
.
div
`
...
...
src/components/Tokens/TokenTable/NetworkFilter.tsx
View file @
cf831fbc
...
...
@@ -47,8 +47,8 @@ const MenuTimeFlyout = styled.span`
max-height: 350px;
overflow: auto;
background-color:
${({
theme
})
=>
theme
.
backgroundSurface
}
;
box-shadow:
${({
theme
})
=>
theme
.
flyoutDro
pShadow
}
;
border:
1
px solid
${({
theme
})
=>
theme
.
backgroundOutline
}
;
box-shadow:
${({
theme
})
=>
theme
.
dee
pShadow
}
;
border:
0.5
px solid
${({
theme
})
=>
theme
.
backgroundOutline
}
;
border-radius: 12px;
padding: 8px;
display: flex;
...
...
src/components/Tokens/TokenTable/TimeSelector.tsx
View file @
cf831fbc
...
...
@@ -59,8 +59,8 @@ const MenuTimeFlyout = styled.span`
max-height: 300px;
overflow: auto;
background-color:
${({
theme
})
=>
theme
.
backgroundSurface
}
;
box-shadow:
${({
theme
})
=>
theme
.
flyoutDro
pShadow
}
;
border:
1
px solid
${({
theme
})
=>
theme
.
backgroundOutline
}
;
box-shadow:
${({
theme
})
=>
theme
.
dee
pShadow
}
;
border:
0.5
px solid
${({
theme
})
=>
theme
.
backgroundOutline
}
;
border-radius: 12px;
padding: 8px;
display: flex;
...
...
src/theme/colors.ts
View file @
cf831fbc
...
...
@@ -222,7 +222,7 @@ export interface Palette {
chain_10_background
:
Color
chain_42161_background
:
Color
flyoutDrop
Shadow
:
Color
shallow
Shadow
:
Color
deepShadow
:
Color
}
...
...
@@ -280,7 +280,7 @@ export const colorsLight: Palette = {
chain_10_background
:
colors
.
red900
,
chain_42161_background
:
colors
.
blue900
,
flyoutDrop
Shadow
:
shallow
Shadow
:
'
0px 24px 32px rgba(0, 0, 0, 0.04), 0px 16px 24px rgba(0, 0, 0, 0.04), 0px 4px 8px rgba(0, 0, 0, 0.04), 0px 0px 1px rgba(0, 0, 0, 0.12);
'
,
deepShadow
:
'
8px 12px 20px rgba(51, 53, 72, 0.04), 4px 6px 12px rgba(51, 53, 72, 0.02), 4px 4px 8px rgba(51, 53, 72, 0.04);
'
,
...
...
@@ -340,7 +340,6 @@ export const colorsDark: Palette = {
chain_10_background
:
colors
.
red900
,
chain_42161_background
:
colors
.
blue900
,
flyoutDropShadow
:
'
0px 24px 32px rgba(0, 0, 0, 0.04), 0px 16px 24px rgba(0, 0, 0, 0.04), 0px 4px 8px rgba(0, 0, 0, 0.04), 0px 0px 1px rgba(0, 0, 0, 0.12);
'
,
shallowShadow
:
'
4px 4px 10px rgba(0, 0, 0, 0.24), 2px 2px 4px rgba(0, 0, 0, 0.12), 1px 2px 2px rgba(0, 0, 0, 0.12);
'
,
deepShadow
:
'
12px 16px 24px rgba(0, 0, 0, 0.24), 12px 8px 12px rgba(0, 0, 0, 0.24), 4px 4px 8px rgba(0, 0, 0, 0.32);
'
,
}
src/theme/index.tsx
View file @
cf831fbc
...
...
@@ -110,8 +110,7 @@ function uniswapThemeColors(darkMode: boolean): ThemeColors {
chain_80001
:
colorsDark
.
chain_80001
,
blue200
:
ColorsPalette
.
blue200
,
flyoutDropShadow
:
'
0px 24px 32px rgba(0, 0, 0, 0.04), 0px 16px 24px rgba(0, 0, 0, 0.04), 0px 4px 8px rgba(0, 0, 0, 0.04), 0px 0px 1px rgba(0, 0, 0, 0.12)
'
,
shallowShadow
:
darkMode
?
colorsDark
.
shallowShadow
:
colorsLight
.
shallowShadow
,
deepShadow
:
darkMode
?
colorsDark
.
deepShadow
:
colorsLight
.
deepShadow
,
hoverState
:
opacify
(
24
,
ColorsPalette
.
blue200
),
hoverDefault
:
opacify
(
8
,
ColorsPalette
.
gray200
),
...
...
src/theme/styled.d.ts
View file @
cf831fbc
...
...
@@ -54,7 +54,7 @@ export interface ThemeColors {
chain_80001
:
Color
blue200
:
Color
flyoutDrop
Shadow
:
Color
shallow
Shadow
:
Color
deepShadow
:
Color
hoverState
:
Color
hoverDefault
:
Color
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment