diff --git a/app/pages/food/style.styl b/app/pages/food/style.styl index 0b1181f..a07d8f3 100644 --- a/app/pages/food/style.styl +++ b/app/pages/food/style.styl @@ -8,6 +8,10 @@ color: #888 transform: scale(.9) transition: all .2s + .input-field label.active + transform: translateY(-120%) + .input-field.col label + left: 0 .food-filter display: flex @@ -42,4 +46,96 @@ padding-left: 26px .foods - padding-top: 3em + display: flex + padding: 3em + flex-wrap: wrap + + .card-panel + flex-grow: 1 + display: flex + padding: 0 + margin: .5em + align-items: center + cursor: pointer + transition: all .2s + &:hover + transform: scale(.95) + .health + background-color: green + width: 3em + min-width: @width + min-height: @width + height: 100% + display: flex + align-items: center + justify-content: center + i + color: white + h5 + font-size: 1.4em + margin: .3em .7em + + // "Add new food" button + &.add + background-color: blue + color: white + +above(500px) + max-width: 17em + i + font-size: 2.5em + .health + background-color: alpha(black, .27) + + + +.food-crud + font-size: 1.1em + padding: 1em + border: 1px solid lightgray + my-box-shadow() + background: white + [type="radio"]:not(:checked)+label, [type="radio"]:checked+label + padding-left: 1.7em + padding-right: 1em + .grade + margin-bottom: 2em + h4 + margin: 5px 0 25px 0 + p + font-size: 1.1em + font-weight: 500 + color: #BBB + margin-bottom: 5px + a.btn + width: 48% + .orange + float: right + + .nutrition + margin-bottom: 1.5em + td + padding: .5em 5px + td:first-child + font-weight: 500 + width: 50% + + + +.modal_ .editContent + display: none +.modal_.editMode .editContent + display: inline + +.modal_ + align-items: center + justify-content: center + display: none; /* Hidden by default */ + position: fixed; /* Stay in place */ + z-index: 1; /* Sit on top */ + left: 0; + top: 0; + width: 100%; /* Full width */ + height: 100%; /* Full height */ + overflow: auto; /* Enable scroll if needed */ + background-color: rgb(0,0,0); /* Fallback color */ + background-color: rgba(0,0,0,0.4); /* Black w/ opacity */ diff --git a/app/pages/food/view.html b/app/pages/food/view.html index 2ab3c69..b81a390 100644 --- a/app/pages/food/view.html +++ b/app/pages/food/view.html @@ -60,52 +60,126 @@
By Grade
+
+ +
+
+ add +
+
Add new food
+
+ +
+
+ favorite +
+
{{n}}
+
+ +
+ + + +