Skip to content
Snippets Groups Projects
Commit 35cbe1ce authored by rhenck's avatar rhenck
Browse files

[editor] Improve canvas section toolbar styling

parent f8480200
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,7 @@ import { UnitPageSection } from '../../../../../../../common/unit'; ...@@ -7,7 +7,7 @@ import { UnitPageSection } from '../../../../../../../common/unit';
@Component({ @Component({
selector: 'app-canvas-section-toolbar', selector: 'app-canvas-section-toolbar',
template: ` template: `
<div class="canvas-section-toolbar"> <div class="canvas-section-toolbar" fxLayout="row">
Seitenabschnitt Seitenabschnitt
<button mat-raised-button [disabled]="editMode" <button mat-raised-button [disabled]="editMode"
(click)="unitService.addSection()"> (click)="unitService.addSection()">
...@@ -23,24 +23,26 @@ import { UnitPageSection } from '../../../../../../../common/unit'; ...@@ -23,24 +23,26 @@ import { UnitPageSection } from '../../../../../../../common/unit';
Abschnitte verschieben Abschnitte verschieben
</mat-checkbox> </mat-checkbox>
<mat-form-field> <div fxLayout="column">
<mat-label>Breite</mat-label> <label for="breite">Breite</label>
<input matInput type="number" [(ngModel)]="section.width"> <input type="number" id="width" [(ngModel)]="section.width">
</mat-form-field> </div>
<mat-form-field> <div fxLayout="column">
<mat-label>Höhe</mat-label> <label>Höhe</label>
<input matInput type="number" [(ngModel)]="section.height"> <input type="number" id="height" [(ngModel)]="section.height">
</mat-form-field> </div>
<mat-form-field> <div fxLayout="column">
<mat-label>Hintergrundfarbe</mat-label> <label for="bg-color">Hintergrundfarbe</label>
<input matInput type="text" [(ngModel)]="section.backgroundColor"> <input type="text" id="bg-color" [(ngModel)]="section.backgroundColor">
</mat-form-field> </div>
</div> </div>
`, `,
styles: [ styles: [
'.canvas-section-toolbar {background-color: #9c9c9c; color: white; padding-left: 10px; font-size: large}', '.canvas-section-toolbar {background-color: #9c9c9c; color: white; padding-left: 10px; font-size: large}',
'.canvas-section-toolbar {align-items: center;}',
'.canvas-section-toolbar button {margin: 5px;}', '.canvas-section-toolbar button {margin: 5px;}',
'.canvas-section-toolbar mat-checkbox {margin-left: 15px}' '.canvas-section-toolbar mat-checkbox {margin-left: 15px; margin-right: 60px}',
'.canvas-section-toolbar input {width: 150px}'
] ]
}) })
export class CanvasSectionToolbarComponent implements OnInit { export class CanvasSectionToolbarComponent implements OnInit {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment