Adjust buttons/tables (#3492)

* Adjust buttons/tables

* Filter
This commit is contained in:
Jaco Greeff 2020-08-23 22:50:15 +02:00 committed by GitHub
parent ed3cbd4b64
commit bf0a7b4b43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 21 additions and 7 deletions

View File

@ -44,7 +44,7 @@ function ChainInfo ({ className }: Props): React.ReactElement<Props> {
</div>
{canToggle && (
<Icon
className='dropdown'
className='dropdown highlight--color'
icon={isEndpointsVisible ? 'caret-right' : 'caret-down'}
/>
)}

View File

@ -31,9 +31,12 @@ function Grouping ({ className = '', name, routes }: Props): React.ReactElement<
<li className={className}>
<div className='groupHdr'>
<span>{name}</span>
<Icon icon='caret-down' />
<Icon
className='highlight--color'
icon='caret-down'
/>
</div>
<ul className='groupMenu highlight--bg-light highlight--before'>
<ul className='groupMenu highlight--bg-light'>
{routes.map((route): React.ReactNode => (
<Item
key={route.name}

View File

@ -28,7 +28,10 @@ function Item ({ className = '', route: { Modal, href, icon, name, text, useCoun
rel='noopener noreferrer'
target={href ? '_blank' : undefined}
>
<Icon icon={icon} />
<Icon
className='highlight--color'
icon={icon}
/>
{text}
{!!count && (
<Badge
@ -55,6 +58,10 @@ export default React.memo(styled(Item)`
a {
padding: 1rem 1.5rem;
}
.ui--Badge {
top: 0.95rem;
}
}
&.withCounter a {
@ -71,7 +78,7 @@ export default React.memo(styled(Item)`
.ui--Badge {
position: absolute;
right: 0.25rem;
top: 0.65rem;
top: 0.7rem;
}
.ui--Icon {

View File

@ -177,6 +177,10 @@ export default React.memo(styled(Menu)`
.menuActive {
background: #f5f3f1;
}
.menuItems {
filter: grayscale(1);
}
}
.menuSection {

View File

@ -67,11 +67,11 @@ export default React.memo(styled(Body)`
}
&.badge {
padding: 0;
padding: 0.5rem;
}
&.button {
padding: 0.5rem 0.25rem;
padding: 0.5rem;
text-align: right;
white-space: nowrap;