Small icon adjustments (#3050)
This commit is contained in:
parent
c982337f91
commit
5d7f07eca5
@ -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};
|
||||
}
|
||||
|
||||
|
||||
@ -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 {
|
||||
|
||||
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user