mirror of
https://github.com/strapi/strapi.git
synced 2025-09-22 06:50:51 +00:00
Merge branch 'styled-component/ctb' of github.com:strapi/strapi into styled-component/ctb
This commit is contained in:
commit
a288198306
@ -1,4 +1,8 @@
|
|||||||
const sizes = {
|
const sizes = {
|
||||||
|
tablet: '768px',
|
||||||
|
desktop: '992px',
|
||||||
|
wide: '1280px',
|
||||||
|
|
||||||
header: {
|
header: {
|
||||||
height: '6rem',
|
height: '6rem',
|
||||||
},
|
},
|
||||||
|
@ -11,7 +11,7 @@ const StyledPluginHeaderActions = styled.div`
|
|||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
width: fit-content;
|
width: fit-content;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
padding-top: 0.9rem;
|
padding-top: 1rem;
|
||||||
button {
|
button {
|
||||||
margin-right: 0;
|
margin-right: 0;
|
||||||
margin-left: 1.8rem;
|
margin-left: 1.8rem;
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
.controlsContainer {
|
.controlsContainer {
|
||||||
display: flex;
|
display: flex;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
overflow-x: scroll;
|
|
||||||
background-color: #f3f4f4;
|
background-color: #f3f4f4;
|
||||||
|
|
||||||
select {
|
select {
|
||||||
|
@ -652,8 +652,8 @@ export class ModelPage extends React.Component {
|
|||||||
</div>
|
</div>
|
||||||
</ListWrapper>
|
</ListWrapper>
|
||||||
)}
|
)}
|
||||||
{!this.getSource() && (
|
<div className="trash-btn-wrapper">
|
||||||
<div className="trash-btn-wrapper">
|
{!this.getSource() && (
|
||||||
<TrashButton
|
<TrashButton
|
||||||
onClick={e => {
|
onClick={e => {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
@ -672,8 +672,8 @@ export class ModelPage extends React.Component {
|
|||||||
</div>
|
</div>
|
||||||
<FormattedMessage id={`${pluginId}.button.delete.label`} />
|
<FormattedMessage id={`${pluginId}.button.delete.label`} />
|
||||||
</TrashButton>
|
</TrashButton>
|
||||||
</div>
|
)}
|
||||||
)}
|
</div>
|
||||||
</ViewContainer>
|
</ViewContainer>
|
||||||
|
|
||||||
<AttributesModalPicker
|
<AttributesModalPicker
|
||||||
|
@ -3,6 +3,7 @@ import styled from 'styled-components';
|
|||||||
const Wrapper = styled.div`
|
const Wrapper = styled.div`
|
||||||
margin-top: 9px;
|
margin-top: 9px;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
padding-bottom: 7px;
|
||||||
|
|
||||||
> div:first-child {
|
> div:first-child {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
@ -12,6 +13,7 @@ const Wrapper = styled.div`
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 0 !important;
|
padding: 0 !important;
|
||||||
list-style: none;
|
list-style: none;
|
||||||
|
margin-bottom: 0;
|
||||||
> li:nth-child(2) {
|
> li:nth-child(2) {
|
||||||
height: 57px;
|
height: 57px;
|
||||||
> div {
|
> div {
|
||||||
|
@ -61,9 +61,9 @@ function InputCheckboxPlugin({
|
|||||||
return (
|
return (
|
||||||
<Wrapper className="col-md-4">
|
<Wrapper className="col-md-4">
|
||||||
<div
|
<div
|
||||||
className={`form-check ${isSelected ? 'highlighted' : ''} ${
|
className={`form-check ${
|
||||||
value ? 'is-checked' : ''
|
isSelected && policiesShown ? 'highlighted' : ''
|
||||||
}`}
|
} ${value ? 'is-checked' : ''}`}
|
||||||
>
|
>
|
||||||
<Label
|
<Label
|
||||||
className={`form-check-label ${value ? 'checked' : ''}`}
|
className={`form-check-label ${value ? 'checked' : ''}`}
|
||||||
|
@ -67,7 +67,7 @@ const Addon = styled.div`
|
|||||||
|
|
||||||
const List = styled.div`
|
const List = styled.div`
|
||||||
height: 16.3rem;
|
height: 16.3rem;
|
||||||
overflow: scroll;
|
overflow-y: auto;
|
||||||
border: 1px solid #e3e9f3;
|
border: 1px solid #e3e9f3;
|
||||||
border-top-left-radius: 0 !important;
|
border-top-left-radius: 0 !important;
|
||||||
border-top-right-radius: 0 !important;
|
border-top-right-radius: 0 !important;
|
||||||
|
@ -8,18 +8,20 @@ const Wrapper = styled.div`
|
|||||||
const Banner = styled.div`
|
const Banner = styled.div`
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
padding: 0 28px;
|
padding: 0 43px 0 28px;
|
||||||
padding-right: 43px;
|
|
||||||
color: #787e8f;
|
color: #787e8f;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
> div:first-child {
|
> div:first-child {
|
||||||
display: flex;
|
display: flex;
|
||||||
line-height: 5.3rem;
|
line-height: 5.3rem;
|
||||||
|
width: 100%;
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const Chevron = styled.div`
|
const Chevron = styled.div`
|
||||||
margin: auto;
|
margin: auto;
|
||||||
|
margin-left: auto;
|
||||||
|
padding-left: 5px;
|
||||||
margin-right: 0;
|
margin-right: 0;
|
||||||
color: #787e8f;
|
color: #787e8f;
|
||||||
font-family: 'FontAwesome';
|
font-family: 'FontAwesome';
|
||||||
@ -48,7 +50,8 @@ const Description = styled.div`
|
|||||||
const Icon = styled.div`
|
const Icon = styled.div`
|
||||||
height: 36px;
|
height: 36px;
|
||||||
width: 70px;
|
width: 70px;
|
||||||
margin: auto;
|
min-width: 70px;
|
||||||
|
margin: auto 0;
|
||||||
margin-right: 14px;
|
margin-right: 14px;
|
||||||
color: #333740;
|
color: #333740;
|
||||||
border: 1px solid rgba(28, 93, 231, 0.1);
|
border: 1px solid rgba(28, 93, 231, 0.1);
|
||||||
@ -59,8 +62,10 @@ const Icon = styled.div`
|
|||||||
|
|
||||||
const Name = styled.div`
|
const Name = styled.div`
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
|
line-height: 18px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
|
margin: auto 0;
|
||||||
`;
|
`;
|
||||||
|
|
||||||
export { Banner, Chevron, ControllerWrapper, Description, Icon, Name, Wrapper };
|
export { Banner, Chevron, ControllerWrapper, Description, Icon, Name, Wrapper };
|
||||||
|
@ -89,16 +89,16 @@ class Plugin extends React.Component {
|
|||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
</Description>
|
</Description>
|
||||||
|
{emptyApplication && (
|
||||||
|
<Chevron>
|
||||||
|
{this.state.collapse ? (
|
||||||
|
<i className="fa fa-chevron-up" />
|
||||||
|
) : (
|
||||||
|
<i className="fa fa-chevron-down" />
|
||||||
|
)}
|
||||||
|
</Chevron>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
{emptyApplication && (
|
|
||||||
<Chevron>
|
|
||||||
{this.state.collapse ? (
|
|
||||||
<i className="fa fa-chevron-up" />
|
|
||||||
) : (
|
|
||||||
<i className="fa fa-chevron-down" />
|
|
||||||
)}
|
|
||||||
</Chevron>
|
|
||||||
)}
|
|
||||||
</Banner>
|
</Banner>
|
||||||
<Collapse isOpen={this.state.collapse}>
|
<Collapse isOpen={this.state.collapse}>
|
||||||
<div />
|
<div />
|
||||||
|
@ -5,6 +5,7 @@ const Wrapper = styled.div`
|
|||||||
padding: 0;
|
padding: 0;
|
||||||
.plugins-wrapper {
|
.plugins-wrapper {
|
||||||
padding-top: 1.8rem;
|
padding-top: 1.8rem;
|
||||||
|
width: 100%;
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
@ -27,7 +28,7 @@ const Header = styled.div`
|
|||||||
`;
|
`;
|
||||||
|
|
||||||
const PluginsContainer = styled.div`
|
const PluginsContainer = styled.div`
|
||||||
padding-top: 1.9rem;
|
padding-top: 2rem;
|
||||||
> div {
|
> div {
|
||||||
border-bottom: 1px solid white;
|
border-bottom: 1px solid white;
|
||||||
&:last-child {
|
&:last-child {
|
||||||
|
@ -1,10 +1,19 @@
|
|||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
|
|
||||||
|
import { sizes } from 'strapi-helper-plugin';
|
||||||
|
|
||||||
const Wrapper = styled.div`
|
const Wrapper = styled.div`
|
||||||
|
* {
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
> .container-fluid {
|
> .container-fluid {
|
||||||
padding: 18px 30px;
|
padding: 18px 30px;
|
||||||
> div:first-child {
|
> div:first-child {
|
||||||
margin-bottom: 11px;
|
margin-bottom: 7px;
|
||||||
|
@media (min-width: ${sizes.desktop}) {
|
||||||
|
margin-bottom: 11px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -39,7 +48,7 @@ const Title = styled.div`
|
|||||||
`;
|
`;
|
||||||
|
|
||||||
const Separator = styled.div`
|
const Separator = styled.div`
|
||||||
margin-top: 15px;
|
margin-top: 13px;
|
||||||
border-top: 1px solid #f6f6f6;
|
border-top: 1px solid #f6f6f6;
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user