Ajout de style sur les tableaux

+ ajout de transition sur la navigation
This commit is contained in:
Sébastien André
2020-01-15 17:04:26 +01:00
parent a789779116
commit 42c76141e6
14 changed files with 73 additions and 21 deletions

View File

@@ -1,5 +1,8 @@
body {
margin: 10px;
color: #424242;
height: 600px;
overflow: auto;
}
.hamburger__icon {
@@ -12,38 +15,37 @@ body {
}
.hamburger__icon__fill {
fill: #594e78
fill: #424242
}
.side-menu-disactive {
display: none !important;
}
.side-menu-active {
display: '' !important;
.navigation.side-menu-active {
left: 0px;
}
.navigation {
border: 1px red solid;
position: absolute;
width: 200px;
overflow: hidden;
z-index: 50;
background-color: grey;
height: 600px;
padding: 5px;
left: -220px;
transition: 0.5s linear left;
-webkit-transition: 0.5s linear left;
}
.navigation ul {
list-style: none;
padding: 0;
}
.navigation ul li {
margin: 5px;
margin: 10px;
}
.navigation ul li a {
text-decoration: none;
cursor: pointer;
color: black;
color: #424242;
}

View File

@@ -11,7 +11,7 @@
<h2 style="display: inline;">{{ title }}</h2>
<nav class="navigation" [ngClass]="{'side-menu-active': showMenu, 'side-menu-disactive': !showMenu}">
<nav class="navigation" [ngClass]="{'side-menu-active': showMenu}">
<ul>
<li><a routerLink="/summary" routerLinkActive="active" (click)="toggleMenu()" skipLocationChange>Summary</a>
</li>

View File

@@ -9,6 +9,7 @@ import { ServiceComm } from '../services/service-comm.service';
export class AppComponent implements OnInit {
title = 'app';
showMenu = false;
// showMenu = true;
constructor(private serviceComm: ServiceComm) { }

View File

@@ -7,3 +7,13 @@ table {
height: 600px;
overflow: auto;
}
.mat-row td {
padding: 15px;
}
.spanWithBreakWord {
display: inline-block;
min-width: 200px;
word-wrap: break-word;
}

View File

@@ -13,7 +13,7 @@
<td mat-cell *matCellDef="let element">{{element.name}}</td>
</ng-container>
<tr mat-header-row *matHeaderRowDef="displayedColumns; sticky: true"></tr>
<tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
<tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>
</table>
</div>

View File

@@ -50,7 +50,7 @@
<td mat-cell *matCellDef="let element">{{element.type}}</td>
</ng-container>
<tr mat-header-row *matHeaderRowDef="displayedColumns; sticky: true"></tr>
<tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
<tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>
</table>
</div>

View File

@@ -7,3 +7,13 @@ table {
height: 600px;
overflow: auto;
}
.mat-row td {
padding: 15px;
}
.spanWithBreakWord {
display: inline-block;
min-width: 200px;
word-wrap: break-word;
}

View File

@@ -38,7 +38,7 @@
<td mat-cell *matCellDef="let element">{{element.reserveCanopy}}</td>
</ng-container>
<tr mat-header-row *matHeaderRowDef="displayedColumns; sticky: true"></tr>
<tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
<tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>
</table>
</div>

View File

@@ -7,3 +7,13 @@ table {
height: 600px;
overflow: auto;
}
.mat-row td {
padding: 15px;
}
.spanWithBreakWord {
display: inline-block;
min-width: 200px;
word-wrap: break-word;
}

View File

@@ -13,7 +13,7 @@
<td mat-cell *matCellDef="let element">{{element.name}}</td>
</ng-container>
<tr mat-header-row *matHeaderRowDef="displayedColumns; sticky: true"></tr>
<tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
<tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>
</table>
</div>

View File

@@ -7,3 +7,13 @@ table {
height: 600px;
overflow: auto;
}
.mat-row td {
padding: 15px;
}
.spanWithBreakWord {
display: inline-block;
min-width: 200px;
word-wrap: break-word;
}

View File

@@ -27,7 +27,7 @@
<td mat-cell *matCellDef="let element">{{element.gear.name}}</td>
</ng-container>
<tr mat-header-row *matHeaderRowDef="displayedColumns; sticky: true"></tr>
<tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
<tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>
</table>
</div>

View File

@@ -1,15 +1,24 @@
.example-container {
.formNewJumps {
display: flex;
flex-direction: column;
min-width: 150px;
max-width: 500px;
width: 100%;
background-color: black;
color: white;
/* color: white; */
padding: 15px
}
.example-container>* {
.formNewJumps>* {
width: 100%;
}
mat-form-field.mat-form-field {
font-size: 16px;
}
mat-label {
color: #424242;
}

View File

@@ -1,4 +1,4 @@
<form class="example-container" (ngSubmit)="onFormSubmit()">
<form class="formNewJumps" (ngSubmit)="onFormSubmit()">
<mat-form-field>
<mat-label>Choose the jump type</mat-label>
<input type="text" matInput [matAutocomplete]="autoJumpType" [(ngModel)]="selectedJumpType" name="selectedJumpType">