Skip to content

Commit 3b1b7d1

Browse files
committed
client: minor CSS fixes
1 parent 33b33ce commit 3b1b7d1

File tree

10 files changed

+37
-16
lines changed

10 files changed

+37
-16
lines changed

client/src/app/give-feedback/give-requested-feedback/give-requested-feedback.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ <h1 class="gbl-page-title">
3333

3434
<form [formGroup]="form" [appConfirmBeforeSubmit]="onSubmit.bind(this)" appConfirmBeforeSubmitConfig="sendFeedback">
3535
@if (anonymous) {
36-
<h3 class="gbl-title-large">
36+
<h3 class="app-give-requested-feedback__anonymous-heading">
3737
<mat-icon>voice_selection</mat-icon>
3838
<ng-container i18n="@@Component.GiveRequestedFeedback.You">Vous</ng-container>
3939
</h3>
@@ -51,7 +51,7 @@ <h3 class="gbl-title-large">
5151
<mat-icon matSuffix class="opacity-50">edit_off</mat-icon>
5252
</mat-form-field>
5353

54-
<h3 class="gbl-title-large">
54+
<h3 class="app-give-requested-feedback__anonymous-heading">
5555
<mat-icon>hearing</mat-icon>
5656
<ng-container i18n="@@Component.GiveRequestedFeedback.YourColleague">Votre collègue</ng-container>
5757
</h3>
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.app-give-requested-feedback {
2+
&__anonymous-heading {
3+
margin: 0 0 0.75em 0;
4+
display: flex;
5+
align-items: center;
6+
gap: 0.5rem;
7+
font: var(--mat-sys-title-large);
8+
letter-spacing: var(--mat-sys-title-large-tracking);
9+
}
10+
}

client/src/app/give-feedback/give-requested-feedback/give-requested-feedback.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ import { GiveRequestedFeedbackData } from './give-requested-feedback.types';
3636
],
3737
providers: [LeaveFormService],
3838
templateUrl: './give-requested-feedback.component.html',
39+
styleUrl: './give-requested-feedback.component.scss',
3940
encapsulation: ViewEncapsulation.None,
4041
})
4142
export class GiveRequestedFeedbackComponent implements GiveRequestedFeedbackData, LeaveForm, OnInit {

client/src/app/home/home.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<h1 class="gbl-landing__title" i18n="@@Title.AppTagline">Demandez et donnez du feedback à vos collègues</h1>
22

33
<div class="gbl-landing-links">
4-
<button class="gbl-landing-links__item gbl-title-medium" routerLink="/request">
4+
<button class="gbl-landing-links__item" routerLink="/request">
55
<mat-icon class="gbl-landing-links__icon">contact_support</mat-icon>
66
<ng-container i18n="@@Feedback.Request"> Demander </ng-container>
77
</button>
88

9-
<button class="gbl-landing-links__item gbl-title-medium" routerLink="/give">
9+
<button class="gbl-landing-links__item" routerLink="/give">
1010
<mat-icon class="gbl-landing-links__icon">chat</mat-icon>
1111
<ng-container i18n="@@Feedback.Give"> Donner </ng-container>
1212
</button>

client/src/app/sign-in/sign-in.component.html

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,7 @@ <h1 class="gbl-landing__title" i18n="@@Title.AppTagline">Demandez et donnez du f
22

33
@if (withGoogleEnabled) {
44
<div class="gbl-landing-links">
5-
<button
6-
class="gbl-landing-links__item gbl-title-medium"
7-
type="button"
8-
[disabled]="disabled()"
9-
(click)="signInWithGoogle()"
10-
>
5+
<button class="gbl-landing-links__item" type="button" [disabled]="disabled()" (click)="signInWithGoogle()">
116
<mat-icon class="gbl-landing-links__icon rounded-full bg-white" svgIcon="app-icon-google"></mat-icon>
127
<ng-container i18n="@@Action.SignInWithGoogle">Se connecter avec Google</ng-container>
138
</button>
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
<h2 class="gbl-title-large !mt-6 text-center">Users overview</h2>
1+
<h2 class="app-stats-details__heading !mt-6">Users overview</h2>
22
<div echarts [theme]="chartTheme()" [options]="usersOverviewChartOptions()" class="app-stats-details__chart"></div>
33

4-
<h2 class="gbl-title-large text-center">Givers and receivers</h2>
4+
<h2 class="app-stats-details__heading">Givers and receivers</h2>
55
<div echarts [theme]="chartTheme()" [options]="giversAndReceiversChartOptions()" class="app-stats-details__chart"></div>
66

7-
<h2 class="gbl-title-large text-center">FeedZbacks</h2>
7+
<h2 class="app-stats-details__heading">FeedZbacks</h2>
88
<div echarts [theme]="chartTheme()" [options]="feedbacksChartOptions()" class="app-stats-details__chart"></div>

client/src/app/stats/stats-details/stats-details.component.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
.app-stats-details {
2+
&__heading {
3+
margin: 0 0 0.5em 0;
4+
font: var(--mat-sys-title-large);
5+
letter-spacing: var(--mat-sys-title-large-tracking);
6+
text-align: center;
7+
}
8+
29
&__chart {
310
height: max(33vh, 320px);
411
}

client/src/app/stats/stats-summary/stats-summary.component.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<mat-slide-toggle [checked]="showLegend()" (toggleChange)="toggleLegend()">Show legend</mat-slide-toggle>
33
</p>
44

5-
<h2 class="gbl-title-large !mt-6">Users</h2>
5+
<h2 class="app-stats-summary__heading !mt-6">Users</h2>
66
<ul class="gbl-list">
77
<li class="gbl-list__item">
88
<strong>{{ summary().uniqueUsers }}</strong> unique users
@@ -48,7 +48,7 @@ <h2 class="gbl-title-large !mt-6">Users</h2>
4848
</li>
4949
</ul>
5050

51-
<h2 class="gbl-title-large">FeedZbacks</h2>
51+
<h2 class="app-stats-summary__heading">FeedZbacks</h2>
5252
<ul class="gbl-list">
5353
<li class="gbl-list__item">
5454
<strong>{{ summary().spontaneousFeedback }}</strong> spontaneous feedZbacks
@@ -81,7 +81,7 @@ <h2 class="gbl-title-large">FeedZbacks</h2>
8181
</li>
8282
</ul>
8383

84-
<h2 class="gbl-title-large">Period</h2>
84+
<h2 class="app-stats-summary__heading">Period</h2>
8585
<ul class="gbl-list">
8686
<li class="gbl-list__item">
8787
From <strong>{{ period().start }}</strong> to <strong>{{ period().end }}</strong>

client/src/app/stats/stats-summary/stats-summary.component.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
.app-stats-summary {
2+
&__heading {
3+
margin: 0 0 0.5em 0;
4+
font: var(--mat-sys-title-large);
5+
letter-spacing: var(--mat-sys-title-large-tracking);
6+
}
7+
28
&__legend {
39
margin-bottom: 0.75rem;
410
font: var(--mat-sys-label-large);

client/src/styles/landing.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@
8888
border: 1px solid var(--mat-sys-outline-variant);
8989
background: var(--mat-sys-primary);
9090
color: var(--mat-sys-on-primary);
91+
font: var(--mat-sys-title-medium);
92+
letter-spacing: var(--mat-sys-title-medium-tracking);
9193
transition: all 150ms ease-in-out;
9294

9395
@include m.media-breakpoint-down(md) {

0 commit comments

Comments
 (0)