aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+reset-password
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-06-16 16:10:12 +0200
committerChocobozzz <me@florianbigard.com>2022-06-16 16:16:51 +0200
commitc4a051712bc7385967a21895d025962e317c7870 (patch)
tree59017cae7a6bff45216694dc44a65f72e9ad48c2 /client/src/app/+reset-password
parentef2b5520f963deec43abd0a11881473c45965788 (diff)
downloadPeerTube-c4a051712bc7385967a21895d025962e317c7870.tar.gz
PeerTube-c4a051712bc7385967a21895d025962e317c7870.tar.zst
PeerTube-c4a051712bc7385967a21895d025962e317c7870.zip
Cleanup title-page CSS
Diffstat (limited to 'client/src/app/+reset-password')
-rw-r--r--client/src/app/+reset-password/reset-password.component.html37
-rw-r--r--client/src/app/+reset-password/reset-password.component.scss9
2 files changed, 21 insertions, 25 deletions
diff --git a/client/src/app/+reset-password/reset-password.component.html b/client/src/app/+reset-password/reset-password.component.html
index 1910ebd15..130873593 100644
--- a/client/src/app/+reset-password/reset-password.component.html
+++ b/client/src/app/+reset-password/reset-password.component.html
@@ -1,31 +1,32 @@
1<div class="margin-content"> 1<div class="margin-content">
2 <div i18n class="title-page title-page-single"> 2 <h1 i18n class="title-page">Reset my password</h1>
3 Reset my password
4 </div>
5 3
6 <form role="form" (ngSubmit)="resetPassword()" [formGroup]="form"> 4 <form role="form" (ngSubmit)="resetPassword()" [formGroup]="form">
7 <div class="form-group"> 5 <div class="form-group">
8 <label i18n for="password">Password</label> 6 <label i18n for="password">Password</label>
9 <my-input-text formControlName="password" inputId="password" 7
10 i18n-placeholder placeholder="Password" 8 <my-input-text
11 [ngClass]="{ 'input-error': formErrors['password'] }" 9 formControlName="password" inputId="password" i18n-placeholder placeholder="Password"
12 autocomplete="new-password"></my-input-text> 10 [ngClass]="{ 'input-error': formErrors['password'] }" autocomplete="new-password"
13 <div *ngIf="formErrors.password" class="form-error"> 11 ></my-input-text>
14 {{ formErrors.password }} 12
15 </div> 13 <div *ngIf="formErrors.password" class="form-error">{{ formErrors.password }}</div>
16 </div> 14 </div>
17 15
18 <div class="form-group"> 16 <div class="form-group">
19 <label i18n for="password-confirm">Confirm password</label> 17 <label i18n for="password-confirm">Confirm password</label>
20 <my-input-text formControlName="password-confirm" inputId="password-confirm" 18
21 i18n-placeholder placeholder="Confirmed password" 19 <my-input-text
22 [ngClass]="{ 'input-error': formErrors['password-confirm'] }" 20 formControlName="password-confirm" inputId="password-confirm" i18n-placeholder placeholder="Confirmed password"
23 autocomplete="new-password"></my-input-text> 21 [ngClass]="{ 'input-error': formErrors['password-confirm'] }" autocomplete="new-password"
24 <div *ngIf="formErrors['password-confirm']" class="form-error"> 22 ></my-input-text>
25 {{ formErrors['password-confirm'] }} 23
26 </div> 24 <div *ngIf="formErrors['password-confirm']" class="form-error">{{ formErrors['password-confirm'] }}</div>
27 </div> 25 </div>
28 26
29 <input type="submit" i18n-value value="Reset my password" [disabled]="!form.valid || !isConfirmedPasswordValid()"> 27 <input
28 class="peertube-button orange-button" type="submit" i18n-value value="Reset my password"
29 [disabled]="!form.valid || !isConfirmedPasswordValid()"
30 >
30 </form> 31 </form>
31</div> 32</div>
diff --git a/client/src/app/+reset-password/reset-password.component.scss b/client/src/app/+reset-password/reset-password.component.scss
index 5494e29c6..dd981ca39 100644
--- a/client/src/app/+reset-password/reset-password.component.scss
+++ b/client/src/app/+reset-password/reset-password.component.scss
@@ -1,12 +1,7 @@
1@use '_variables' as *; 1@use '_variables' as *;
2@use '_mixins' as *; 2@use '_mixins' as *;
3 3
4input:not([type=submit]) { 4my-input-text {
5 @include peertube-input-text(340px); 5 max-width: 340px;
6 display: block; 6 display: block;
7} 7}
8
9input[type=submit] {
10 @include peertube-button;
11 @include orange-button;
12}