From 9fe1bc685515f9dd281d8d8afe1003da8c793774 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 28 Aug 2019 10:22:01 +0200 Subject: Use badges for instance languages/categories --- .../about-instance/about-instance.component.html | 22 ++++++---------------- .../about-instance/about-instance.component.scss | 15 ++++++++++++++- 2 files changed, 20 insertions(+), 17 deletions(-) (limited to 'client') 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 c6247c4ae..80acfcce0 100644 --- a/client/src/app/+about/about-instance/about-instance.component.html +++ b/client/src/app/+about/about-instance/about-instance.component.html @@ -7,26 +7,16 @@
Contact administrator
+
+ {{ category }} + + {{ language }} +
+
{{ shortDescription }}
This instance is dedicated to sensitive/NSFW content.
- -
-
Main instance languages
- -
    -
  • {{ language }}
  • -
-
- -
-
Main instance categories
- -
    -
  • {{ category }}
  • -
-
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 d71cfffc6..909ae5c21 100644 --- a/client/src/app/+about/about-instance/about-instance.component.scss +++ b/client/src/app/+about/about-instance/about-instance.component.scss @@ -7,7 +7,6 @@ .title { font-size: 20px; - margin-bottom: 15px; font-weight: $font-semibold; } @@ -19,6 +18,20 @@ } } +.instance-badges { + font-size: 16px; + + .badge { + font-size: 12px; + font-weight: $font-semibold; + margin-right: 5px; + + &.category { + background-color: var(--mainColor); + } + } +} + .section-title { font-weight: $font-semibold; font-size: 16px; -- cgit v1.2.3