background-color: #fff6e6;
}
+.flex {
+ display: flex;
+ justify-content: center;
+}
+
.button {
- display: inline-block;
- margin: 0.5em 0;
+ flex-basis: 15%;
+ margin: 0.5em;
}
.form {
}
@media only screen and (min-width: 46.875em) {
+ .flex {
+ justify-content: flex-start;
+ }
+
h1 {
text-align: left;
}
<div class="title" [class.active]="formTitleVisible">
<h1>{{title.Title}}</h1>
- <button class="button"
- type="button"
- (click)="editTitle()">Bearbeiten</button>
+ <div class="flex">
+ <button class="button"
+ type="button"
+ (click)="editTitle()">Bearbeiten</button>
+ </div>
<form #formTitle="ngForm" *ngIf="formTitleVisible"
(keypress)="onKeypressEnter($event)"
class="form">
</form>
<div *ngFor="let subtitle of title.Subtitles; let i = index">
<app-subtitle [subtitle]="subtitle"></app-subtitle>
- <button class="button"
- type="button"
- (click)="insertSubSection(i)">Einfügen Unterteil</button>
- <button class="button"
- type="button"
- (click)="removeSubSection(i)">Lösche Unterteil</button>
+ <div class="flex">
+ <button class="button"
+ type="button"
+ (click)="insertSubSection(i)">Einfügen Unterteil</button>
+ <button class="button"
+ type="button"
+ (click)="removeSubSection(i)">Lösche Unterteil</button>
+ </div>
</div>
</div>