Icons grid adjustments

This commit is contained in:
Virginie Ky 2019-11-25 15:56:44 +01:00
parent f36e8ac6f6
commit c640f6872b
14 changed files with 22 additions and 24 deletions

View File

@ -80,7 +80,7 @@ const Li = styled.li`
} }
.linkActive { .linkActive {
color: $white !important; color: white !important;
border-left: 0.3rem solid ${props => props.theme.main.colors.strapi.blue}; border-left: 0.3rem solid ${props => props.theme.main.colors.strapi.blue};
} }
@ -89,9 +89,8 @@ const Li = styled.li`
top: calc(50% - 0.9rem + 0.5rem); top: calc(50% - 0.9rem + 0.5rem);
left: 1.6rem; left: 1.6rem;
margin-right: 1.2rem; margin-right: 1.2rem;
font-size: 1.2rem; font-size: 1.4rem;
width: 1.4rem; width: 1.4rem;
height: 1.2rem;
padding-bottom: 0.2rem; padding-bottom: 0.2rem;
text-align: center; text-align: center;
} }

View File

@ -88,7 +88,8 @@ const Wrapper = styled.div`
> i, > i,
> svg { > svg {
margin-right: 7px; margin-right: 7px;
font-size: 12px; font-size: 11px;
vertical-align: inherit;
} }
} }

View File

@ -61,7 +61,7 @@ class Row extends React.Component {
if (!required && currentEnvironment === 'development') { if (!required && currentEnvironment === 'development') {
icons.push({ icons.push({
icoType: 'trash', icoType: 'trash-alt',
id: name, id: name,
onClick: this.handleClick, onClick: this.handleClick,
}); });

View File

@ -9,7 +9,9 @@ const Div = styled.div`
> i, > i,
> svg { > svg {
z-index: 0; z-index: 0;
font-size: 1.3rem; font-size: 1.2rem;
height: 1.2rem;
vertical-align: inherit;
} }
`; `;

View File

@ -35,7 +35,7 @@ Ico.propTypes = {
}; };
Ico.defaultProps = { Ico.defaultProps = {
icoType: 'trash', icoType: 'trash-alt',
id: '', id: '',
onClick: () => {}, onClick: () => {},
}; };

View File

@ -22,7 +22,7 @@ IcoContainer.propTypes = {
IcoContainer.defaultProps = { IcoContainer.defaultProps = {
icons: [ icons: [
{ icoType: 'pencil', onClick: () => {} }, { icoType: 'pencil', onClick: () => {} },
{ icoType: 'trash', onClick: () => {} }, { icoType: 'trash-alt', onClick: () => {} },
], ],
}; };

View File

@ -11,15 +11,13 @@ const StyledLink = styled(Link)`
i, i,
svg { svg {
color: #333740; color: #333740;
}
span {
font-size: 13px;
}
i,
svg {
width: 13px; width: 13px;
height: 11px; height: 11px;
margin-right: 10px; margin-right: 10px;
vertical-align: 0;
}
span {
font-size: 13px;
} }
.layout { .layout {
display: inline-block; display: inline-block;

View File

@ -104,7 +104,7 @@ function Row({ goTo, isBulkable, row, headers }) {
})} })}
<ActionContainer> <ActionContainer>
<IcoContainer <IcoContainer
style={{ minWidth: 'inherit', width: '100%' }} style={{ minWidth: 'inherit', width: '100%', lineHeight: 48 }}
icons={[ icons={[
{ {
icoType: 'pencil-alt', icoType: 'pencil-alt',
@ -114,7 +114,7 @@ function Row({ goTo, isBulkable, row, headers }) {
}, },
{ {
id: row.id, id: row.id,
icoType: 'trash', icoType: 'trash-alt',
onClick: () => { onClick: () => {
onClickDelete(row.id); onClickDelete(row.id);
}, },

View File

@ -141,7 +141,8 @@ const ActionContainer = styled.td`
i, i,
svg { svg {
margin-left: 15px; margin-left: 15px;
font-size: 1.1rem; font-size: 1rem;
height: 1rem;
color: #0e1622; color: #0e1622;
&:first-of-type { &:first-of-type {

View File

@ -4,9 +4,6 @@ const Wrapper = styled.div`
position: relative; position: relative;
margin: 24px 0 0 0; margin: 24px 0 0 0;
padding-bottom: 23px; padding-bottom: 23px;
& + & {
padding-bottom: 9px;
}
text-align: center; text-align: center;
.info { .info {
position: absolute; position: absolute;

View File

@ -30,7 +30,7 @@ const ButtonContainer = ({
<FormattedMessage id="documentation.components.Row.regenerate" /> <FormattedMessage id="documentation.components.Row.regenerate" />
</StyledButton> </StyledButton>
<StyledButton <StyledButton
type={version === currentDocVersion ? '' : 'trash'} type={version === currentDocVersion ? '' : 'trash-alt'}
onClick={() => onClickDelete(version)} onClick={() => onClickDelete(version)}
/> />
</div> </div>

View File

@ -64,7 +64,7 @@ const StyledButton = styled(Button)`
font-weight: 400; font-weight: 400;
&:before { &:before {
margin-right: 10px; margin-right: 10px;
content: '\f1f8'; content: '\f2ed';
font-family: 'FontAwesome'; font-family: 'FontAwesome';
font-size: 12 px; font-size: 12 px;
} }

View File

@ -95,7 +95,7 @@ class Li extends React.Component {
onClick: this.handleClick, onClick: this.handleClick,
}, },
{ {
icoType: 'trash', icoType: 'trash-alt',
onClick: () => this.setState({ isOpen: true }), onClick: () => this.setState({ isOpen: true }),
}, },
]; ];

View File

@ -35,7 +35,7 @@ class ListRow extends React.Component {
onClick: this.handleClick, onClick: this.handleClick,
}, },
{ {
icoType: 'trash', icoType: 'trash-alt',
onClick: () => { onClick: () => {
this.setState({ showModalDelete: true }); this.setState({ showModalDelete: true });
}, },