From: Bastian Dehn Date: Thu, 9 Jun 2022 16:17:23 +0000 (+0200) Subject: add: food edit form design X-Git-Tag: v1.0^2~19^2~2 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=62678e53303d975887f064b927abfb71e5e8ebfc;p=speisekarten-editor.git add: food edit form design --- diff --git a/src/app/app.component.css b/src/app/app.component.css index 53125d5..7fd2219 100644 --- a/src/app/app.component.css +++ b/src/app/app.component.css @@ -38,87 +38,10 @@ h2 { font-size: 2em; } -.grid { - display: grid; - grid-template-columns: repeat(12, 1fr); -} - -.foodmenu { - text-align: center; -} - -.food { - grid-row: 1; - grid-column: 1/13; - font-size: 1.2em; - font-weight: bold; -} - -.sideDish { - grid-row: 2; - grid-column: 1/13; - font-style: italic; -} - -.price { - grid-row: 3; - grid-column: 1/13; - margin-top: 0.5em; -} - -.foodmenu .button:nth-child(odd) { - grid-column: 7/8; - text-align: center; -} - -.foodmenu .button:nth-child(even) { - grid-column: 6/7; - text-align: center; -} - @media only screen and (min-width: 46.875em) { h1, h2 { text-align: left; } - - .foodmenu { - padding: 0.5em 0; - border-bottom: 0.125em solid gray; - text-align: left; - } - - .food { - grid-row: 1; - grid-column: 1/9; - font-size: 1.5em; - } - - .sideDish { - grid-row: 2; - grid-column: 1/13; - } - - .price { - grid-row: 1; - grid-column: 9/13; - text-align: right; - font-size: 1.1em; - } - - .foodmenu .button:nth-child(4) { - grid-column: 1/2; - text-align: center; - } - - .foodmenu .button:nth-child(5) { - grid-column: 2/3; - text-align: center; - } - - .foodmenu .button:nth-child(6) { - grid-column: 3/4; - text-align: center; - } } @media only screen and (min-width: 60.625em) { diff --git a/src/app/app.component.html b/src/app/app.component.html index 89e9f6b..145c408 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -97,8 +97,7 @@ id="buttonFood" [disabled]="disableFoodButton()" (click)="addNewFood(title, i)">Speise hinzufügen -
+
-
{{food.sideDish}}
-
{{food.price}}
- - -
- - - - - - +
+
{{food.Food}}
+
{{food.sideDish}}
+
{{food.price}}
- + [disabled]="formFoodVisible" + (click)="editFood()">Bearbeiten + +
+ + + + + + + +
+