Skip to content

Commit

Permalink
gradient-button remove border
Browse files Browse the repository at this point in the history
  • Loading branch information
Sylvie-Wxr committed Sep 19, 2023
1 parent cbf6291 commit e15f6a3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions components/Dropdown/dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function Dropdown({ active, items, setOptions, setOptions2 }) {
<div className='w-full'>
<button
type='button'
className='flex justify-between text-white p-4 w-full justify-center gap-x-1.5 rounded-md shadow-sm border border-gray card-bg hover:bg-gray-50'
className='flex justify-between text-white p-4 w-full justify-center gap-x-1.5 rounded-md shadow-sm card-bg hover:bg-gray-50 gradient-bg no-border'
id='menu-button'
aria-expanded='true'
aria-haspopup='true'
Expand Down Expand Up @@ -58,7 +58,7 @@ function Dropdown({ active, items, setOptions, setOptions2 }) {
setOptions2(item.lists);
setShow(false);
}}
className={`text-gray-700 block p-4 text-md hover:text-white cursor-pointer navbg ${item.city === active? 'active-bg' : ''}`}
className={`text-gray-700 block p-4 text-md hover:text-white cursor-pointer navbg`}
role='menuitem'
tabindex='-1'
id='menu-item-0'
Expand Down
8 changes: 6 additions & 2 deletions styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ body {
bottom: 0 !important;
}

.gradient-bg, .active-bg{
background-image: linear-gradient(225deg, #2DCCFD 9.35%, #AD20E2 88.41%);
.gradient-bg {
background-image: linear-gradient(225deg, #2DCCFD 9.35%, #AD20E2 88.41%) !important;
}

.navbg:hover, .navbg:focus{
Expand All @@ -90,6 +90,10 @@ body {
box-shadow: 0px 59px 100px rgba(0, 0, 0, 0.25), 0px 44px 94px rgba(0, 0, 0, 0.15);
}

.no-border {
border: none !important;
}

.header-bg{
background: linear-gradient(320deg, #2db4fd 10.35%, #410854 88.41%);
}
Expand Down

0 comments on commit e15f6a3

Please sign in to comment.