From 8998ee2d9ee1a73a7cf1669745c57295cd08f7c5 Mon Sep 17 00:00:00 2001 From: Tykayn Date: Thu, 10 Mar 2022 11:06:18 +0100 Subject: [PATCH] uniform titles --- .../core/components/home/home.component.html | 2 +- .../core/components/home/home.component.scss | 4 - src/app/core/services/poll.service.ts | 6 +- .../advanced-config.component.html | 22 +- .../advanced-config.component.scss | 8 +- .../date/list/time/time-list.component.ts | 13 +- .../steps/step-five/step-five.component.scss | 6 - .../steps/step-four/step-four.component.html | 8 +- .../steps/step-four/step-four.component.ts | 13 ++ .../steps/step-six/step-six.component.html | 2 +- .../step-three/step-three.component.html | 20 +- .../step-three/step-three.component.scss | 10 - .../steps/step-two/step-two.component.scss | 5 - .../stepper/stepper.component.html | 2 +- .../stepper/stepper.component.scss | 6 - .../consultation/consultation.component.scss | 3 - .../ciphering/ciphering.component.scss | 4 - .../page-not-found.component.scss | 3 - .../language-selector.component.html | 2 +- src/environments/environment.ts | 2 +- src/styles/dev-utilities/_helpers.scss | 3 + src/styles/libraries/_frameworks.scss | 8 +- src/styles/partials/_buttons.scss | 15 +- src/styles/partials/_datepicker.scss | 6 - src/styles/partials/_forms.scss | 19 +- src/styles/partials/_tables.scss | 7 - src/styles/partials/_typo.scss | 69 +++--- src/styles/themes/_dark.scss | 208 +++++++++--------- src/styles/themes/_high-contrast.scss | 42 ++-- src/styles/variables.scss | 7 + 30 files changed, 256 insertions(+), 269 deletions(-) diff --git a/src/app/core/components/home/home.component.html b/src/app/core/components/home/home.component.html index a5e79ec7..5264ba4d 100644 --- a/src/app/core/components/home/home.component.html +++ b/src/app/core/components/home/home.component.html @@ -85,7 +85,7 @@
-

+

{{ 'advanced.password_title' | translate }}

@@ -103,7 +103,7 @@
-

+

{{ 'advanced.allowances_title' | translate }}

@@ -151,7 +151,7 @@
-

+

{{ 'advanced.notifications_title' | translate }}

@@ -200,7 +200,7 @@

-

+

{{ 'advanced.password_title' | translate }}

@@ -209,7 +209,7 @@
-

+

Notifications

@@ -220,7 +220,7 @@ Vous recevrez un mail à chaque nouveau commentaire
-

+

Réponses proposées

@@ -238,7 +238,7 @@
-

+

Restrictions visiteurs

@@ -256,7 +256,7 @@

-

+

Fonctionnalités pas encore disponibles:

@@ -292,7 +292,7 @@

-

+

Saisissez la date de fin de votre sondage

diff --git a/src/app/features/administration/form/advanced-config/advanced-config.component.scss b/src/app/features/administration/form/advanced-config/advanced-config.component.scss index 119db52b..f4bb2616 100644 --- a/src/app/features/administration/form/advanced-config/advanced-config.component.scss +++ b/src/app/features/administration/form/advanced-config/advanced-config.component.scss @@ -49,19 +49,13 @@ background: #fff; margin: 0; float: left; - width: 59%; + width: 55%; line-height: 1.5rem; overflow: hidden; text-overflow: ellipsis; border: 0 !important; } - .title-advanced { - font-size: 20px !important; - line-height: 23px !important; - color: $secondary_color; - margin-bottom: 1rem; - } .password-box { label { margin-left: 0; diff --git a/src/app/features/administration/form/date/list/time/time-list.component.ts b/src/app/features/administration/form/date/list/time/time-list.component.ts index 5a8f589a..59e143ae 100644 --- a/src/app/features/administration/form/date/list/time/time-list.component.ts +++ b/src/app/features/administration/form/date/list/time/time-list.component.ts @@ -3,6 +3,8 @@ import { ChangeDetectorRef, Component, Inject, Input, OnInit } from '@angular/co import { moveItemInArray, transferArrayItem } from '@angular/cdk/drag-drop'; import { DOCUMENT } from '@angular/common'; import { TimeSlices } from '../../../../../../core/models/dateChoice.model'; +import { ToastService } from '../../../../../../core/services/toast.service'; +import { TranslateService } from '@ngx-translate/core'; @Component({ selector: 'app-time-list', @@ -15,7 +17,12 @@ export class TimeListComponent implements OnInit { @Input() public prefix_choice_id = ''; - constructor(@Inject(DOCUMENT) private document: any, private cd: ChangeDetectorRef) {} + constructor( + @Inject(DOCUMENT) private document: any, + private cd: ChangeDetectorRef, + private toastService: ToastService, + private translate: TranslateService + ) {} ngOnInit(): void {} @@ -36,6 +43,10 @@ export class TimeListComponent implements OnInit { removeTime(id: number) { this.timeSlices.splice(id, 1); this.focusOnLastField(); + this.translate.get('success.deleted_option').subscribe((resp) => { + console.log('resp', resp); + this.toastService.display(`${resp}`); + }); } focusOnFieldNumber(fieldId: number) { diff --git a/src/app/features/administration/form/steps/step-five/step-five.component.scss b/src/app/features/administration/form/steps/step-five/step-five.component.scss index 49e139dc..e04eca8b 100644 --- a/src/app/features/administration/form/steps/step-five/step-five.component.scss +++ b/src/app/features/administration/form/steps/step-five/step-five.component.scss @@ -1,12 +1,6 @@ @import '../../../../../../styles/variables'; .step-five { - .title-step { - font-weight: bold; - font-size: 32px; - line-height: 37px; - margin-bottom: 1rem !important; - } .decription { margin-bottom: 2rem; } diff --git a/src/app/features/administration/form/steps/step-four/step-four.component.html b/src/app/features/administration/form/steps/step-four/step-four.component.html index 9c4b881e..d0d56495 100644 --- a/src/app/features/administration/form/steps/step-four/step-four.component.html +++ b/src/app/features/administration/form/steps/step-four/step-four.component.html @@ -4,7 +4,7 @@

-

+

{{ 'hours.title' | translate }}

@@ -64,7 +64,7 @@
- @@ -84,7 +84,7 @@
+ diff --git a/src/app/features/administration/form/steps/step-three/step-three.component.scss b/src/app/features/administration/form/steps/step-three/step-three.component.scss index 189dd1c1..04e9acb0 100644 --- a/src/app/features/administration/form/steps/step-three/step-three.component.scss +++ b/src/app/features/administration/form/steps/step-three/step-three.component.scss @@ -13,16 +13,6 @@ margin-top: 1em; } -.is-secondary { - border-color: $primary-color; - color: $primary-color; - - &:hover { - background: $primary_color; - color: $white; - } -} - .date-input-selector { padding: 0.25rem 1rem; } diff --git a/src/app/features/administration/form/steps/step-two/step-two.component.scss b/src/app/features/administration/form/steps/step-two/step-two.component.scss index 4305fe11..23c08cdc 100644 --- a/src/app/features/administration/form/steps/step-two/step-two.component.scss +++ b/src/app/features/administration/form/steps/step-two/step-two.component.scss @@ -1,10 +1,5 @@ @import '../../../../../../styles/variables'; .poll-kind { - .title { - margin-bottom: 32px; - font-size: 32px; - line-height: 36.8px; - } } .kind-of-poll { min-height: 30vh; diff --git a/src/app/features/administration/stepper/stepper.component.html b/src/app/features/administration/stepper/stepper.component.html index 401f3316..e995b6f9 100644 --- a/src/app/features/administration/stepper/stepper.component.html +++ b/src/app/features/administration/stepper/stepper.component.html @@ -114,7 +114,7 @@