Skip to content

Commit

Permalink
feat: apply ui enhancement from figma main content
Browse files Browse the repository at this point in the history
  • Loading branch information
varex83 committed Dec 14, 2023
1 parent 2ff3f20 commit b5718f6
Show file tree
Hide file tree
Showing 16 changed files with 506 additions and 323 deletions.
6 changes: 6 additions & 0 deletions plugin/public/compile-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions plugin/public/deploy-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion plugin/src/components/BackgroundNotices/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const Notices = [

const BackgroundNotices: React.FC = () => {
return (
<div className='bg-transparent'>
<div className='bg-transparent bg-notices-root'>
<p className="text-center text-md bg-notices-text">Notices</p>
{
<ul className="list-group">
Expand Down
6 changes: 6 additions & 0 deletions plugin/src/components/BackgroundNotices/style.css
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;
}

38 changes: 34 additions & 4 deletions plugin/src/components/ui_components/Accordian/accordian.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
/* reset */

:root {
--accordian-border-radius: 8px;
--accordian-bg-color: var(--light);
}

button,
h3 {
all: unset;
Expand Down Expand Up @@ -36,8 +42,10 @@ h3 {
}

.AccordionTrigger {
* {
outline: none !important;
}
font-family: inherit;
padding: 0 20px;
min-height: 45px;
flex: 1;
display: flex;
Expand All @@ -48,28 +56,50 @@ h3 {
line-height: 1;
color: var(--text);
transition: all 0.1s ease;
box-shadow: 0 1px 0 var(--secondary);
background-color: var(--accordian-bg-color) !important;

border-radius: var(--accordian-border-radius);

padding: 8px 16px 8px 16px;

margin: 10px 10px 0 10px;
}

.AccordionTrigger:focus {
outline: none;
}

.AccordionTrigger[data-state='open'] {
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
}

.AccordionTrigger:hover {
background-color: var(--secondary) !important;
background-color: var(--accordian-bg-color) !important;
color: var(--text);
}

.AccordionContent {
overflow: hidden;
font-size: 1rem;
color: var(--text);
background-color: var(--accordian-bg-color) !important;
}
.AccordionContent[data-state='open'] {
animation: slideDown 300ms cubic-bezier(0.87, 0, 0.13, 1);

background-color: var(--accordian-bg-color) !important;
margin: 0 10px;
border-bottom-left-radius: var(--accordian-border-radius);
border-bottom-right-radius: var(--accordian-border-radius);
}

.AccordionContent[data-state='closed'] {
animation: slideUp 300ms cubic-bezier(0.87, 0, 0.13, 1);
}

.AccordionContentText {
padding: 15px 20px;
padding: 15px 6px;
}

.AccordionChevron {
Expand Down
192 changes: 100 additions & 92 deletions plugin/src/components/ui_components/Dropdown/dropdown.css
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);
}
}
Loading

0 comments on commit b5718f6

Please sign in to comment.