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 {
color: $white !important;
color: white !important;
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);
left: 1.6rem;
margin-right: 1.2rem;
font-size: 1.2rem;
font-size: 1.4rem;
width: 1.4rem;
height: 1.2rem;
padding-bottom: 0.2rem;
text-align: center;
}

View File

@ -88,7 +88,8 @@ const Wrapper = styled.div`
> i,
> svg {
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') {
icons.push({
icoType: 'trash',
icoType: 'trash-alt',
id: name,
onClick: this.handleClick,
});

View File

@ -9,7 +9,9 @@ const Div = styled.div`
> i,
> svg {
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 = {
icoType: 'trash',
icoType: 'trash-alt',
id: '',
onClick: () => {},
};

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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