From e346077a947613aba2bec0a6db136a39035d7cdd Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 22 Nov 2024 16:16:12 +0100 Subject: [PATCH] Cleanup --- client/package.json | 2 +- .../about-instance.component.scss | 10 ++--- client/src/app/+login/login.component.html | 10 +---- client/src/app/+login/login.component.scss | 4 +- client/src/app/+search/search.component.scss | 4 +- .../+register/custom-stepper.component.scss | 8 ++-- .../+signup/+register/register.component.html | 14 ++----- .../+signup/+register/register.component.scss | 14 ------- .../+signup/+register/register.component.ts | 4 +- .../+stats/video/video-stats.component.html | 6 ++- .../+stats/video/video-stats.component.scss | 3 +- .../app/+stats/video/video-stats.component.ts | 6 ++- .../video-channel-playlists.component.html | 4 -- .../video-channel-playlists.component.scss | 5 --- .../video-channels.component.scss | 17 +++----- .../edit/video-studio-edit.component.html | 10 +++-- .../edit/video-studio-edit.component.scss | 6 +-- .../edit/video-studio-edit.component.ts | 4 +- ...-caption-edit-modal-content.component.html | 4 +- .../shared/video-edit.component.html | 2 +- .../video-go-live.component.html | 1 + .../video-add-components/video-send.scss | 2 + .../+video-edit/video-add.component.html | 13 +++--- .../+video-edit/video-add.component.scss | 4 -- .../+video-edit/video-update.component.html | 5 +-- .../comment/video-comment-add.component.scss | 13 ++---- .../comment/video-comment.component.scss | 6 +-- .../comment/video-comments.component.html | 7 ++-- .../comment/video-comments.component.scss | 7 +++- .../recommended-videos.component.html | 2 +- .../recommended-videos.component.scss | 5 ++- .../+video-watch/video-watch.component.html | 2 +- client/src/app/core/theme/theme.service.ts | 4 +- client/src/app/header/header.component.scss | 20 +++++---- .../notification-dropdown.component.html | 9 ++-- .../notification-dropdown.component.scss | 11 +---- .../header/search-typeahead.component.html | 4 +- .../header/search-typeahead.component.scss | 4 -- .../menu/quick-settings-modal.component.html | 4 +- .../modal/admin-welcome-modal.component.html | 6 +-- .../abuse-details.component.html | 8 +--- .../abuse-details.component.scss | 4 +- .../shared-forms/input-switch.component.scss | 5 ++- .../timestamp-input.component.html | 2 +- .../timestamp-input.component.scss | 18 +++----- .../shared-forms/timestamp-input.component.ts | 2 +- .../instance-about-accordion.component.scss | 3 +- .../menu/horizontal-menu.component.html | 1 - .../users/signup-label.component.html | 15 ++++++- .../users/signup-label.component.ts | 13 +++++- .../shared/shared-moderation/moderation.scss | 1 + .../video-filters-header.component.html | 41 ++++++++++--------- .../video-filters-header.component.scss | 16 ++++---- .../video-filters-header.component.ts | 9 ++-- .../video-miniature.component.scss | 12 +++++- .../video-playlist-miniature.component.scss | 6 ++- .../user-notifications.component.scss | 10 ++++- client/src/assets/images/misc/markdown.svg | 2 +- client/src/sass/application.scss | 28 ++++++++----- client/src/sass/bootstrap.scss | 14 ++++++- client/src/sass/class-helpers/_common.scss | 10 +++-- client/src/sass/class-helpers/_menu.scss | 33 +++------------ client/src/sass/class-helpers/_text.scss | 8 +--- client/src/sass/include/_badges.scss | 2 + client/src/sass/include/_form-mixins.scss | 31 +++++++------- client/src/sass/include/_mixins.scss | 11 +---- client/src/sass/include/_variables.scss | 25 ++++++++--- client/src/sass/primeng-custom.scss | 14 ++++--- client/src/typings.d.ts | 3 -- client/yarn.lock | 8 ++-- 70 files changed, 306 insertions(+), 315 deletions(-) diff --git a/client/package.json b/client/package.json index 1f69ad4da..42d3ad03e 100644 --- a/client/package.json +++ b/client/package.json @@ -89,7 +89,7 @@ "buffer": "^6.0.3", "chart.js": "^4.3.0", "chartjs-plugin-zoom": "~2.0.1", - "color-bits": "^1.0.3", + "color-bits": "^1.0.4", "core-js": "^3.22.8", "debug": "^4.3.1", "dompurify": "^3.1.6", 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 c162ca598..cb7324f06 100644 --- a/client/src/app/+about/about-instance/about-instance.component.scss +++ b/client/src/app/+about/about-instance/about-instance.component.scss @@ -15,8 +15,11 @@ .middle-title { margin-top: 0; + text-transform: uppercase; + color: pvar(--fg); + font-weight: $font-bold; - @include in-content-small-title; + @include font-size(22px); @include margin-bottom(1.5rem); } @@ -42,9 +45,6 @@ .middle-title, .section-title { display: inline-block; - } - - .section-title { - color: pvar(--fg); + color: pvar(--fg-400); } } diff --git a/client/src/app/+login/login.component.html b/client/src/app/+login/login.component.html index 96c458ba2..6fc650694 100644 --- a/client/src/app/+login/login.component.html +++ b/client/src/app/+login/login.component.html @@ -4,15 +4,9 @@ -

- {{ instanceName }} - - > - - Login -

-
+

Login on {{ instanceName }}

+ diff --git a/client/src/app/+login/login.component.scss b/client/src/app/+login/login.component.scss index 2754cd9f7..8de4de5b8 100644 --- a/client/src/app/+login/login.component.scss +++ b/client/src/app/+login/login.component.scss @@ -18,7 +18,6 @@ input[type=email] { display: flex; justify-content: space-between; flex-wrap: wrap; - margin: auto; > div { flex: 1 1; @@ -32,8 +31,7 @@ my-alert { my-alert { display: block; - - @include margin(0, auto, 2rem); + margin-bottom: 2rem; } .login-form-and-externals { diff --git a/client/src/app/+search/search.component.scss b/client/src/app/+search/search.component.scss index b6cee3850..47b7b43e9 100644 --- a/client/src/app/+search/search.component.scss +++ b/client/src/app/+search/search.component.scss @@ -124,10 +124,10 @@ } .video-channel-display-name { - font-size: $video-miniature-row-mobile-name-font-size; + font-size: $miniature-fs-mobile-big; } .video-channel-name { - font-size: $video-miniature-row-mobile-info-font-size; + font-size: $miniature-fs-mobile-medium; } } diff --git a/client/src/app/+signup/+register/custom-stepper.component.scss b/client/src/app/+signup/+register/custom-stepper.component.scss index b6c017a75..b545ec982 100644 --- a/client/src/app/+signup/+register/custom-stepper.component.scss +++ b/client/src/app/+signup/+register/custom-stepper.component.scss @@ -5,10 +5,12 @@ $index-block-height: 40px; header { - margin-bottom: 30px; - padding-bottom: 25px; width: 100%; - background-color: pvar(--primary-50); + background-color: pvar(--primary-150); + border-radius: 5px; + + @include rfs(2rem, margin-bottom); + @include rfs(2rem, padding); } .header-steps { diff --git a/client/src/app/+signup/+register/register.component.html b/client/src/app/+signup/+register/register.component.html index a41815578..468ea25eb 100644 --- a/client/src/app/+signup/+register/register.component.html +++ b/client/src/app/+signup/+register/register.component.html @@ -1,16 +1,10 @@ -
+
-