Use factorized style.

This commit is contained in:
2022-03-06 14:42:24 +01:00
parent ba11f17531
commit 9b56dddab9
9 changed files with 24 additions and 31 deletions

View File

@@ -6,7 +6,7 @@
<div class="description">{{data.description}}</div> <div class="description">{{data.description}}</div>
</div> </div>
</div> </div>
<div class="actions"> <div class="dialog-actions">
<button class="stroked" (click)="cancel()">Annuler</button> <button class="stroked" (click)="cancel()">Annuler</button>
<button class="stroked" <button class="stroked"
(click)="confirm()" (click)="confirm()"

View File

@@ -32,14 +32,4 @@
} }
} }
} }
.actions {
margin-top: 1rem;
display: flex;
justify-content: space-between;
> * {
flex: 1 1 45%;
max-width: 45%;
}
}
} }

View File

@@ -6,7 +6,7 @@ nav {
display: flex; display: flex;
align-items: center; align-items: center;
height: 3.2rem; height: 3.2rem;
background-color: #eee; //#666; background-color: #eee;
.left { .left {
position: absolute; position: absolute;
@@ -35,7 +35,7 @@ nav {
&.selectionMode { &.selectionMode {
font-weight: bold; font-weight: bold;
background-color: #185eb4; background-color: var(--selection);
color: white; color: white;
display: flex; display: flex;
justify-content: center; justify-content: center;

View File

@@ -9,8 +9,8 @@
</mat-error> </mat-error>
</mat-form-field> </mat-form-field>
</p> </p>
<div class="actions"> <div class="dialog-actions">
<button class="raised" type="button" (click)="close()">Annuler</button> <button class="stroked primary" type="button" (click)="close()">Annuler</button>
<button class="raised" type="submit">Créer une liste</button> <button class="stroked primary" type="submit">Créer une liste</button>
</div> </div>
</form> </form>

View File

@@ -4,9 +4,4 @@ form {
width: 100%; width: 100%;
} }
} }
.actions {
display: flex;
flex-direction: row;
justify-content: space-between;
}
} }

View File

@@ -9,8 +9,8 @@
</mat-error> </mat-error>
</mat-form-field> </mat-form-field>
</p> </p>
<div class="actions"> <div class="dialog-actions">
<button class="raised" type="button" (click)="close()">Annuler</button> <button class="stroked" type="button" (click)="close()">Annuler</button>
<button class="raised" type="submit">Renommer la liste</button> <button class="stroked" type="submit">Renommer la liste</button>
</div> </div>
</form> </form>

View File

@@ -4,9 +4,4 @@ form {
width: 100%; width: 100%;
} }
} }
.actions {
display: flex;
flex-direction: row;
justify-content: space-between;
}
} }

View File

@@ -62,7 +62,7 @@ export class TaskListsComponent implements OnInit, OnDestroy {
this._dialog.open( this._dialog.open(
RenameTaskListComponent, RenameTaskListComponent,
{ {
width: '20rem' width: '25rem'
} }
); );
} }

View File

@@ -22,6 +22,8 @@
--alert-text: #fff; --alert-text: #fff;
--alert-hover: #c20d2b; --alert-hover: #c20d2b;
--alert-border: #b91b35; --alert-border: #b91b35;
--selection: #185eb4;
} }
html { html {
@@ -124,3 +126,14 @@ button {
} }
} }
} }
.dialog-actions {
margin-top: 1rem;
display: flex;
justify-content: space-between;
> * {
flex: 1 1 45%;
max-width: 45%;
}
}