Small icon adjustments (#3050)

This commit is contained in:
Jaco Greeff 2020-06-25 14:50:19 +02:00 committed by GitHub
parent c982337f91
commit 5d7f07eca5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 9 deletions

View File

@ -328,7 +328,7 @@ export default React.memo(styled(Sidebar)`
.inline-icon {
cursor: pointer;
margin: 0 0 0 0.6rem;
margin: 0 0 0 0.5rem;
color: ${colorLink};
}

View File

@ -6,10 +6,11 @@ import { IconName } from '@fortawesome/fontawesome-svg-core';
import { BareProps, VoidFn } from './types';
import React from 'react';
import Button from './Button';
import styled from 'styled-components';
import { colorLink } from './styles/theme';
import Icon from './Icon';
interface Props extends BareProps {
children?: React.ReactNode;
icon?: IconName;
@ -25,8 +26,8 @@ function EditButton ({ children, className, icon = 'edit', onClick, size = 'smal
>
{children}
<span className='editSpan'>
<Button
className='icon-button show-on-hover'
<Icon
className='icon-button'
icon={icon}
isPrimary
size={size}
@ -39,8 +40,10 @@ function EditButton ({ children, className, icon = 'edit', onClick, size = 'smal
export default React.memo(styled(EditButton)`
cursor: pointer;
button.u.ui--Icon.primary.button.icon-button {
.ui--Icon.icon-button {
color: ${colorLink};
cursor: pointer;
margin: 0 0 0 0.5rem;
}
.editSpan {

View File

@ -258,6 +258,7 @@ export default React.memo(styled(Status)`
padding: 0.5rem 0 0.5rem 0.5rem;
.ui--Icon {
color: white !important;
line-height: 1;
}
}
@ -266,10 +267,10 @@ export default React.memo(styled(Status)`
padding: 0.25rem 0 0 0 !important;
}
i.close {
.ui--Icon.isClickable {
position: absolute;
top: 0.25rem;
right: 0rem;
top: 0.5rem;
right: 0.5rem;
cursor: pointer;
}
}