-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ingredient and recipie collapse design
- Loading branch information
1 parent
e86ecdc
commit 12f8b58
Showing
12 changed files
with
199 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,29 @@ | ||
import React from 'react'; | ||
import React, {PropTypes} from 'react'; | ||
import '../../styles/css/Ingredient.css'; | ||
|
||
let Ingredient = ({ingredient}) => { | ||
return( | ||
<li className="c-ingredient__item"> | ||
<span className="c-ingredient__name">{ingredient.name}</span> | ||
<button className="c-ingredient__delete">x</button> | ||
<button className="c-ingredient__edit">Edit</button> | ||
<svg | ||
className="c-ingredient__delete" | ||
onClick={()=>{}} | ||
xmlns="http://www.w3.org/2000/svg" | ||
viewBox="0 0 8 8"> | ||
<use xlinkHref="#trash"></use> | ||
</svg> | ||
<svg | ||
className="c-ingredient__edit" | ||
onClick={()=>{}} | ||
xmlns="http://www.w3.org/2000/svg" | ||
viewBox="0 0 8 8"> | ||
<use xlinkHref="#pencil"></use> | ||
</svg> | ||
</li> | ||
) | ||
} | ||
|
||
Ingredient.propTypes = { | ||
ingredient: PropTypes.object.isRequired | ||
} | ||
export default Ingredient; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,30 @@ | ||
.c-ingredient__item { | ||
padding: 5px; | ||
margin-bottom: 5px; | ||
display: flex; | ||
background-color: rgba(255, 255, 255, 0.2); } | ||
margin-bottom: 8px; | ||
padding: 5px; | ||
border-radius: 3px; | ||
background-color: rgba(255, 255, 255, 0.6); } | ||
.c-ingredient__item .c-ingredient__name { | ||
color: #293351; } | ||
.c-ingredient__item .c-ingredient__delete { | ||
margin-left: auto; } | ||
.c-ingredient__item .c-ingredient__delete { | ||
font-size: 1.1em; | ||
border: 0; | ||
margin-left: auto; | ||
width: 16px; | ||
height: 16px; | ||
fill: #ABB2C4; } | ||
.c-ingredient__item .c-ingredient__delete:hover { | ||
fill: #3A4973; | ||
cursor: pointer; } | ||
.c-ingredient__item .c-ingredient__edit { | ||
font-size: 1.1em; | ||
border: 0; | ||
fill: #ABB2C4; | ||
margin: auto 15px; | ||
width: 16px; | ||
height: 16px; } | ||
.c-ingredient__item .c-ingredient__edit:hover { | ||
cursor: pointer; | ||
fill: #3A4973; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,42 @@ | ||
@import "settings"; | ||
@import 'settings'; | ||
|
||
.c-ingredient__item{ | ||
padding: 5px; | ||
margin-bottom: 5px; | ||
.c-ingredient__item { | ||
display: flex; | ||
background-color: transparentize($color-white, .8); | ||
|
||
margin-bottom: 8px; | ||
padding: 5px; | ||
border-radius: 3px; | ||
background-color: transparentize($color-white, .4); | ||
|
||
.c-ingredient__name { | ||
color: darken($color-secondary-1-4, 10%); | ||
} | ||
|
||
.c-ingredient__delete { | ||
margin-left: auto; | ||
} | ||
.c-ingredient__delete{ | ||
font-size: 1.1em; | ||
border: 0; | ||
margin-left: auto; | ||
width: 16px; | ||
height: 16px; | ||
fill: $color-secondary-1-2; | ||
&:hover{ | ||
fill: $color-secondary-1-4; | ||
cursor: pointer; | ||
} | ||
} | ||
.c-ingredient__edit{ | ||
font-size: 1.1em; | ||
border: 0; | ||
fill: $color-secondary-1-2; | ||
margin: auto 15px; | ||
width: 16px; | ||
height: 16px; | ||
&:hover{ | ||
cursor: pointer; | ||
fill: $color-secondary-1-4; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters