Use factorized style.
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
<div class="description">{{data.description}}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="actions">
|
||||
<div class="dialog-actions">
|
||||
<button class="stroked" (click)="cancel()">Annuler</button>
|
||||
<button class="stroked"
|
||||
(click)="confirm()"
|
||||
|
||||
@@ -32,14 +32,4 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
.actions {
|
||||
margin-top: 1rem;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
|
||||
> * {
|
||||
flex: 1 1 45%;
|
||||
max-width: 45%;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -6,7 +6,7 @@ nav {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
height: 3.2rem;
|
||||
background-color: #eee; //#666;
|
||||
background-color: #eee;
|
||||
|
||||
.left {
|
||||
position: absolute;
|
||||
@@ -35,7 +35,7 @@ nav {
|
||||
|
||||
&.selectionMode {
|
||||
font-weight: bold;
|
||||
background-color: #185eb4;
|
||||
background-color: var(--selection);
|
||||
color: white;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
|
||||
@@ -9,8 +9,8 @@
|
||||
</mat-error>
|
||||
</mat-form-field>
|
||||
</p>
|
||||
<div class="actions">
|
||||
<button class="raised" type="button" (click)="close()">Annuler</button>
|
||||
<button class="raised" type="submit">Créer une liste</button>
|
||||
<div class="dialog-actions">
|
||||
<button class="stroked primary" type="button" (click)="close()">Annuler</button>
|
||||
<button class="stroked primary" type="submit">Créer une liste</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
@@ -4,9 +4,4 @@ form {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
.actions {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
}
|
||||
}
|
||||
@@ -9,8 +9,8 @@
|
||||
</mat-error>
|
||||
</mat-form-field>
|
||||
</p>
|
||||
<div class="actions">
|
||||
<button class="raised" type="button" (click)="close()">Annuler</button>
|
||||
<button class="raised" type="submit">Renommer la liste</button>
|
||||
<div class="dialog-actions">
|
||||
<button class="stroked" type="button" (click)="close()">Annuler</button>
|
||||
<button class="stroked" type="submit">Renommer la liste</button>
|
||||
</div>
|
||||
</form>
|
||||
@@ -4,9 +4,4 @@ form {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
.actions {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
}
|
||||
}
|
||||
@@ -62,7 +62,7 @@ export class TaskListsComponent implements OnInit, OnDestroy {
|
||||
this._dialog.open(
|
||||
RenameTaskListComponent,
|
||||
{
|
||||
width: '20rem'
|
||||
width: '25rem'
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
@@ -22,6 +22,8 @@
|
||||
--alert-text: #fff;
|
||||
--alert-hover: #c20d2b;
|
||||
--alert-border: #b91b35;
|
||||
|
||||
--selection: #185eb4;
|
||||
}
|
||||
|
||||
html {
|
||||
@@ -124,3 +126,14 @@ button {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.dialog-actions {
|
||||
margin-top: 1rem;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
|
||||
> * {
|
||||
flex: 1 1 45%;
|
||||
max-width: 45%;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user