Skip to content
This repository was archived by the owner on Mar 8, 2023. It is now read-only.

Commit 565df33

Browse files
authored
Merge pull request #60 from strapi/icons
Icons adaptation
2 parents 4c96411 + 08e1c81 commit 565df33

File tree

4 files changed

+53
-4
lines changed

4 files changed

+53
-4
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
import React from 'react';
2+
import PropTypes from 'prop-types';
3+
4+
const Plus = props => (
5+
<svg width="10px" height="10px" xmlns="http://www.w3.org/2000/svg" {...props}>
6+
<g stroke="none" strokeWidth="1" fill={props.fill} fillRule="evenodd">
7+
<g
8+
transform="translate(-1165.000000, -189.000000)"
9+
fill={props.fill}
10+
fillRule="nonzero"
11+
>
12+
<g transform="translate(1150.154730, 179.000000)">
13+
<g id="Add-button">
14+
<g id="Group-4">
15+
<g id="Group" transform="translate(14.421208, 8.787123)">
16+
<path
17+
d="M8.9727187,3.66306178 C8.9727187,3.73229714 8.94608972,3.79354381 8.89283174,3.84680179 L5.17009936,7.56953417 C5.11684139,7.62279214 5.05559472,7.64942113 4.98635935,7.64942113 C4.91712399,7.64942113 4.85587732,7.62279214 4.80261934,7.56953417 L1.07988696,3.84680179 C1.02662899,3.79354381 1,3.73229714 1,3.66306178 C1,3.59382641 1.02662899,3.53257974 1.07988696,3.47932177 L1.47932177,3.07988696 C1.53257974,3.02662899 1.59382641,3 1.66306178,3 C1.73229714,3 1.79354381,3.02662899 1.84680179,3.07988696 L4.98635935,6.21944453 L8.12591692,3.07988696 C8.17917489,3.02662899 8.24042156,3 8.30965693,3 C8.37889229,3 8.44013896,3.02662899 8.49339694,3.07988696 L8.89283174,3.47932177 C8.94608972,3.53257974 8.9727187,3.59382641 8.9727187,3.66306178 Z"
18+
id="Path"
19+
transform="translate(4.986359, 5.324711) scale(-1, 1) rotate(45.000000) translate(-4.986359, -5.324711) "
20+
></path>
21+
<path
22+
d="M11.2552783,5.94562132 C11.2552783,6.01485669 11.2286493,6.07610336 11.1753913,6.12936133 L7.45265891,9.85209371 C7.39940094,9.90535169 7.33815427,9.93198068 7.2689189,9.93198068 C7.19968353,9.93198068 7.13843686,9.90535169 7.08517889,9.85209371 L3.36244651,6.12936133 C3.30918853,6.07610336 3.28255955,6.01485669 3.28255955,5.94562132 C3.28255955,5.87638596 3.30918853,5.81513929 3.36244651,5.76188131 L3.76188131,5.36244651 C3.81513929,5.30918853 3.87638596,5.28255955 3.94562132,5.28255955 C4.01485669,5.28255955 4.07610336,5.30918853 4.12936133,5.36244651 L7.2689189,8.50200407 L10.4084765,5.36244651 C10.4617344,5.30918853 10.5229811,5.28255955 10.5922165,5.28255955 C10.6614518,5.28255955 10.7226985,5.30918853 10.7759565,5.36244651 L11.1753913,5.76188131 C11.2286493,5.81513929 11.2552783,5.87638596 11.2552783,5.94562132 Z"
23+
id="Path"
24+
transform="translate(7.268919, 7.607270) rotate(135.000000) translate(-7.268919, -7.607270) "
25+
></path>
26+
</g>
27+
</g>
28+
</g>
29+
</g>
30+
</g>
31+
</g>
32+
</svg>
33+
);
34+
35+
Plus.defaultProps = {
36+
fill: '#fff',
37+
};
38+
39+
Plus.propTypes = {
40+
fill: PropTypes.string,
41+
};
42+
43+
export default Plus;

packages/buffetjs-icons/src/components/Remove/Icon.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
import React from 'react';
22

33
const Icon = props => (
4-
<svg width="12px" height="10px" xmlns="http://www.w3.org/2000/svg" {...props}>
4+
<svg
5+
viewBox="0 0 8 8"
6+
width="8"
7+
height="8"
8+
xmlns="http://www.w3.org/2000/svg"
9+
{...props}
10+
>
511
<path
612
d="M10.0719417,0.127226812 C10.1612888,0.127226812 10.2403266,0.161591074 10.3090551,0.230319596 L10.3090551,0.230319596 L10.8245191,0.745783513 C10.8932476,0.814512036 10.9276118,0.893549837 10.9276118,0.982896916 C10.9276118,1.07224399 10.8932476,1.1512818 10.8245191,1.22001032 L10.8245191,1.22001032 L6.77297267,5.27155671 L10.8245191,9.3231031 C10.8932476,9.39183162 10.9276118,9.47086942 10.9276118,9.5602165 C10.9276118,9.64956358 10.8932476,9.72860138 10.8245191,9.79732991 L10.8245191,9.79732991 L10.3090551,10.3127938 C10.2403266,10.3815223 10.1612888,10.4158866 10.0719417,10.4158866 C9.98259466,10.4158866 9.90355686,10.3815223 9.83482834,10.3127938 L9.83482834,10.3127938 L5.92809485,6.40509433 C4.98802554,7.34516364 3.68545904,8.64773014 2.02039535,10.3127938 C1.95166683,10.3815223 1.87262903,10.4158866 1.78328195,10.4158866 C1.69393487,10.4158866 1.61489707,10.3815223 1.54616855,10.3127938 L1.03070463,9.79732991 C0.961976106,9.72860138 0.927611845,9.64956358 0.927611845,9.5602165 C0.927611845,9.47086942 0.961976106,9.39183162 1.03070463,9.3231031 L5.08225102,5.27155671 L1.03070463,1.22001032 C0.961976106,1.1512818 0.927611845,1.07224399 0.927611845,0.982896916 C0.927611845,0.893549837 0.961976106,0.814512036 1.03070463,0.745783513 L1.54616855,0.230319596 C1.61489707,0.161591074 1.69393487,0.127226812 1.78328195,0.127226812 C1.87262903,0.127226812 1.95166683,0.161591074 2.02039535,0.230319596 L5.92761184,4.13822681 L9.83482834,0.230319596 C9.88637473,0.178773204 9.94372009,0.146556709 10.0068644,0.133670111 Z"
713
fillRule="nonzero"

packages/buffetjs-icons/src/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ export { default as Media } from './components/Media';
1313
export { default as NumberIcon } from './components/NumberIcon';
1414
export { default as Password } from './components/Password';
1515
export { default as Pencil } from './components/Pencil';
16+
export { default as Plus } from './components/Plus';
1617
export { default as Relation } from './components/Relation';
1718
export { default as Remove } from './components/Remove';
1819
export { default as RichText } from './components/RichText';

packages/buffetjs-styles/src/components/List/index.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,10 @@ const List = styled.div`
6969
vertical-align: middle;
7070
font-size: 1.3rem;
7171
line-height: 1.8rem;
72-
&:first-of-type {
72+
&:first-of-type:not(:last-of-type) {
7373
padding-left: calc(3rem + 0.75em);
74-
padding-left: ${sizes.margin * 2.8}px;
7574
}
76-
&:last-of-type {
75+
&:last-of-type:not(:first-of-type) {
7776
padding-right: calc(3rem + 0.75em);
7877
}
7978
}

0 commit comments

Comments
 (0)