styling popup

This commit is contained in:
Tykayn 2021-12-17 15:04:13 +01:00 committed by tykayn
parent 4587d3eb52
commit 13e97e7b60
4 changed files with 16 additions and 13 deletions

View File

@ -127,21 +127,16 @@
</ng-template> </ng-template>
<ng-template pTemplate="footer"> <ng-template pTemplate="footer">
<div class="columns"> <div class="columns">
<div class="column has-no-padding is-half-mobile"> <div class="column has-no-padding">
<button
class="button is-fullwidth cancel-button-confirm is-outlined"
(click)="focusOnCancelButton()"
>
Non
</button>
</div>
<div class="column has-no-padding is-half-mobile">
<button <button
class="button is-primary is-fullwidth cancel-button-reject-bottom pull-right" class="button is-primary is-fullwidth cancel-button-reject-bottom pull-right"
(click)="goToHome()" (click)="goToHome()"
> >
Oui, annuler sondage Oui, annuler sondage
</button> </button>
<button class="button cancel-button-confirm is-outlined pull-right" (click)="focusOnCancelButton()">
Non
</button>
</div> </div>
</div> </div>
</ng-template> </ng-template>

View File

@ -77,6 +77,7 @@
.cancel-button-reject-bottom { .cancel-button-reject-bottom {
background: $secondary_color; background: $secondary_color;
color: $white; color: $white;
margin-left: 2rem;
} }
.step-info { .step-info {
@ -104,15 +105,21 @@
.step-counter-text { .step-counter-text {
font-weight: 600; font-weight: 600;
color: $d-blue-700;
} }
.top {
height: 2rem;
}
.cancel-button-reject { .cancel-button-reject {
background: none; background: none;
color: $secondary_color;
margin-right: -1rem;
i {
margin-left: 1ch;
}
} }
.cancel-button-reject,
.cancel-button-confirm { .cancel-button-confirm {
display: block !important;
width: 100%;
color: $secondary_color; color: $secondary_color;
} }
} }

View File

@ -19,7 +19,7 @@ export class StepperComponent {
public step_max: number = 5; public step_max: number = 5;
public environment = environment; public environment = environment;
public show_shortcuts = environment.showStepperShortcuts; public show_shortcuts = environment.showStepperShortcuts;
display_cancel_dialog: boolean; display_cancel_dialog: boolean = true;
constructor( constructor(
public pollService: PollService, public pollService: PollService,

View File

@ -36,6 +36,7 @@ body {
.p-dialog { .p-dialog {
font-family: $title_font !important; font-family: $title_font !important;
max-width: $widescreen-width-main-column;
.p-dialog-header { .p-dialog-header {
color: $primary_color !important; color: $primary_color !important;