-.flex {
- display: flex;
- flex-direction: column;
- justify-content: center;
+.grid {
+ display: grid;
+ grid-template-columns: repeat(12, 1fr);
}
.button {
+ grid-column: 1/13;
margin-bottom: 0.5em;
}
}
@media only screen and (min-width: 46.875em) {
- .flex {
- flex-direction: row;
- justify-content: flex-start;
- }
-
.button {
- flex-basis: 20%;
margin: 0.5em 0.5em 0.5em 0;
}
+ .button:nth-of-type(1) {
+ grid-column: 1/3;
+ }
+
+ .button:nth-of-type(2) {
+ grid-column: 3/5;
+ }
+
+ .button:nth-of-type(3) {
+ grid-column: 5/7;
+ }
+
.foodcard {
max-width: 60em;
margin: 0 auto;
<div cdkDropListGroup class="foodcard">
<div *ngFor="let title of foodcard.Titles; let i = index">
<app-title [title]="title"></app-title>
- <div class="flex">
+ <div class="grid">
<button class="button"
type="button"
(click)="insertMainSection(i)">Einfügen Hauptteil</button>