From c2165d607e63c825fef9d3e13cbee2ba3baf92bc Mon Sep 17 00:00:00 2001 From: kimsible Date: Tue, 11 Aug 2020 01:47:45 +0200 Subject: [PATCH] Add anchor links to about/instance --- .../about-instance.component.html | 92 ++++++++++++++----- .../about-instance.component.scss | 22 +++++ 2 files changed, 92 insertions(+), 22 deletions(-) diff --git a/client/src/app/+about/about-instance/about-instance.component.html b/client/src/app/+about/about-instance/about-instance.component.html index 3bc63b7d1a0..d759c4343d1 100644 --- a/client/src/app/+about/about-instance/about-instance.component.html +++ b/client/src/app/+about/about-instance/about-instance.component.html @@ -19,72 +19,118 @@

About {{ instanceName }}

This instance is dedicated to sensitive/NSFW content.
-

- ADMINISTRATORS & SUSTAINABILITY -

+
+ +

+ ADMINISTRATORS & SUSTAINABILITY +

+
-

Who we are

+
+ +

Who we are

+
-

Why we created this instance

+
+ +

Why we created this instance

+

{{ creationReason }}

-

How long we plan to maintain this instance

+
+ +

How long we plan to maintain this instance

+

{{ maintenanceLifetime }}

-

How we will pay for this instance

+
+ +

How we will pay for this instance

+

{{ businessModel }}

-

- INFORMATION -

+
+ +

+ INFORMATION +

+
-

Description

+
+ +

Description

+
-

- MODERATION -

+
+ +

+ MODERATION +

+
-

Moderation information

+
+ +

Moderation information

+
-

Code of conduct

+
+ +

Code of conduct

+
-

Terms

+
+ +

Terms

+
-

- OTHER INFORMATION -

+
+ +

+ OTHER INFORMATION +

+
-

Hardware information

+
+ +

Hardware information

+
@@ -97,7 +143,9 @@

FEATURES

-

STATISTICS

+ +

STATISTICS

+
diff --git a/client/src/app/+about/about-instance/about-instance.component.scss b/client/src/app/+about/about-instance/about-instance.component.scss index 154031939d1..2e77ade9b3f 100644 --- a/client/src/app/+about/about-instance/about-instance.component.scss +++ b/client/src/app/+about/about-instance/about-instance.component.scss @@ -56,3 +56,25 @@ margin-top: 20px; font-weight: $font-semibold; } + +.anchor-link { + @include disable-outline; + + position: relative; + + &:hover, &:active { + &::after { + content: '#'; + display: inline-block; + margin-left: 0.2em; + } + } + + .middle-title, .section-title { + display: inline-block; + } + + .section-title { + color: initial; + } +}