From 4c8a099198cd3af049847df91140735354b85a92 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 28 Jun 2022 10:27:01 +0200 Subject: [PATCH] Registration css fixes --- .../+register/custom-stepper.component.scss | 4 +- .../+signup/+register/register.component.html | 2 +- .../+signup/+register/register.component.scss | 7 ++- .../+signup/+register/register.component.ts | 4 +- .../steps/register-step-terms.component.html | 2 +- .../shared/signup-mascot.component.scss | 2 +- .../instance-about-accordion.component.html | 51 +++++++++++++++---- .../instance-about-accordion.component.scss | 6 +++ client/src/sass/bootstrap.scss | 12 +++++ client/src/sass/class-helpers.scss | 6 +-- .../sass/include/_bootstrap-variables.scss | 2 + 11 files changed, 78 insertions(+), 20 deletions(-) diff --git a/client/src/app/+signup/+register/custom-stepper.component.scss b/client/src/app/+signup/+register/custom-stepper.component.scss index dfbdc863b..29ed3e194 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 442c65e2d..4094f24cf 100644 --- a/client/src/app/+signup/+register/register.component.html +++ b/client/src/app/+signup/+register/register.component.html @@ -27,7 +27,7 @@ I already have an account, I log in - + diff --git a/client/src/app/+signup/+register/register.component.scss b/client/src/app/+signup/+register/register.component.scss index c706d6955..9904e4ab4 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 396b27e5a..4ab327b1b 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 f54ca77e2..cbfb32518 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 @@ I am at least {{ minimumAge }} years old and agree to the Terms - and to the Code of Conduct + and to the Code of Conduct of this instance diff --git a/client/src/app/+signup/shared/signup-mascot.component.scss b/client/src/app/+signup/shared/signup-mascot.component.scss index 5eebfb014..67ab48447 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 466d73ca4..94077fafa 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 @@
{{ about?.instance.shortDescription }}
- + + + + + Features found on this instance + + - + + + + + Administrators & Sustainability + +
Who are we? @@ -32,25 +41,49 @@ - + + + + + {{ getTermsTitle() }} + +
- + + + + + Moderation information + +
- + + + + + Code of conduct + +
- + + + + + {{ pluginPanel.title }} + +
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 c8e288462..9174f40c7 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 49585a124..688407683 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 2d7e0cce9..c67179ccb 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 7885e067c..3e461dbef 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); -- 2.41.0