Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Registration css fixes

Chocobozzz4c8a099198cd
diff --git a/client/src/app/+signup/+register/custom-stepper.component.scss b/client/src/app/+signup/+register/custom-stepper.component.scss
index dfbdc863b4..29ed3e194c 100644
--- a/client/src/app/+signup/+register/custom-stepper.component.scss
+++ b/client/src/app/+signup/+register/custom-stepper.component.scss
@@ -5,8 +5,8 @@
$index-block-height: 40px;
header {
- margin-bottom: 40px;
- padding-bottom: 60px;
+ margin-bottom: 30px;
+ padding-bottom: 25px;
width: 100%;
background-color: pvar(--mainColorVeryLight);
}
diff --git a/client/src/app/+signup/+register/register.component.html b/client/src/app/+signup/+register/register.component.html
index 442c65e2d8..4094f24cf0 100644
--- a/client/src/app/+signup/+register/register.component.html
+++ b/client/src/app/+signup/+register/register.component.html
@@ -27,7 +27,7 @@
<strong>I already have an account</strong>, I log in
</a>
- <button i18n cdkStepperNext>I create an account</button>
+ <button i18n cdkStepperNext>Create an account</button>
</div>
</cdk-step>
diff --git a/client/src/app/+signup/+register/register.component.scss b/client/src/app/+signup/+register/register.component.scss
index c706d6955d..9904e4ab4e 100644
--- a/client/src/app/+signup/+register/register.component.scss
+++ b/client/src/app/+signup/+register/register.component.scss
@@ -1,6 +1,10 @@
@use '_variables' as *;
@use '_mixins' as *;
+my-signup-step-title strong {
+ font-weight: $font-bold;
+}
+
.signup-disabled {
padding-top: 30vh;
}
@@ -8,11 +12,12 @@
.title-page-v2 {
background-color: pvar(--mainColorVeryLight);
margin: 0;
+ padding-bottom: 10px;
}
my-instance-about-accordion {
display: block;
- margin-bottom: 25px;
+ margin-bottom: 30px;
}
.step-buttons {
diff --git a/client/src/app/+signup/+register/register.component.ts b/client/src/app/+signup/+register/register.component.ts
index 396b27e5ae..4ab327b1bf 100644
--- a/client/src/app/+signup/+register/register.component.ts
+++ b/client/src/app/+signup/+register/register.component.ts
@@ -42,8 +42,8 @@ export class RegisterComponent implements OnInit {
moderation: false
}
- defaultPreviousStepButtonLabel = $localize`:Button on the registration form to go to the previous step:Go to the previous step`
- defaultNextStepButtonLabel = $localize`:Button on the registration form to go to the previous step:Go to the next step`
+ defaultPreviousStepButtonLabel = $localize`Go to the previous step`
+ defaultNextStepButtonLabel = $localize`Go to the next step`
stepUserButtonLabel = this.defaultNextStepButtonLabel
signupDisabled = false
diff --git a/client/src/app/+signup/+register/steps/register-step-terms.component.html b/client/src/app/+signup/+register/steps/register-step-terms.component.html
index f54ca77e24..cbfb325184 100644
--- a/client/src/app/+signup/+register/steps/register-step-terms.component.html
+++ b/client/src/app/+signup/+register/steps/register-step-terms.component.html
@@ -5,7 +5,7 @@
<ng-container i18n>
I am at least {{ minimumAge }} years old and agree
to the <a class="link-orange" (click)="onTermsClick($event)" href='#'>Terms</a>
- <ng-container *ngIf="hasCodeOfConduct"> and to the <a (click)="onCodeOfConductClick($event)" href='#'>Code of Conduct</a></ng-container>
+ <ng-container *ngIf="hasCodeOfConduct"> and to the <a class="link-orange" (click)="onCodeOfConductClick($event)" href='#'>Code of Conduct</a></ng-container>
of this instance
</ng-container>
</ng-template>
diff --git a/client/src/app/+signup/shared/signup-mascot.component.scss b/client/src/app/+signup/shared/signup-mascot.component.scss
index 5eebfb0145..67ab484476 100644
--- a/client/src/app/+signup/shared/signup-mascot.component.scss
+++ b/client/src/app/+signup/shared/signup-mascot.component.scss
@@ -3,7 +3,7 @@
.root {
display: inline-block;
- width: 270px;
+ width: 230px;
}
div ::ng-deep svg {
diff --git a/client/src/app/shared/shared-instance/instance-about-accordion.component.html b/client/src/app/shared/shared-instance/instance-about-accordion.component.html
index 466d73ca49..94077fafa0 100644
--- a/client/src/app/shared/shared-instance/instance-about-accordion.component.html
+++ b/client/src/app/shared/shared-instance/instance-about-accordion.component.html
@@ -3,17 +3,26 @@
<div *ngIf="displayInstanceShortDescription" class="instance-short-description">{{ about?.instance.shortDescription }}</div>
<ngb-accordion #accordion="ngbAccordion" [closeOthers]="true">
- <ngb-panel *ngIf="panels.features" id="instance-features" i18n-title title="Features found on this instance">
+ <ngb-panel *ngIf="panels.features" id="instance-features">
+ <ng-template ngbPanelTitle>
+ <my-global-icon iconName="playlists"></my-global-icon>
+
+ <ng-container i18n>Features found on this instance</ng-container>
+ </ng-template>
+
<ng-template ngbPanelContent>
<my-instance-features-table></my-instance-features-table>
</ng-template>
</ngb-panel>
<ng-container *ngIf="about">
- <ngb-panel
- *ngIf="getAdministratorsPanel()"
- id="admin-sustainability" i18n-title title="Administrators & Sustainability"
- >
+ <ngb-panel *ngIf="getAdministratorsPanel()" >
+ <ng-template ngbPanelTitle>
+ <my-global-icon iconName="playlists"></my-global-icon>
+
+ <ng-container i18n>Administrators & Sustainability</ng-container>
+ </ng-template>
+
<ng-template ngbPanelContent>
<div class="block">
<strong i18n>Who are we?</strong>
@@ -32,25 +41,49 @@
</ng-template>
</ngb-panel>
- <ngb-panel *ngIf="termsPanel" id="terms" [title]="getTermsTitle()">
+ <ngb-panel *ngIf="termsPanel" id="terms">
+ <ng-template ngbPanelTitle>
+ <my-global-icon iconName="playlists"></my-global-icon>
+
+ {{ getTermsTitle() }}
+ </ng-template>
+
<ng-template ngbPanelContent>
<div class="block" [innerHTML]="aboutHtml.terms"></div>
</ng-template>
</ngb-panel>
- <ngb-panel *ngIf="moderationPanel" id="moderation-information" i18n-title title="Moderation information">
+ <ngb-panel *ngIf="moderationPanel" id="moderation-information">
+ <ng-template ngbPanelTitle>
+ <my-global-icon iconName="playlists"></my-global-icon>
+
+ <ng-container i18n>Moderation information</ng-container>
+ </ng-template>
+
<ng-template ngbPanelContent>
<div class="block" [innerHTML]="aboutHtml.moderationInformation"></div>
</ng-template>
</ngb-panel>
- <ngb-panel *ngIf="codeOfConductPanel" id="code-of-conduct" i18n-title title="Code of conduct">
+ <ngb-panel *ngIf="codeOfConductPanel" id="code-of-conduct">
+ <ng-template ngbPanelTitle>
+ <my-global-icon iconName="playlists"></my-global-icon>
+
+ <ng-container i18n>Code of conduct</ng-container>
+ </ng-template>
+
<ng-template ngbPanelContent>
<div class="block" [innerHTML]="aboutHtml.codeOfConduct"></div>
</ng-template>
</ngb-panel>
- <ngb-panel *ngFor="let pluginPanel of pluginPanels" [id]="pluginPanel.id" [title]="pluginPanel.title">
+ <ngb-panel *ngFor="let pluginPanel of pluginPanels" [id]="pluginPanel.id">
+ <ng-template ngbPanelTitle>
+ <my-global-icon iconName="playlists"></my-global-icon>
+
+ <ng-container i18n>{{ pluginPanel.title }}</ng-container>
+ </ng-template>
+
<ng-template ngbPanelContent>
<div class="block" [innerHTML]="pluginPanel.html"></div>
</ng-template>
diff --git a/client/src/app/shared/shared-instance/instance-about-accordion.component.scss b/client/src/app/shared/shared-instance/instance-about-accordion.component.scss
index c8e2884627..9174f40c74 100644
--- a/client/src/app/shared/shared-instance/instance-about-accordion.component.scss
+++ b/client/src/app/shared/shared-instance/instance-about-accordion.component.scss
@@ -14,3 +14,9 @@
.block {
margin-bottom: 15px;
}
+
+my-global-icon {
+ line-height: 24px;
+ margin-right: 15px;
+}
+
diff --git a/client/src/sass/bootstrap.scss b/client/src/sass/bootstrap.scss
index 49585a124b..6884076835 100644
--- a/client/src/sass/bootstrap.scss
+++ b/client/src/sass/bootstrap.scss
@@ -249,6 +249,18 @@
}
}
+.accordion-button {
+ font-size: 18px;
+
+ &:not(.collapsed) {
+ font-weight: $font-bold;
+
+ my-global-icon {
+ color: pvar(--mainColorLighter);
+ }
+ }
+}
+
// ---------------------------------------------------------------------------
// Buttons & form controls
// ---------------------------------------------------------------------------
diff --git a/client/src/sass/class-helpers.scss b/client/src/sass/class-helpers.scss
index 2d7e0cce9b..c67179ccb8 100644
--- a/client/src/sass/class-helpers.scss
+++ b/client/src/sass/class-helpers.scss
@@ -5,10 +5,10 @@
.link-orange {
color: pvar(--mainForegroundColor);
- font-weight: $font-bold;
- border-bottom: 0.19em solid pvar(--mainColor);
+ font-weight: $font-semibold;
+ border-bottom: 0.18em solid pvar(--mainColor);
display: inline-block;
- line-height: 1.2;
+ line-height: 1.1;
&:hover {
color: pvar(--mainForegroundColor);
diff --git a/client/src/sass/include/_bootstrap-variables.scss b/client/src/sass/include/_bootstrap-variables.scss
index 7885e067cf..3e461dbef4 100644
--- a/client/src/sass/include/_bootstrap-variables.scss
+++ b/client/src/sass/include/_bootstrap-variables.scss
@@ -49,3 +49,5 @@ $dropdown-link-active-bg: pvar(--mainBackgroundHoverColor);
$accordion-button-active-bg: pvar(--mainColorVeryLight);
$accordion-button-active-color: pvar(--mainForegroundColor);
+$accordion-button-focus-border-color: pvar(--mainColorLightest);
+$accordion-button-focus-box-shadow: 0 0 0 .15rem pvar(--mainColorLightest);