mirror of
https://github.com/strapi/strapi.git
synced 2025-09-27 17:29:14 +00:00
Enhance design filters
This commit is contained in:
parent
e0376cdd28
commit
b83c8370f2
@ -15,7 +15,7 @@ import Logo from '../../assets/images/icon_filter.png';
|
|||||||
const imgStyle = {
|
const imgStyle = {
|
||||||
marginTop: '-3px',
|
marginTop: '-3px',
|
||||||
marginRight: '10px',
|
marginRight: '10px',
|
||||||
height: '9px',
|
height: '7px',
|
||||||
};
|
};
|
||||||
|
|
||||||
function AddFilterCTA({ onClick, showHideText }) {
|
function AddFilterCTA({ onClick, showHideText }) {
|
||||||
|
@ -8,7 +8,7 @@ const CustomButton = styled.button`
|
|||||||
background-color: #FFFFFF;
|
background-color: #FFFFFF;
|
||||||
border: 1px solid #E3E9F3;
|
border: 1px solid #E3E9F3;
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
line-height: 30px;
|
line-height: 28px;
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
font-family: Lato;
|
font-family: Lato;
|
||||||
@ -17,6 +17,10 @@ const CustomButton = styled.button`
|
|||||||
&:hover {
|
&:hover {
|
||||||
background: #F7F8F8;
|
background: #F7F8F8;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
img{
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
export default CustomButton;
|
export default CustomButton;
|
||||||
|
@ -1,27 +1,37 @@
|
|||||||
.flexWrapper {
|
.flexWrapper {
|
||||||
height: 30px;
|
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
height: 30px;
|
||||||
margin-bottom: 6px;
|
margin-bottom: 6px;
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
padding: 0 10px;
|
padding: 0 10px;
|
||||||
background: rgba(0,126,255,0.08);
|
background: rgba(0,126,255,0.08);
|
||||||
border: 1px solid rgba(0,126,255,0.24);
|
border: 1px solid rgba(0,126,255,0.24);
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
line-height: 30px;
|
line-height: 28px;
|
||||||
color: #007EFF;
|
color: #007EFF;
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
|
|
||||||
|
> span{
|
||||||
|
display: inline-block;
|
||||||
|
margin-top: -1px;
|
||||||
|
}
|
||||||
|
|
||||||
> span:nth-child(2) {
|
> span:nth-child(2) {
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
}
|
}
|
||||||
|
|
||||||
> span:nth-child(3) {
|
> span:nth-child(3) {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
-webkit-font-smoothing: antialiased;
|
-webkit-font-smoothing: antialiased;
|
||||||
}
|
}
|
||||||
|
|
||||||
.remove {
|
.remove {
|
||||||
height: 30px;
|
height: 28px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
vertical-align: bottom;
|
||||||
|
|
||||||
&:after {
|
&:after {
|
||||||
content: '\f00d';
|
content: '\f00d';
|
||||||
font-family: FontAwesome;
|
font-family: FontAwesome;
|
||||||
|
@ -2,8 +2,14 @@ import styled from 'styled-components';
|
|||||||
|
|
||||||
const Div = styled.div`
|
const Div = styled.div`
|
||||||
display: flex;
|
display: flex;
|
||||||
|
min-height: 36px;
|
||||||
border-left: ${props => props.borderLeft ? '3px solid #007EFF' : '0px' };
|
border-left: ${props => props.borderLeft ? '3px solid #007EFF' : '0px' };
|
||||||
padding-left: ${props => props.borderLeft ? '10px' : '13px' };
|
padding-left: ${props => props.borderLeft ? '10px' : '13px' };
|
||||||
|
margin-bottom: 0px !important;
|
||||||
|
|
||||||
|
input, select{
|
||||||
|
margin: 0px 5px !important;
|
||||||
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
export default Div;
|
export default Div;
|
||||||
|
@ -69,7 +69,7 @@ function FilterOptions({ filter, filterToFocus, index, onChange, onClickAdd, onC
|
|||||||
{showAddButton && (
|
{showAddButton && (
|
||||||
<Add
|
<Add
|
||||||
onClick={onClickAdd}
|
onClick={onClickAdd}
|
||||||
style={attrType === 'boolean' ? { marginLeft: '10px' } : {}}
|
style={{ marginLeft: '6px' }}
|
||||||
type="button"
|
type="button"
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
@ -5,7 +5,7 @@ const FilterOptionsCTA = styled.button`
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
height: 20px;
|
height: 20px;
|
||||||
width: 20px;
|
width: 20px;
|
||||||
margin: 17px 10px 0px 0px;
|
margin: 8px 5px 0px 0px;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
border: 1px solid #E3E9F3;
|
border: 1px solid #E3E9F3;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
@ -3,13 +3,16 @@ import styled from 'styled-components';
|
|||||||
const Flex = styled.div`
|
const Flex = styled.div`
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
padding: 0 30px 9px 30px !important;
|
padding: 0 0 9px 30px !important;
|
||||||
color: #C3C5C8;
|
color: #C3C5C8;
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
|
|
||||||
> span {
|
> span {
|
||||||
|
vertical-align: text-top;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
||||||
&:after {
|
&:after {
|
||||||
|
margin-left: 2px;
|
||||||
content: '\f077';
|
content: '\f077';
|
||||||
font-family: FontAwesome;
|
font-family: FontAwesome;
|
||||||
font-size: 10px;
|
font-size: 10px;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
.wrapperStyle {
|
.wrapperStyle {
|
||||||
margin-top: -13px;
|
margin-top: -13px;
|
||||||
> div:not(:first-child) {
|
> div:not(:first-child) {
|
||||||
padding-top: 2px;
|
padding-top: 10px;
|
||||||
}
|
}
|
||||||
> div:last-child {
|
> div:last-child {
|
||||||
margin-bottom: 2px;
|
margin-bottom: 2px;
|
||||||
|
@ -8,6 +8,7 @@
|
|||||||
|
|
||||||
.row{
|
.row{
|
||||||
padding-bottom: 36px;
|
padding-bottom: 36px;
|
||||||
|
padding-left: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.noPadding {
|
.noPadding {
|
||||||
|
@ -15,8 +15,8 @@
|
|||||||
"components.LimitSelect.itemsPerPage": "Items per page",
|
"components.LimitSelect.itemsPerPage": "Items per page",
|
||||||
"containers.List.errorFetchRecords": "Error",
|
"containers.List.errorFetchRecords": "Error",
|
||||||
|
|
||||||
"components.AddFilterCTA.add": "Add filter",
|
"components.AddFilterCTA.add": "Filters",
|
||||||
"components.AddFilterCTA.hide": "Hide filters",
|
"components.AddFilterCTA.hide": "Filters",
|
||||||
"components.FilterOptions.button.apply": "Apply",
|
"components.FilterOptions.button.apply": "Apply",
|
||||||
"components.FiltersPickWrapper.PluginHeader.actions.apply": "Apply",
|
"components.FiltersPickWrapper.PluginHeader.actions.apply": "Apply",
|
||||||
"components.FiltersPickWrapper.PluginHeader.actions.clearAll": "Clear all",
|
"components.FiltersPickWrapper.PluginHeader.actions.clearAll": "Clear all",
|
||||||
|
@ -16,8 +16,8 @@
|
|||||||
"components.LimitSelect.itemsPerPage": "Éléments par page",
|
"components.LimitSelect.itemsPerPage": "Éléments par page",
|
||||||
"containers.List.errorFetchRecords": "Erreur",
|
"containers.List.errorFetchRecords": "Erreur",
|
||||||
|
|
||||||
"components.AddFilterCTA.add": "Ajouter un filtre",
|
"components.AddFilterCTA.add": "Filtres",
|
||||||
"components.AddFilterCTA.hide": "Cacher les filtres",
|
"components.AddFilterCTA.hide": "Filtres",
|
||||||
"components.FilterOptions.button.apply": "Appliquer",
|
"components.FilterOptions.button.apply": "Appliquer",
|
||||||
"components.FiltersPickWrapper.PluginHeader.actions.apply": "Appliquer",
|
"components.FiltersPickWrapper.PluginHeader.actions.apply": "Appliquer",
|
||||||
"components.FiltersPickWrapper.PluginHeader.actions.clearAll": "Tout supprimer",
|
"components.FiltersPickWrapper.PluginHeader.actions.clearAll": "Tout supprimer",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user