-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: apply ui enhancement from figma main content
- Loading branch information
Showing
16 changed files
with
506 additions
and
323 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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 |
---|---|---|
@@ -1,3 +1,9 @@ | ||
.bg-notices-text { | ||
color: var(--text); | ||
} | ||
|
||
.bg-notices-root { | ||
margin-top: 1rem !important; | ||
padding-top: 0 !important; | ||
} | ||
|
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
192 changes: 100 additions & 92 deletions
192
plugin/src/components/ui_components/Dropdown/dropdown.css
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 |
---|---|---|
@@ -1,170 +1,178 @@ | ||
/* reset */ | ||
button { | ||
all: unset; | ||
all: unset; | ||
} | ||
|
||
.DropdownMenuContent, | ||
.DropdownMenuSubContent { | ||
min-width: 220px; | ||
border: 1px solid var(--light); | ||
border-radius: 6px; | ||
padding: 5px; | ||
box-shadow: 0 10px 38px -10px var(--secondary), | ||
0 10px 20px -15px var(--primary); | ||
animation-duration: 400ms; | ||
animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); | ||
will-change: transform, opacity; | ||
min-width: 220px; | ||
border: 1px solid var(--light); | ||
border-radius: 6px; | ||
padding: 5px; | ||
animation-duration: 400ms; | ||
animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); | ||
will-change: transform, opacity; | ||
} | ||
|
||
.DropdownMenuContent[data-side='top'], | ||
.DropdownMenuSubContent[data-side='top'] { | ||
animation-name: slideDownAndFade; | ||
animation-name: slideDownAndFade; | ||
} | ||
|
||
.DropdownMenuContent[data-side='right'], | ||
.DropdownMenuSubContent[data-side='right'] { | ||
animation-name: slideLeftAndFade; | ||
animation-name: slideLeftAndFade; | ||
} | ||
|
||
.DropdownMenuContent[data-side='bottom'], | ||
.DropdownMenuSubContent[data-side='bottom'] { | ||
animation-name: slideUpAndFade; | ||
animation-name: slideUpAndFade; | ||
} | ||
|
||
.DropdownMenuContent[data-side='left'], | ||
.DropdownMenuSubContent[data-side='left'] { | ||
animation-name: slideRightAndFade; | ||
animation-name: slideRightAndFade; | ||
} | ||
|
||
.DropdownMenuItem, | ||
.DropdownMenuCheckboxItem, | ||
.DropdownMenuRadioItem, | ||
.DropdownMenuSubTrigger { | ||
font-size: 13px; | ||
line-height: 1; | ||
color: var(--text); | ||
border-radius: 3px; | ||
display: flex; | ||
align-items: center; | ||
height: 25px; | ||
padding: 0 5px; | ||
position: relative; | ||
user-select: none; | ||
outline: none; | ||
font-size: 13px; | ||
line-height: 1; | ||
color: var(--text); | ||
border-radius: 3px; | ||
display: flex; | ||
align-items: center; | ||
height: 25px; | ||
padding: 0 5px; | ||
position: relative; | ||
user-select: none; | ||
outline: none; | ||
} | ||
|
||
.DropdownMenuSubTrigger[data-state='open'] { | ||
color: var(--text); | ||
color: var(--text); | ||
} | ||
|
||
.DropdownMenuItem[data-disabled], | ||
.DropdownMenuCheckboxItem[data-disabled], | ||
.DropdownMenuRadioItem[data-disabled], | ||
.DropdownMenuSubTrigger[data-disabled] { | ||
color: var(--text); | ||
pointer-events: none; | ||
color: var(--text); | ||
pointer-events: none; | ||
} | ||
|
||
.DropdownMenuItem[data-highlighted], | ||
.DropdownMenuCheckboxItem[data-highlighted], | ||
.DropdownMenuRadioItem[data-highlighted], | ||
.DropdownMenuSubTrigger[data-highlighted] { | ||
color: var(--text); | ||
color: var(--text); | ||
} | ||
|
||
.DropdownMenuItem:hover { | ||
background: var(--secondary) !important; | ||
background: var(--secondary) !important; | ||
} | ||
|
||
.DropdownMenuLabel { | ||
padding-left: 25px; | ||
font-size: 12px; | ||
line-height: 25px; | ||
color: var(--text); | ||
padding-left: 25px; | ||
font-size: 12px; | ||
line-height: 25px; | ||
color: var(--text); | ||
} | ||
|
||
.DropdownMenuSeparator { | ||
height: 1px; | ||
background-color: var(--bgPrimary); | ||
margin: 5px; | ||
height: 1px; | ||
background-color: var(--bgPrimary); | ||
margin: 5px; | ||
} | ||
|
||
.DropdownMenuItemIndicator { | ||
position: absolute; | ||
left: 0; | ||
width: 25px; | ||
display: inline-flex; | ||
align-items: center; | ||
justify-content: center; | ||
position: absolute; | ||
left: 0; | ||
width: 25px; | ||
display: inline-flex; | ||
align-items: center; | ||
justify-content: center; | ||
} | ||
|
||
.DropdownMenuArrow { | ||
fill: white; | ||
fill: white; | ||
} | ||
|
||
.IconButton { | ||
font-family: inherit; | ||
border-radius: 100%; | ||
height: 35px; | ||
width: 35px; | ||
display: inline-flex; | ||
align-items: center; | ||
justify-content: center; | ||
color: var(--violet11); | ||
box-shadow: 0 2px 10px var(--blackA7); | ||
font-family: inherit; | ||
border-radius: 100%; | ||
height: 35px; | ||
width: 35px; | ||
display: inline-flex; | ||
align-items: center; | ||
justify-content: center; | ||
color: var(--text); | ||
} | ||
|
||
.IconButton:hover { | ||
background-color: var(--secondary); | ||
background-color: var(--secondary); | ||
} | ||
|
||
.IconButton:focus { | ||
box-shadow: 0 0 0 2px black; | ||
box-shadow: 0 0 0 2px black; | ||
} | ||
|
||
.RightSlot { | ||
margin-left: auto; | ||
padding-left: 20px; | ||
color: var(--text); | ||
margin-left: auto; | ||
padding-left: 20px; | ||
color: var(--text); | ||
} | ||
|
||
[data-highlighted] > .RightSlot { | ||
color: white; | ||
color: white; | ||
} | ||
|
||
[data-disabled] .RightSlot { | ||
color: var(--text); | ||
color: var(--text); | ||
} | ||
|
||
@keyframes slideUpAndFade { | ||
from { | ||
opacity: 0; | ||
transform: translateY(2px); | ||
} | ||
to { | ||
opacity: 1; | ||
transform: translateY(0); | ||
} | ||
from { | ||
opacity: 0; | ||
transform: translateY(2px); | ||
} | ||
to { | ||
opacity: 1; | ||
transform: translateY(0); | ||
} | ||
} | ||
|
||
@keyframes slideRightAndFade { | ||
from { | ||
opacity: 0; | ||
transform: translateX(-2px); | ||
} | ||
to { | ||
opacity: 1; | ||
transform: translateX(0); | ||
} | ||
from { | ||
opacity: 0; | ||
transform: translateX(-2px); | ||
} | ||
to { | ||
opacity: 1; | ||
transform: translateX(0); | ||
} | ||
} | ||
|
||
@keyframes slideDownAndFade { | ||
from { | ||
opacity: 0; | ||
transform: translateY(-2px); | ||
} | ||
to { | ||
opacity: 1; | ||
transform: translateY(0); | ||
} | ||
from { | ||
opacity: 0; | ||
transform: translateY(-2px); | ||
} | ||
to { | ||
opacity: 1; | ||
transform: translateY(0); | ||
} | ||
} | ||
|
||
@keyframes slideLeftAndFade { | ||
from { | ||
opacity: 0; | ||
transform: translateX(2px); | ||
} | ||
to { | ||
opacity: 1; | ||
transform: translateX(0); | ||
} | ||
from { | ||
opacity: 0; | ||
transform: translateX(2px); | ||
} | ||
to { | ||
opacity: 1; | ||
transform: translateX(0); | ||
} | ||
} |
Oops, something went wrong.