mirror of
https://github.com/strapi/strapi.git
synced 2025-11-13 08:38:09 +00:00
design review
This commit is contained in:
parent
d83cbb4539
commit
3067bf5e1c
@ -4,9 +4,8 @@ import PropTypes from 'prop-types';
|
|||||||
import Logo from '../../assets/images/logo-strapi.png';
|
import Logo from '../../assets/images/logo-strapi.png';
|
||||||
|
|
||||||
const Wrapper = styled.div`
|
const Wrapper = styled.div`
|
||||||
background: ${props => props.theme.main.colors.leftMenu['link-hover']};
|
background-color: #007eff;
|
||||||
height: ${props => props.theme.main.sizes.header.height};
|
height: ${props => props.theme.main.sizes.header.height};
|
||||||
background: linear-gradient(100deg, #1c5de7, #1c91e7);
|
|
||||||
|
|
||||||
.leftMenuHeaderLink {
|
.leftMenuHeaderLink {
|
||||||
&:hover {
|
&:hover {
|
||||||
|
|||||||
@ -5,6 +5,10 @@ const Li = styled.li`
|
|||||||
position: relative;
|
position: relative;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
||||||
|
&.dotted-link {
|
||||||
|
background: red;
|
||||||
|
}
|
||||||
|
|
||||||
&:not(:first-child) {
|
&:not(:first-child) {
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -28,6 +28,12 @@ const Wrapper = styled.div`
|
|||||||
list-style: none;
|
list-style: none;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin-bottom: 2rem;
|
margin-bottom: 2rem;
|
||||||
|
&.models-list {
|
||||||
|
li a svg {
|
||||||
|
font-size: 0.74rem;
|
||||||
|
top: calc(50% - 0.35rem);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.noPluginsInstalled {
|
.noPluginsInstalled {
|
||||||
|
|||||||
@ -45,12 +45,12 @@ function LeftMenuLinkContainer({ plugins, ...rest }) {
|
|||||||
return (
|
return (
|
||||||
<div key={j}>
|
<div key={j}>
|
||||||
<p className="title">{pluginsSections[current].name}</p>
|
<p className="title">{pluginsSections[current].name}</p>
|
||||||
<ul className="list">
|
<ul className="list models-list">
|
||||||
{sortBy(contentTypes, 'label').map((link, i) => (
|
{sortBy(contentTypes, 'label').map((link, i) => (
|
||||||
<LeftMenuLink
|
<LeftMenuLink
|
||||||
{...rest}
|
{...rest}
|
||||||
key={`${i}-${link.label}`}
|
key={`${i}-${link.label}`}
|
||||||
icon={link.icon || 'caret-right'}
|
icon={link.icon || 'circle'}
|
||||||
label={link.label}
|
label={link.label}
|
||||||
destination={`/plugins/${link.plugin}/${link.destination ||
|
destination={`/plugins/${link.plugin}/${link.destination ||
|
||||||
link.uid}`}
|
link.uid}`}
|
||||||
|
|||||||
@ -4,7 +4,6 @@ const NameWrapper = styled.div`
|
|||||||
position: relative;
|
position: relative;
|
||||||
padding-left: 38px;
|
padding-left: 38px;
|
||||||
padding-right: 38px;
|
padding-right: 38px;
|
||||||
|
|
||||||
line-height: 30px;
|
line-height: 30px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
|
|||||||
@ -27,7 +27,7 @@ const Wrapper = styled.div`
|
|||||||
} else if (isSub) {
|
} else if (isSub) {
|
||||||
return '#ffffff';
|
return '#ffffff';
|
||||||
} else {
|
} else {
|
||||||
return '#fafafb';
|
return '#F2F3F4';
|
||||||
}
|
}
|
||||||
}};
|
}};
|
||||||
border: 1px solid
|
border: 1px solid
|
||||||
|
|||||||
@ -84,7 +84,6 @@ const FieldsReorder = ({ className }) => {
|
|||||||
data={buttonData}
|
data={buttonData}
|
||||||
onClick={onAddData}
|
onClick={onAddData}
|
||||||
style={{ width: '100%', margin: '0 5px' }}
|
style={{ width: '100%', margin: '0 5px' }}
|
||||||
pStyle={{ marginTop: '-2px' }}
|
|
||||||
/>
|
/>
|
||||||
</Wrapper>
|
</Wrapper>
|
||||||
</SortWrapper>
|
</SortWrapper>
|
||||||
|
|||||||
@ -29,7 +29,7 @@ const Span = styled.span`
|
|||||||
const Flex = styled.div`
|
const Flex = styled.div`
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
padding: 0 0 12px 30px !important;
|
padding: 0 0 10px 30px !important;
|
||||||
margin-top: -10px;
|
margin-top: -10px;
|
||||||
color: #c3c5c8;
|
color: #c3c5c8;
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
|
|||||||
@ -7,9 +7,12 @@ const LayoutTitle = styled.div`
|
|||||||
line-height: 18px;
|
line-height: 18px;
|
||||||
|
|
||||||
p {
|
p {
|
||||||
|
margin-top: 2px;
|
||||||
margin-bottom: 29px;
|
margin-bottom: 29px;
|
||||||
color: #787e8f;
|
color: #9ea7b8;
|
||||||
|
font-size: 12px;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
|
line-height: normal;
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
|||||||
@ -52,6 +52,11 @@ const SettingsViewWrapper = ({
|
|||||||
}),
|
}),
|
||||||
type: 'button',
|
type: 'button',
|
||||||
disabled: isEqual(modifiedData, initialData) ? true : false,
|
disabled: isEqual(modifiedData, initialData) ? true : false,
|
||||||
|
style: {
|
||||||
|
fontWeight: 600,
|
||||||
|
paddingLeft: 15,
|
||||||
|
paddingRight: 15,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
color: 'success',
|
color: 'success',
|
||||||
@ -60,6 +65,10 @@ const SettingsViewWrapper = ({
|
|||||||
}),
|
}),
|
||||||
type: 'submit',
|
type: 'submit',
|
||||||
disabled: isEqual(modifiedData, initialData) ? true : false,
|
disabled: isEqual(modifiedData, initialData) ? true : false,
|
||||||
|
style: {
|
||||||
|
minWidth: 150,
|
||||||
|
fontWeight: 600,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|||||||
@ -1,5 +1,9 @@
|
|||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
|
|
||||||
const SortWrapper = styled.div``;
|
const SortWrapper = styled.div`
|
||||||
|
.btn-group button {
|
||||||
|
line-height: 32px;
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
export default SortWrapper;
|
export default SortWrapper;
|
||||||
|
|||||||
@ -37,9 +37,8 @@ const SortableList = ({ addItem, buttonData, moveItem, removeItem }) => {
|
|||||||
style={{
|
style={{
|
||||||
marginLeft: 10,
|
marginLeft: 10,
|
||||||
marginRight: 10,
|
marginRight: 10,
|
||||||
marginBottom: 10,
|
marginBottom: 13,
|
||||||
}}
|
}}
|
||||||
pStyle={{ marginTop: '-2px' }}
|
|
||||||
/>
|
/>
|
||||||
</SortWrapper>
|
</SortWrapper>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -54,6 +54,11 @@ const Header = () => {
|
|||||||
id: `${pluginId}.containers.Edit.reset`,
|
id: `${pluginId}.containers.Edit.reset`,
|
||||||
}),
|
}),
|
||||||
type: 'button',
|
type: 'button',
|
||||||
|
style: {
|
||||||
|
paddingLeft: 15,
|
||||||
|
paddingRight: 15,
|
||||||
|
fontWeight: 600,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
color: 'success',
|
color: 'success',
|
||||||
@ -61,6 +66,10 @@ const Header = () => {
|
|||||||
id: `${pluginId}.containers.Edit.submit`,
|
id: `${pluginId}.containers.Edit.submit`,
|
||||||
}),
|
}),
|
||||||
type: 'submit',
|
type: 'submit',
|
||||||
|
style: {
|
||||||
|
minWidth: 150,
|
||||||
|
fontWeight: 600,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -74,6 +83,11 @@ const Header = () => {
|
|||||||
toggleWarningDelete();
|
toggleWarningDelete();
|
||||||
},
|
},
|
||||||
type: 'button',
|
type: 'button',
|
||||||
|
style: {
|
||||||
|
paddingLeft: 15,
|
||||||
|
paddingRight: 15,
|
||||||
|
fontWeight: 600,
|
||||||
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -254,6 +254,11 @@ function ListView({
|
|||||||
color: 'primary',
|
color: 'primary',
|
||||||
type: 'button',
|
type: 'button',
|
||||||
icon: true,
|
icon: true,
|
||||||
|
style: {
|
||||||
|
paddingLeft: 15,
|
||||||
|
paddingRight: 15,
|
||||||
|
fontWeight: 600,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -353,7 +358,7 @@ function ListView({
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="row" style={{ paddingTop: '30px' }}>
|
<div className="row" style={{ paddingTop: '12px' }}>
|
||||||
<div className="col-12">
|
<div className="col-12">
|
||||||
<CustomTable
|
<CustomTable
|
||||||
data={data}
|
data={data}
|
||||||
|
|||||||
@ -24,7 +24,7 @@ function EditViewButton(props) {
|
|||||||
<Button
|
<Button
|
||||||
{...props}
|
{...props}
|
||||||
onClick={handleClick}
|
onClick={handleClick}
|
||||||
icon={<i className="fa fa-cog"></i>}
|
icon={<i className="fa fa-cog" style={{ fontSize: 13 }}></i>}
|
||||||
label={formatMessage({
|
label={formatMessage({
|
||||||
id: 'content-manager.containers.Edit.Link.Model',
|
id: 'content-manager.containers.Edit.Link.Model',
|
||||||
})}
|
})}
|
||||||
@ -32,6 +32,7 @@ function EditViewButton(props) {
|
|||||||
paddingLeft: 15,
|
paddingLeft: 15,
|
||||||
paddingRight: 15,
|
paddingRight: 15,
|
||||||
outline: 0,
|
outline: 0,
|
||||||
|
fontWeight: 600,
|
||||||
}}
|
}}
|
||||||
></Button>
|
></Button>
|
||||||
);
|
);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user