From 45d7858cee2cee98c28dc7f84942a7ee1bc2108a Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 14 Nov 2024 13:07:13 +0100 Subject: [PATCH] Redesign buttons --- client/e2e/src/po/video-watch.po.ts | 4 +- .../about-follows.component.html | 4 +- .../about-instance.component.html | 2 +- .../contact-admin-modal.component.html | 4 +- .../account-video-channels.component.html | 2 +- .../account-video-channels.component.scss | 5 - .../src/app/+accounts/accounts.component.html | 2 +- .../edit-custom-config.component.html | 1 + .../edit-custom-config.component.scss | 14 -- .../followers-list.component.html | 2 +- .../follow-modal.component.html | 4 +- .../following-list.component.html | 2 +- .../process-registration-modal.component.html | 4 +- .../registration-list.component.html | 4 +- .../video-block-list.component.html | 2 +- .../users/user-edit/user-edit.component.html | 2 +- .../users/user-list/user-list.component.html | 4 +- .../overview/videos/video-list.component.html | 4 +- .../plugin-list-installed.component.html | 6 +- .../plugin-search.component.html | 30 ++-- .../plugin-show-installed.component.html | 4 +- .../plugin-show-installed.component.scss | 14 -- .../plugin-show-installed.component.ts | 1 - .../plugins/shared/plugin-card.component.scss | 5 - .../runner-job-list.component.html | 6 +- .../runner-list/runner-list.component.html | 4 +- ...ner-registration-token-list.component.html | 6 +- .../app/+error-page/error-page.component.html | 2 +- client/src/app/+login/login.component.html | 6 +- .../video-channel-edit.component.html | 2 +- .../my-account-applications.component.html | 2 +- .../my-account-export.component.html | 8 +- .../my-account-import.component.scss | 2 +- .../my-account-notifications.component.html | 4 +- .../my-account-change-email.component.html | 2 +- .../my-account-change-email.component.scss | 5 - .../my-account-change-password.component.html | 2 +- .../my-account-change-password.component.scss | 7 - ...y-account-email-preferences.component.html | 2 +- .../my-account-profile.component.html | 2 +- .../my-account-profile.component.scss | 7 - ...y-account-two-factor-button.component.html | 4 +- .../my-account-two-factor.component.html | 4 +- .../my-video-channels.component.html | 2 +- .../my-history/my-history.component.html | 5 +- .../my-history/my-history.component.scss | 4 - .../my-history/my-history.component.ts | 2 + .../my-accept-ownership.component.html | 4 +- .../my-video-channel-syncs.component.html | 4 +- .../video-channel-sync-edit.component.html | 2 +- .../my-video-imports.component.html | 2 +- .../my-video-playlist-edit.component.html | 2 +- .../my-video-playlist-elements.component.html | 6 +- .../my-video-playlist-elements.component.scss | 8 - .../my-video-playlist-elements.component.ts | 24 +-- .../video-change-ownership.component.html | 4 +- .../my-videos/my-videos.component.html | 9 +- .../my-videos/my-videos.component.scss | 13 +- .../my-videos/my-videos.component.ts | 4 +- .../reset-password.component.html | 2 +- .../app/+search/search-filters.component.html | 5 +- .../app/+search/search-filters.component.scss | 5 - .../+signup/+register/register.component.html | 16 +- .../+signup/+register/register.component.scss | 12 -- .../+register/steps/step.component.scss | 5 - ...rify-account-ask-send-email.component.html | 2 +- .../video-channels.component.html | 8 +- .../video-channels.component.scss | 8 - .../edit/video-studio-edit.component.html | 2 +- .../video-caption-add-modal.component.html | 4 +- ...-caption-edit-modal-content.component.html | 4 +- .../thumbnail-manager.component.html | 6 +- .../shared/video-edit.component.scss | 2 +- .../video-go-live.component.html | 2 +- .../video-import-torrent.component.html | 2 +- .../video-import-url.component.html | 2 +- .../video-add-components/video-send.scss | 10 +- .../video-upload.component.html | 4 +- .../+video-edit/video-add.component.html | 4 +- .../+video-edit/video-update.component.html | 2 +- .../comment/video-comment-add.component.html | 6 +- .../comment/video-comments.component.scss | 4 +- .../privacy-concerns.component.html | 2 +- client/src/app/header/header.component.html | 12 +- .../notification-dropdown.component.scss | 8 +- .../app/menu/language-chooser.component.html | 2 +- .../app/menu/language-chooser.component.scss | 12 -- client/src/app/menu/menu.component.scss | 49 +++--- ...account-setup-warning-modal.component.html | 4 +- .../modal/admin-welcome-modal.component.html | 4 +- client/src/app/modal/confirm.component.html | 4 +- .../src/app/modal/custom-modal.component.html | 4 +- ...stance-config-warning-modal.component.html | 4 +- .../abuse-list-table.component.html | 4 +- .../abuse-message-modal.component.html | 2 +- .../moderation-comment-modal.component.html | 4 +- .../actor-avatar-edit.component.scss | 1 + .../actor-image-edit.scss | 2 +- .../button-markup.component.ts | 4 +- .../shared-forms/reactive-file.component.ts | 4 +- .../shared-icons/global-icon.component.scss | 1 + .../buttons/action-dropdown.component.html | 59 ++++---- .../buttons/action-dropdown.component.scss | 32 +--- .../buttons/action-dropdown.component.ts | 4 +- .../shared-main/buttons/button.component.scss | 4 - .../shared-main/buttons/button.component.ts | 6 +- .../buttons/delete-button.component.ts | 2 +- .../channels-setup-message.component.html | 2 +- .../account-blocklist.component.html | 2 +- .../batch-domains-modal.component.html | 4 +- .../report-modals/report.component.html | 4 +- .../report-modals/video-report.component.html | 4 +- .../server-blocklist.component.html | 2 +- .../user-ban-modal.component.html | 4 +- .../video-block.component.html | 4 +- .../video-share.component.html | 4 +- .../support-modal.component.html | 2 +- .../user-interface-settings.component.html | 2 +- .../user-interface-settings.component.scss | 8 - .../user-video-settings.component.html | 2 +- .../user-video-settings.component.scss | 7 - .../remote-subscribe.component.html | 18 ++- .../remote-subscribe.component.scss | 6 - .../remote-subscribe.component.ts | 1 - .../subscribe-button.component.ts | 4 +- ...eo-comment-list-admin-owner.component.html | 6 +- .../live-stream-information.component.html | 2 +- .../subtitle-files-download.component.html | 2 +- .../download/video-download.component.html | 2 +- .../video-files-download.component.html | 2 +- .../video-generate-download.component.html | 2 +- .../videos-selection.component.html | 2 +- .../videos-selection.component.scss | 5 - .../video-add-to-playlist.component.html | 2 +- .../video-add-to-playlist.component.scss | 5 - ...-playlist-element-miniature.component.html | 2 +- ...-playlist-element-miniature.component.scss | 7 - .../upload-progress.component.html | 6 +- ...ched-words-list-admin-owner.component.html | 2 +- ...tched-words-list-save-modal.component.html | 4 +- client/src/assets/images/feather/delete.svg | 2 +- client/src/assets/images/feather/edit-2.svg | 2 +- .../src/assets/images/feather/refresh-cw.svg | 2 +- client/src/sass/bootstrap.scss | 4 +- client/src/sass/class-helpers/_buttons.scss | 18 +-- client/src/sass/class-helpers/_forms.scss | 2 +- client/src/sass/include/_mixins.scss | 143 +++--------------- client/src/sass/include/_variables.scss | 3 +- 148 files changed, 338 insertions(+), 618 deletions(-) delete mode 100644 client/src/app/+admin/plugins/plugin-show-installed/plugin-show-installed.component.scss delete mode 100644 client/src/app/shared/shared-user-subscription/remote-subscribe.component.scss diff --git a/client/e2e/src/po/video-watch.po.ts b/client/e2e/src/po/video-watch.po.ts index 544930c6c..699a0b635 100644 --- a/client/e2e/src/po/video-watch.po.ts +++ b/client/e2e/src/po/video-watch.po.ts @@ -199,7 +199,7 @@ export class VideoWatchPage { await textarea.setValue(comment) - const confirmButton = await $('.comment-buttons .orange-button') + const confirmButton = await $('.comment-buttons .primary-button') await confirmButton.waitForClickable() await confirmButton.click() @@ -218,7 +218,7 @@ export class VideoWatchPage { await textarea.waitForClickable() await textarea.setValue(comment) - const confirmButton = await $('my-video-comment .comment-buttons .orange-button') + const confirmButton = await $('my-video-comment .comment-buttons .primary-button') await confirmButton.waitForClickable() await confirmButton.click() diff --git a/client/src/app/+about/about-follows/about-follows.component.html b/client/src/app/+about/about-follows/about-follows.component.html index 34427452c..c4bda1944 100644 --- a/client/src/app/+about/about-follows/about-follows.component.html +++ b/client/src/app/+about/about-follows/about-follows.component.html @@ -11,7 +11,7 @@ {{ follower.name }} - +
@@ -23,7 +23,7 @@ {{ following.name }} - +
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 876f29821..95d3ffc48 100644 --- a/client/src/app/+about/about-instance/about-instance.component.html +++ b/client/src/app/+about/about-instance/about-instance.component.html @@ -9,7 +9,7 @@

About {{ instanceName }}

- Contact us + Contact us
diff --git a/client/src/app/+about/about-instance/contact-admin-modal.component.html b/client/src/app/+about/about-instance/contact-admin-modal.component.html index 0a2c30b30..8f414d168 100644 --- a/client/src/app/+about/about-instance/contact-admin-modal.component.html +++ b/client/src/app/+about/about-instance/contact-admin-modal.component.html @@ -50,11 +50,11 @@
- +
diff --git a/client/src/app/+accounts/account-video-channels/account-video-channels.component.html b/client/src/app/+accounts/account-video-channels/account-video-channels.component.html index e3b499773..698c82a4f 100644 --- a/client/src/app/+accounts/account-video-channels/account-video-channels.component.html +++ b/client/src/app/+accounts/account-video-channels/account-video-channels.component.html @@ -35,7 +35,7 @@ - Show this channel + Show this channel
diff --git a/client/src/app/+accounts/account-video-channels/account-video-channels.component.scss b/client/src/app/+accounts/account-video-channels/account-video-channels.component.scss index 9a415a320..70b8d3a72 100644 --- a/client/src/app/+accounts/account-video-channels/account-video-channels.component.scss +++ b/client/src/app/+accounts/account-video-channels/account-video-channels.component.scss @@ -130,11 +130,6 @@ my-subscribe-button { } } - .show-channel a { - @include peertube-button-link; - @include orange-button-inverted; - } - .videos { display: none; } diff --git a/client/src/app/+accounts/accounts.component.html b/client/src/app/+accounts/accounts.component.html index ac11705a5..2242b312d 100644 --- a/client/src/app/+accounts/accounts.component.html +++ b/client/src/app/+accounts/accounts.component.html @@ -56,7 +56,7 @@
- + Manage account diff --git a/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.html b/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.html index f2e704ba2..294299e20 100644 --- a/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.html +++ b/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.html @@ -87,6 +87,7 @@ diff --git a/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.scss b/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.scss index dca44c85e..e71390190 100644 --- a/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.scss +++ b/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.scss @@ -65,8 +65,6 @@ my-select-custom-value { input[type=submit] { display: flex; - @include peertube-button; - @include orange-button; @include margin-left(auto); + .form-error { @@ -131,18 +129,6 @@ ngb-tabset:not(.previews) ::ng-deep { height: 0; width: 100%; justify-content: right; - - .callout-link { - position: relative; - right: 3.3em; - top: .3em; - font-size: 90%; - color: pvar(--mainColor); - background-color: pvar(--bg); - padding: 0 .3em; - - @include peertube-button-link; - } } my-actor-banner-edit { diff --git a/client/src/app/+admin/follows/followers-list/followers-list.component.html b/client/src/app/+admin/follows/followers-list/followers-list.component.html index 8bb1871dd..d52c83643 100644 --- a/client/src/app/+admin/follows/followers-list/followers-list.component.html +++ b/client/src/app/+admin/follows/followers-list/followers-list.component.html @@ -16,7 +16,7 @@
diff --git a/client/src/app/+admin/follows/following-list/follow-modal.component.html b/client/src/app/+admin/follows/following-list/follow-modal.component.html index 43c89c3e3..dd306ab6c 100644 --- a/client/src/app/+admin/follows/following-list/follow-modal.component.html +++ b/client/src/app/+admin/follows/following-list/follow-modal.component.html @@ -32,11 +32,11 @@
- +
diff --git a/client/src/app/+admin/follows/following-list/following-list.component.html b/client/src/app/+admin/follows/following-list/following-list.component.html index ab13f6449..36631ab6a 100644 --- a/client/src/app/+admin/follows/following-list/following-list.component.html +++ b/client/src/app/+admin/follows/following-list/following-list.component.html @@ -16,7 +16,7 @@
diff --git a/client/src/app/+admin/moderation/registration-list/process-registration-modal.component.html b/client/src/app/+admin/moderation/registration-list/process-registration-modal.component.html index 17d18f980..5fac1bd79 100644 --- a/client/src/app/+admin/moderation/registration-list/process-registration-modal.component.html +++ b/client/src/app/+admin/moderation/registration-list/process-registration-modal.component.html @@ -66,11 +66,11 @@ diff --git a/client/src/app/+admin/moderation/registration-list/registration-list.component.html b/client/src/app/+admin/moderation/registration-list/registration-list.component.html index 7e7a823c3..b6135a618 100644 --- a/client/src/app/+admin/moderation/registration-list/registration-list.component.html +++ b/client/src/app/+admin/moderation/registration-list/registration-list.component.html @@ -16,7 +16,7 @@
@@ -62,7 +62,7 @@ diff --git a/client/src/app/+admin/moderation/video-block-list/video-block-list.component.html b/client/src/app/+admin/moderation/video-block-list/video-block-list.component.html index 9ac8edb7f..87a63a98a 100644 --- a/client/src/app/+admin/moderation/video-block-list/video-block-list.component.html +++ b/client/src/app/+admin/moderation/video-block-list/video-block-list.component.html @@ -48,7 +48,7 @@ diff --git a/client/src/app/+admin/overview/users/user-edit/user-edit.component.html b/client/src/app/+admin/overview/users/user-edit/user-edit.component.html index dd307b267..bb9d4b282 100644 --- a/client/src/app/+admin/overview/users/user-edit/user-edit.component.html +++ b/client/src/app/+admin/overview/users/user-edit/user-edit.component.html @@ -207,7 +207,7 @@
- +
diff --git a/client/src/app/+admin/overview/users/user-list/user-list.component.html b/client/src/app/+admin/overview/users/user-list/user-list.component.html index 21ec15efe..5e17045dd 100644 --- a/client/src/app/+admin/overview/users/user-list/user-list.component.html +++ b/client/src/app/+admin/overview/users/user-list/user-list.component.html @@ -15,7 +15,7 @@
@@ -97,7 +97,7 @@ + container="body" (userChanged)="onUserChanged()" (userDeleted)="onUserChanged()" buttonSize="small"> diff --git a/client/src/app/+admin/overview/videos/video-list.component.html b/client/src/app/+admin/overview/videos/video-list.component.html index f82d5363b..c09d1a982 100644 --- a/client/src/app/+admin/overview/videos/video-list.component.html +++ b/client/src/app/+admin/overview/videos/video-list.component.html @@ -16,7 +16,7 @@
@@ -63,7 +63,7 @@ diff --git a/client/src/app/+admin/plugins/plugin-list-installed/plugin-list-installed.component.html b/client/src/app/+admin/plugins/plugin-list-installed/plugin-list-installed.component.html index e80855a02..41d36a3d9 100644 --- a/client/src/app/+admin/plugins/plugin-list-installed/plugin-list-installed.component.html +++ b/client/src/app/+admin/plugins/plugin-list-installed/plugin-list-installed.component.html @@ -8,10 +8,10 @@
- + [responsiveLabel]="true" icon="config" + > diff --git a/client/src/app/+my-account/my-account-import-export/my-account-export.component.html b/client/src/app/+my-account/my-account-import-export/my-account-export.component.html index 9427f652d..ccb0ce607 100644 --- a/client/src/app/+my-account/my-account-import-export/my-account-export.component.html +++ b/client/src/app/+my-account/my-account-import-export/my-account-export.component.html @@ -58,14 +58,14 @@ - Download your archive + Download your archive
diff --git a/client/src/app/+my-account/my-account-import-export/my-account-import.component.scss b/client/src/app/+my-account/my-account-import-export/my-account-import.component.scss index 265501b56..16cdb3000 100644 --- a/client/src/app/+my-account/my-account-import-export/my-account-import.component.scss +++ b/client/src/app/+my-account/my-account-import-export/my-account-import.component.scss @@ -3,7 +3,7 @@ .button-file { @include peertube-button-file(max-content); - @include orange-button; + @include primary-button; } my-alert { diff --git a/client/src/app/+my-account/my-account-notifications/my-account-notifications.component.html b/client/src/app/+my-account/my-account-notifications/my-account-notifications.component.html index dec372636..273c2a2ea 100644 --- a/client/src/app/+my-account/my-account-notifications/my-account-notifications.component.html +++ b/client/src/app/+my-account/my-account-notifications/my-account-notifications.component.html @@ -6,7 +6,7 @@
-
- + diff --git a/client/src/app/+my-account/my-account-settings/my-account-change-email/my-account-change-email.component.scss b/client/src/app/+my-account/my-account-settings/my-account-change-email/my-account-change-email.component.scss index 6bc4a7c2f..c3b2c38c0 100644 --- a/client/src/app/+my-account/my-account-settings/my-account-change-email/my-account-change-email.component.scss +++ b/client/src/app/+my-account/my-account-settings/my-account-change-email/my-account-change-email.component.scss @@ -14,11 +14,6 @@ input[type=email] { @include peertube-input-text(100%); } -input[type=submit] { - @include peertube-button; - @include orange-button; -} - .pending-email { margin-bottom: 15px; } diff --git a/client/src/app/+my-account/my-account-settings/my-account-change-password/my-account-change-password.component.html b/client/src/app/+my-account/my-account-settings/my-account-change-password/my-account-change-password.component.html index 0f2928990..260b7bed1 100644 --- a/client/src/app/+my-account/my-account-settings/my-account-change-password/my-account-change-password.component.html +++ b/client/src/app/+my-account/my-account-settings/my-account-change-password/my-account-change-password.component.html @@ -18,5 +18,5 @@ [formError]="formErrors['new-confirmed-password']" autocomplete="new-password" > - + diff --git a/client/src/app/+my-account/my-account-settings/my-account-change-password/my-account-change-password.component.scss b/client/src/app/+my-account/my-account-settings/my-account-change-password/my-account-change-password.component.scss index f4cc18d8d..9fd685b4e 100644 --- a/client/src/app/+my-account/my-account-settings/my-account-change-password/my-account-change-password.component.scss +++ b/client/src/app/+my-account/my-account-settings/my-account-change-password/my-account-change-password.component.scss @@ -13,10 +13,3 @@ my-input-text { my-input-text + my-input-text { margin-top: 15px; } - -input[type=submit] { - margin-top: 15px; - - @include peertube-button; - @include orange-button; -} diff --git a/client/src/app/+my-account/my-account-settings/my-account-email-preferences/my-account-email-preferences.component.html b/client/src/app/+my-account/my-account-settings/my-account-email-preferences/my-account-email-preferences.component.html index 68419ea04..33f941abc 100644 --- a/client/src/app/+my-account/my-account-settings/my-account-email-preferences/my-account-email-preferences.component.html +++ b/client/src/app/+my-account/my-account-settings/my-account-email-preferences/my-account-email-preferences.component.html @@ -17,5 +17,5 @@
- + diff --git a/client/src/app/+my-account/my-account-settings/my-account-profile/my-account-profile.component.html b/client/src/app/+my-account/my-account-settings/my-account-profile/my-account-profile.component.html index 1a42ebb84..042f9934a 100644 --- a/client/src/app/+my-account/my-account-settings/my-account-profile/my-account-profile.component.html +++ b/client/src/app/+my-account/my-account-settings/my-account-profile/my-account-profile.component.html @@ -35,5 +35,5 @@
- + diff --git a/client/src/app/+my-account/my-account-settings/my-account-profile/my-account-profile.component.scss b/client/src/app/+my-account/my-account-settings/my-account-profile/my-account-profile.component.scss index c60a1b421..1338ebb28 100644 --- a/client/src/app/+my-account/my-account-settings/my-account-profile/my-account-profile.component.scss +++ b/client/src/app/+my-account/my-account-settings/my-account-profile/my-account-profile.component.scss @@ -9,13 +9,6 @@ input[type=text] { @include peertube-input-text(340px); } -input[type=submit] { - margin-top: 15px; - - @include peertube-button; - @include orange-button; -} - textarea { max-width: 100%; diff --git a/client/src/app/+my-account/my-account-settings/my-account-two-factor/my-account-two-factor-button.component.html b/client/src/app/+my-account/my-account-settings/my-account-two-factor/my-account-two-factor-button.component.html index 831b294d1..9e8ae11ba 100644 --- a/client/src/app/+my-account/my-account-settings/my-account-two-factor/my-account-two-factor-button.component.html +++ b/client/src/app/+my-account/my-account-settings/my-account-two-factor/my-account-two-factor-button.component.html @@ -2,11 +2,11 @@

Two factor authentication adds an additional layer of security to your account by requiring a numeric code from another device (most commonly mobile phones) when you log in.

- Enable two-factor authentication + Enable two-factor authentication
- Disable two-factor authentication + Disable two-factor authentication
diff --git a/client/src/app/+my-account/my-account-settings/my-account-two-factor/my-account-two-factor.component.html b/client/src/app/+my-account/my-account-settings/my-account-two-factor/my-account-two-factor.component.html index eefd31501..3cef25b4e 100644 --- a/client/src/app/+my-account/my-account-settings/my-account-two-factor/my-account-two-factor.component.html +++ b/client/src/app/+my-account/my-account-settings/my-account-two-factor/my-account-two-factor.component.html @@ -21,7 +21,7 @@ [formError]="formErrorsPassword['current-password']" autocomplete="current-password" > - + @@ -49,7 +49,7 @@ [formError]="formErrorsOTP['otp-token']" autocomplete="otp-token" > - + diff --git a/client/src/app/+my-library/+my-video-channels/my-video-channels.component.html b/client/src/app/+my-library/+my-video-channels/my-video-channels.component.html index d4d1c0931..39d79f617 100644 --- a/client/src/app/+my-library/+my-video-channels/my-video-channels.component.html +++ b/client/src/app/+my-library/+my-video-channels/my-video-channels.component.html @@ -6,7 +6,7 @@
- + My synchronizations diff --git a/client/src/app/+my-library/my-history/my-history.component.html b/client/src/app/+my-library/my-history/my-history.component.html index e41a2ba2a..624a8dfa2 100644 --- a/client/src/app/+my-library/my-history/my-history.component.html +++ b/client/src/app/+my-library/my-history/my-history.component.html @@ -16,10 +16,7 @@
- + Clear all history
diff --git a/client/src/app/+my-library/my-video-channel-syncs/my-video-channel-syncs.component.html b/client/src/app/+my-library/my-video-channel-syncs/my-video-channel-syncs.component.html index e271fb927..10b40509f 100644 --- a/client/src/app/+my-library/my-video-channel-syncs/my-video-channel-syncs.component.html +++ b/client/src/app/+my-library/my-video-channel-syncs/my-video-channel-syncs.component.html @@ -46,8 +46,8 @@ diff --git a/client/src/app/+my-library/my-video-channel-syncs/video-channel-sync-edit/video-channel-sync-edit.component.html b/client/src/app/+my-library/my-video-channel-syncs/video-channel-sync-edit/video-channel-sync-edit.component.html index 77a06f31a..e9f06ee73 100644 --- a/client/src/app/+my-library/my-video-channel-syncs/video-channel-sync-edit/video-channel-sync-edit.component.html +++ b/client/src/app/+my-library/my-video-channel-syncs/video-channel-sync-edit/video-channel-sync-edit.component.html @@ -52,7 +52,7 @@
- +
diff --git a/client/src/app/+my-library/my-video-imports/my-video-imports.component.html b/client/src/app/+my-library/my-video-imports/my-video-imports.component.html index 2d7e603b7..41d77fc90 100644 --- a/client/src/app/+my-library/my-video-imports/my-video-imports.component.html +++ b/client/src/app/+my-library/my-video-imports/my-video-imports.component.html @@ -5,7 +5,7 @@
- + My synchronizations diff --git a/client/src/app/+my-library/my-video-playlists/my-video-playlist-edit.component.html b/client/src/app/+my-library/my-video-playlists/my-video-playlist-edit.component.html index bbd8a1a24..221a70902 100644 --- a/client/src/app/+my-library/my-video-playlists/my-video-playlist-edit.component.html +++ b/client/src/app/+my-library/my-video-playlists/my-video-playlist-edit.component.html @@ -72,7 +72,7 @@
- +
diff --git a/client/src/app/+my-library/my-video-playlists/my-video-playlist-elements.component.html b/client/src/app/+my-library/my-video-playlists/my-video-playlist-elements.component.html index df4687ce9..f4cddcf01 100644 --- a/client/src/app/+my-library/my-video-playlists/my-video-playlist-elements.component.html +++ b/client/src/app/+my-library/my-video-playlists/my-video-playlist-elements.component.html @@ -7,10 +7,8 @@ >
- + + Share
diff --git a/client/src/app/+my-library/my-videos/my-videos.component.html b/client/src/app/+my-library/my-videos/my-videos.component.html index a39f88e1c..d82b75247 100644 --- a/client/src/app/+my-library/my-videos/my-videos.component.html +++ b/client/src/app/+my-library/my-videos/my-videos.component.html @@ -6,12 +6,12 @@
- + My imports - + Ownership changes @@ -45,10 +45,7 @@ #videosSelection > - + diff --git a/client/src/app/+my-library/my-videos/my-videos.component.scss b/client/src/app/+my-library/my-videos/my-videos.component.scss index 9a2af6ac9..d59d8277b 100644 --- a/client/src/app/+my-library/my-videos/my-videos.component.scss +++ b/client/src/app/+my-library/my-videos/my-videos.component.scss @@ -10,18 +10,6 @@ input[type=text] { @include margin-left(0.5rem); } -.action-button-delete-selection { - display: inline-block; - - @include peertube-button; - @include orange-button; - @include button-with-icon(21px); - - my-global-icon { - @include apply-svg-color(#fff); - } -} - .action-button { display: flex; align-self: flex-end; @@ -58,6 +46,7 @@ my-edit-button { width: 100%; margin-bottom: 12px; } + .peertube-select-container { @include margin-left(0); } diff --git a/client/src/app/+my-library/my-videos/my-videos.component.ts b/client/src/app/+my-library/my-videos/my-videos.component.ts index d037df7a6..379a82fd0 100644 --- a/client/src/app/+my-library/my-videos/my-videos.component.ts +++ b/client/src/app/+my-library/my-videos/my-videos.component.ts @@ -6,6 +6,7 @@ import { AuthService, ComponentPagination, ConfirmService, Notifier, ScreenServi import { DisableForReuseHook } from '@app/core/routing/disable-for-reuse-hook' import { formatICU, immutableAssign } from '@app/helpers' import { DropdownAction } from '@app/shared/shared-main/buttons/action-dropdown.component' +import { DeleteButtonComponent } from '@app/shared/shared-main/buttons/delete-button.component' import { Video } from '@app/shared/shared-main/video/video.model' import { VideoService } from '@app/shared/shared-main/video/video.service' import { LiveStreamInformationComponent } from '@app/shared/shared-video-live/live-stream-information.component' @@ -18,8 +19,8 @@ import { concat, Observable } from 'rxjs' import { tap, toArray } from 'rxjs/operators' import { AdvancedInputFilter, AdvancedInputFilterComponent } from '../../shared/shared-forms/advanced-input-filter.component' import { GlobalIconComponent } from '../../shared/shared-icons/global-icon.component' -import { PeerTubeTemplateDirective } from '../../shared/shared-main/common/peertube-template.directive' import { EditButtonComponent } from '../../shared/shared-main/buttons/edit-button.component' +import { PeerTubeTemplateDirective } from '../../shared/shared-main/common/peertube-template.directive' import { VideoActionsDisplayType, VideoActionsDropdownComponent @@ -32,6 +33,7 @@ import { VideoChangeOwnershipComponent } from './modals/video-change-ownership.c standalone: true, imports: [ GlobalIconComponent, + DeleteButtonComponent, NgIf, RouterLink, AdvancedInputFilterComponent, diff --git a/client/src/app/+reset-password/reset-password.component.html b/client/src/app/+reset-password/reset-password.component.html index 04c990929..8144f997b 100644 --- a/client/src/app/+reset-password/reset-password.component.html +++ b/client/src/app/+reset-password/reset-password.component.html @@ -21,7 +21,7 @@
diff --git a/client/src/app/+search/search-filters.component.html b/client/src/app/+search/search-filters.component.html index 5fc25e267..f54c845f4 100644 --- a/client/src/app/+search/search-filters.component.html +++ b/client/src/app/+search/search-filters.component.html @@ -230,6 +230,9 @@ Reset - + diff --git a/client/src/app/+search/search-filters.component.scss b/client/src/app/+search/search-filters.component.scss index 0b589a7f3..efd22eb74 100644 --- a/client/src/app/+search/search-filters.component.scss +++ b/client/src/app/+search/search-filters.component.scss @@ -25,11 +25,6 @@ input[type=text] { @include peertube-input-text(100%); } -input[type=submit] { - @include peertube-button-link; - @include orange-button; -} - .submit-button { text-align: end; } diff --git a/client/src/app/+signup/+register/register.component.html b/client/src/app/+signup/+register/register.component.html index 987708c98..a41815578 100644 --- a/client/src/app/+signup/+register/register.component.html +++ b/client/src/app/+signup/+register/register.component.html @@ -30,7 +30,7 @@ I already have an account, I log in - @@ -56,8 +56,8 @@ >
- - + +
@@ -73,8 +73,8 @@ >
- - + +
@@ -90,7 +90,7 @@ >
- +
-
@@ -122,7 +122,7 @@ >
- +
diff --git a/client/src/app/+signup/+register/register.component.scss b/client/src/app/+signup/+register/register.component.scss index 2bf149762..f8c701737 100644 --- a/client/src/app/+signup/+register/register.component.scss +++ b/client/src/app/+signup/+register/register.component.scss @@ -44,18 +44,6 @@ my-instance-about-accordion { } } - > button { - @include peertube-button-big; - - &[cdkStepperNext] { - @include orange-button; - } - - &[cdkStepperPrevious] { - @include grey-button; - } - } - > button, .skip-step { margin-top: 20px; diff --git a/client/src/app/+signup/+register/steps/step.component.scss b/client/src/app/+signup/+register/steps/step.component.scss index 35ef20d97..753daf90a 100644 --- a/client/src/app/+signup/+register/steps/step.component.scss +++ b/client/src/app/+signup/+register/steps/step.component.scss @@ -11,11 +11,6 @@ input:not([type=submit]) { } } -input[type=submit], -button { - @include peertube-button; -} - label { font-size: 18px; margin-bottom: 5px; diff --git a/client/src/app/+signup/+verify-account/verify-account-ask-send-email/verify-account-ask-send-email.component.html b/client/src/app/+signup/+verify-account/verify-account-ask-send-email/verify-account-ask-send-email.component.html index 7038468f6..c4d8688d2 100644 --- a/client/src/app/+signup/+verify-account/verify-account-ask-send-email/verify-account-ask-send-email.component.html +++ b/client/src/app/+signup/+verify-account/verify-account-ask-send-email/verify-account-ask-send-email.component.html @@ -13,7 +13,7 @@ - + diff --git a/client/src/app/+video-channels/video-channels.component.html b/client/src/app/+video-channels/video-channels.component.html index b74ec7b0e..a8b70b804 100644 --- a/client/src/app/+video-channels/video-channels.component.html +++ b/client/src/app/+video-channels/video-channels.component.html @@ -6,13 +6,13 @@
- + Manage channel - @@ -43,11 +43,11 @@
- - diff --git a/client/src/app/+video-channels/video-channels.component.scss b/client/src/app/+video-channels/video-channels.component.scss index ec07ae082..7aafe9f75 100644 --- a/client/src/app/+video-channels/video-channels.component.scss +++ b/client/src/app/+video-channels/video-channels.component.scss @@ -133,13 +133,6 @@ } } -.view-account.short { - margin-top: 30px; - - @include peertube-button-link; - @include orange-button-inverted; -} - .view-account.complete { display: none; } @@ -232,7 +225,6 @@ my-copy-button { display: block; text-align: end; margin-top: 10px; - color: pvar(--mainColor); } .view-account.short { diff --git a/client/src/app/+video-studio/edit/video-studio-edit.component.html b/client/src/app/+video-studio/edit/video-studio-edit.component.html index 9c2cb1920..5afb25209 100644 --- a/client/src/app/+video-studio/edit/video-studio-edit.component.html +++ b/client/src/app/+video-studio/edit/video-studio-edit.component.html @@ -63,7 +63,7 @@ diff --git a/client/src/app/+videos/+video-edit/shared/caption/video-caption-add-modal.component.html b/client/src/app/+videos/+video-edit/shared/caption/video-caption-add-modal.component.html index 067ab8343..3345027b6 100644 --- a/client/src/app/+videos/+video-edit/shared/caption/video-caption-add-modal.component.html +++ b/client/src/app/+videos/+video-edit/shared/caption/video-caption-add-modal.component.html @@ -36,12 +36,12 @@ diff --git a/client/src/app/+videos/+video-edit/shared/caption/video-caption-edit-modal-content.component.html b/client/src/app/+videos/+video-edit/shared/caption/video-caption-edit-modal-content.component.html index f472b505b..ce9a973ea 100644 --- a/client/src/app/+videos/+video-edit/shared/caption/video-caption-edit-modal-content.component.html +++ b/client/src/app/+videos/+video-edit/shared/caption/video-caption-edit-modal-content.component.html @@ -121,12 +121,12 @@ diff --git a/client/src/app/+videos/+video-edit/shared/thumbnail-manager/thumbnail-manager.component.html b/client/src/app/+videos/+video-edit/shared/thumbnail-manager/thumbnail-manager.component.html index 8eb68bb5c..0912fcdc5 100644 --- a/client/src/app/+videos/+video-edit/shared/thumbnail-manager/thumbnail-manager.component.html +++ b/client/src/app/+videos/+video-edit/shared/thumbnail-manager/thumbnail-manager.component.html @@ -15,9 +15,9 @@
@if (selectingFromVideo) { - + - + } @else { @if (canSelectFromVideo()) { - + } } diff --git a/client/src/app/+videos/+video-edit/shared/video-edit.component.scss b/client/src/app/+videos/+video-edit/shared/video-edit.component.scss index a8ece799f..eb7f8cccd 100644 --- a/client/src/app/+videos/+video-edit/shared/video-edit.component.scss +++ b/client/src/app/+videos/+video-edit/shared/video-edit.component.scss @@ -99,7 +99,7 @@ p-calendar { .button-file { @include peertube-button-file(max-content); - @include orange-button; + @include primary-button; } .hide-chapter-label { diff --git a/client/src/app/+videos/+video-edit/video-add-components/video-go-live.component.html b/client/src/app/+videos/+video-edit/video-add-components/video-go-live.component.html index 4c3c54ec4..2851eb24a 100644 --- a/client/src/app/+videos/+video-edit/video-add-components/video-go-live.component.html +++ b/client/src/app/+videos/+video-edit/video-add-components/video-go-live.component.html @@ -57,7 +57,7 @@
diff --git a/client/src/app/+videos/+video-edit/video-add-components/video-import-torrent.component.html b/client/src/app/+videos/+video-edit/video-add-components/video-import-torrent.component.html index 051f545c5..c4e272775 100644 --- a/client/src/app/+videos/+video-edit/video-add-components/video-import-torrent.component.html +++ b/client/src/app/+videos/+video-edit/video-add-components/video-import-torrent.component.html @@ -64,7 +64,7 @@
diff --git a/client/src/app/+videos/+video-edit/video-add-components/video-import-url.component.html b/client/src/app/+videos/+video-edit/video-add-components/video-import-url.component.html index 0bc7647e2..08d7bd207 100644 --- a/client/src/app/+videos/+video-edit/video-add-components/video-import-url.component.html +++ b/client/src/app/+videos/+video-edit/video-add-components/video-import-url.component.html @@ -62,7 +62,7 @@
diff --git a/client/src/app/+videos/+video-edit/video-add-components/video-send.scss b/client/src/app/+videos/+video-edit/video-add-components/video-send.scss index 0ef44885b..43ce2a54d 100644 --- a/client/src/app/+videos/+video-edit/video-add-components/video-send.scss +++ b/client/src/app/+videos/+video-edit/video-add-components/video-send.scss @@ -49,16 +49,8 @@ $width-size: 275px; @include peertube-input-text($width-size); } - input[type=button] { - width: $width-size; - margin-top: 30px; - - @include peertube-button; - @include orange-button; - } - .button-file { @include peertube-button-file(max-content); - @include orange-button; + @include primary-button; } } diff --git a/client/src/app/+videos/+video-edit/video-add-components/video-upload.component.html b/client/src/app/+videos/+video-edit/video-add-components/video-upload.component.html index a21ef6c84..ed4b7f691 100644 --- a/client/src/app/+videos/+video-edit/video-add-components/video-upload.component.html +++ b/client/src/app/+videos/+video-edit/video-add-components/video-upload.component.html @@ -42,7 +42,7 @@
- +
@@ -71,7 +71,7 @@
Publish will be available when upload is finished
diff --git a/client/src/app/+videos/+video-edit/video-add.component.html b/client/src/app/+videos/+video-edit/video-add.component.html index 0ec9ddb76..4485cc4fc 100644 --- a/client/src/app/+videos/+video-edit/video-add.component.html +++ b/client/src/app/+videos/+video-edit/video-add.component.html @@ -1,8 +1,8 @@ @if (isContactFormEnabled) { - Contact us + Contact us } @else { - Read instance rules for help + Read instance rules for help } diff --git a/client/src/app/+videos/+video-edit/video-update.component.html b/client/src/app/+videos/+video-edit/video-update.component.html index b04147dee..3f2b5d944 100644 --- a/client/src/app/+videos/+video-edit/video-update.component.html +++ b/client/src/app/+videos/+video-edit/video-update.component.html @@ -44,7 +44,7 @@
diff --git a/client/src/app/+videos/+video-watch/shared/comment/video-comment-add.component.html b/client/src/app/+videos/+video-watch/shared/comment/video-comment-add.component.html index 1021c5e41..76efc3013 100644 --- a/client/src/app/+videos/+video-watch/shared/comment/video-comment-add.component.html +++ b/client/src/app/+videos/+video-watch/shared/comment/video-comment-add.component.html @@ -50,7 +50,7 @@ Cancel - @@ -75,11 +75,11 @@
diff --git a/client/src/app/+videos/+video-watch/shared/comment/video-comments.component.scss b/client/src/app/+videos/+video-watch/shared/comment/video-comments.component.scss index a76eee96e..fc89a750a 100644 --- a/client/src/app/+videos/+video-watch/shared/comment/video-comments.component.scss +++ b/client/src/app/+videos/+video-watch/shared/comment/video-comments.component.scss @@ -24,8 +24,8 @@ display: inline-block; transition: ease-in .2s opacity; width: 12px; - position: relative; - top: -3px; + height: 12px; + line-height: 12px; @include margin-left(5px); } diff --git a/client/src/app/+videos/+video-watch/shared/information/privacy-concerns.component.html b/client/src/app/+videos/+video-watch/shared/information/privacy-concerns.component.html index 93c4ba7a7..e3fc96ac7 100644 --- a/client/src/app/+videos/+video-watch/shared/information/privacy-concerns.component.html +++ b/client/src/app/+videos/+video-watch/shared/information/privacy-concerns.component.html @@ -10,7 +10,7 @@ More information - diff --git a/client/src/app/header/header.component.html b/client/src/app/header/header.component.html index 1be74daa2..370d5cd32 100644 --- a/client/src/app/header/header.component.html +++ b/client/src/app/header/header.component.html @@ -10,11 +10,11 @@ @if (!loggedIn) { - + - + } @else { @@ -54,14 +54,14 @@ > Interface: - {{ currentInterfaceLanguage }} + {{ currentInterfaceLanguage }} Videos: - {{ videoLanguages.join(', ') }} + {{ videoLanguages.join(', ') }} diff --git a/client/src/app/header/notification-dropdown.component.scss b/client/src/app/header/notification-dropdown.component.scss index f17b2e12d..a7308276f 100644 --- a/client/src/app/header/notification-dropdown.component.scss +++ b/client/src/app/header/notification-dropdown.component.scss @@ -121,9 +121,11 @@ font-size: 10px; font-weight: $font-semibold; - border-radius: 15px; - width: 15px; - height: 15px; + border-radius: 16px; + width: 16px; + height: 16px; + + line-height: 1; @media screen and (max-width: $mobile-view) { top: -4px; diff --git a/client/src/app/menu/language-chooser.component.html b/client/src/app/menu/language-chooser.component.html index ec4ac389e..6a4079507 100644 --- a/client/src/app/menu/language-chooser.component.html +++ b/client/src/app/menu/language-chooser.component.html @@ -7,7 +7,7 @@ - + Help to translate PeerTube! diff --git a/client/src/app/menu/language-chooser.component.scss b/client/src/app/menu/language-chooser.component.scss index 1bd06ac9d..447f6b250 100644 --- a/client/src/app/menu/language-chooser.component.scss +++ b/client/src/app/menu/language-chooser.component.scss @@ -1,18 +1,6 @@ @use '_variables' as *; @use '_mixins' as *; -.help-to-translate { - border-radius: 0; - - @include peertube-button-link; - @include orange-button; - - &:focus-visible, - &:focus { - box-shadow: none; - } -} - .modal-body { text-align: center; diff --git a/client/src/app/menu/menu.component.scss b/client/src/app/menu/menu.component.scss index 1ded70c64..8dc82eb5b 100644 --- a/client/src/app/menu/menu.component.scss +++ b/client/src/app/menu/menu.component.scss @@ -36,7 +36,11 @@ border-radius: 100%; background-color: pvar(--secondary-400); - @include button-with-icon(20px, 0, -1px, 1px); + @include button-with-icon(20px, 0, 0, 1px); + + my-global-icon { + margin: auto; + } &:hover { opacity: 0.8; @@ -88,20 +92,6 @@ background-color: pvar(--secondary-300); } -.collapsed { - .main-menu-wrapper { - max-height: 100%; - } - - .main-menu { - border-start-start-radius: 0; - border-end-start-radius: 0; - - padding-top: 1rem; - padding-bottom: 1rem; - } -} - .menu-link, .menu-button, .block-title, @@ -122,8 +112,26 @@ } } -.collapsed .toggle-menu-container { - text-align: center; +.collapsed { + .main-menu-wrapper { + max-height: 100%; + } + + .main-menu { + border-start-start-radius: 0; + border-end-start-radius: 0; + + padding-top: 1rem; + padding-bottom: 1rem; + } + + .toggle-menu-container { + text-align: center; + } + + .menu-link { + justify-content: center; + } } .block-title { @@ -140,7 +148,7 @@ color: #2b2f32; white-space: normal; word-break: break-word; - transition: background-color .1s ease-inF-out; + transition: background-color .1s ease-in-out; width: 100%; padding-top: 0.5rem; padding-bottom: 0.5rem; @@ -159,6 +167,7 @@ my-global-icon { width: 22px; height: 22px; + line-height: 22px; position: relative; top: -1px; color: pvar(--secondary); @@ -169,10 +178,6 @@ } } -.menu-container.collapsed .menu-link { - justify-content: center; -} - .menu-button { margin-top: 0.5rem; } diff --git a/client/src/app/modal/account-setup-warning-modal.component.html b/client/src/app/modal/account-setup-warning-modal.component.html index ce4e3bd1c..8a2baa6f4 100644 --- a/client/src/app/modal/account-setup-warning-modal.component.html +++ b/client/src/app/modal/account-setup-warning-modal.component.html @@ -27,12 +27,12 @@ Set up diff --git a/client/src/app/modal/admin-welcome-modal.component.html b/client/src/app/modal/admin-welcome-modal.component.html index 9179d062a..c608481ec 100644 --- a/client/src/app/modal/admin-welcome-modal.component.html +++ b/client/src/app/modal/admin-welcome-modal.component.html @@ -72,12 +72,12 @@
- +
diff --git a/client/src/app/shared/shared-abuse-list/moderation-comment-modal.component.html b/client/src/app/shared/shared-abuse-list/moderation-comment-modal.component.html index b41664aac..afcf77e13 100644 --- a/client/src/app/shared/shared-abuse-list/moderation-comment-modal.component.html +++ b/client/src/app/shared/shared-abuse-list/moderation-comment-modal.component.html @@ -25,11 +25,11 @@
- +
diff --git a/client/src/app/shared/shared-actor-image-edit/actor-avatar-edit.component.scss b/client/src/app/shared/shared-actor-image-edit/actor-avatar-edit.component.scss index 46b30d2c9..57cd9d3f7 100644 --- a/client/src/app/shared/shared-actor-image-edit/actor-avatar-edit.component.scss +++ b/client/src/app/shared/shared-actor-image-edit/actor-avatar-edit.component.scss @@ -33,6 +33,7 @@ .actor-img-edit-button { border-radius: 50%; + padding: 8px 20px; position: absolute; bottom: 5px; diff --git a/client/src/app/shared/shared-actor-image-edit/actor-image-edit.scss b/client/src/app/shared/shared-actor-image-edit/actor-image-edit.scss index 371e6ed2b..383d788bd 100644 --- a/client/src/app/shared/shared-actor-image-edit/actor-image-edit.scss +++ b/client/src/app/shared/shared-actor-image-edit/actor-image-edit.scss @@ -8,7 +8,7 @@ .actor-img-edit-button { @include peertube-button-file(31px); @include button-with-icon(19px, 0); - @include orange-button; + @include primary-button; & { display: flex; diff --git a/client/src/app/shared/shared-custom-markup/peertube-custom-tags/button-markup.component.ts b/client/src/app/shared/shared-custom-markup/peertube-custom-tags/button-markup.component.ts index 49acba7da..41f3c2c68 100644 --- a/client/src/app/shared/shared-custom-markup/peertube-custom-tags/button-markup.component.ts +++ b/client/src/app/shared/shared-custom-markup/peertube-custom-tags/button-markup.component.ts @@ -32,8 +32,8 @@ export class ButtonMarkupComponent implements CustomMarkupComponent { getClasses () { const additionalClass = this.theme === 'primary' - ? 'orange-button' - : 'grey-button' + ? 'primary-button' + : 'secondary-button' return [ 'peertube-button-link', additionalClass ] } diff --git a/client/src/app/shared/shared-forms/reactive-file.component.ts b/client/src/app/shared/shared-forms/reactive-file.component.ts index ce8f7810e..c926abc4b 100644 --- a/client/src/app/shared/shared-forms/reactive-file.component.ts +++ b/client/src/app/shared/shared-forms/reactive-file.component.ts @@ -62,8 +62,8 @@ export class ReactiveFileComponent implements OnInit, OnChanges, ControlValueAcc buildClasses () { this.classes = { 'with-icon': !!this.icon, - 'orange-button': this.theme === 'primary', - 'grey-button': this.theme === 'secondary' + 'primary-button': this.theme === 'primary', + 'secondary-button': this.theme === 'secondary' } } diff --git a/client/src/app/shared/shared-icons/global-icon.component.scss b/client/src/app/shared/shared-icons/global-icon.component.scss index 10180829f..c956a2f36 100644 --- a/client/src/app/shared/shared-icons/global-icon.component.scss +++ b/client/src/app/shared/shared-icons/global-icon.component.scss @@ -1,5 +1,6 @@ ::ng-deep { svg { + vertical-align: bottom; width: inherit; height: inherit; } diff --git a/client/src/app/shared/shared-main/buttons/action-dropdown.component.html b/client/src/app/shared/shared-main/buttons/action-dropdown.component.html index f4c58f6c6..bc7a05ad3 100644 --- a/client/src/app/shared/shared-main/buttons/action-dropdown.component.html +++ b/client/src/app/shared/shared-main/buttons/action-dropdown.component.html @@ -1,12 +1,16 @@ diff --git a/client/src/app/shared/shared-main/buttons/action-dropdown.component.scss b/client/src/app/shared/shared-main/buttons/action-dropdown.component.scss index aaed9360a..368a60e79 100644 --- a/client/src/app/shared/shared-main/buttons/action-dropdown.component.scss +++ b/client/src/app/shared/shared-main/buttons/action-dropdown.component.scss @@ -8,40 +8,12 @@ .action-button { display: inline-block; - @include peertube-button; - - &.button-styled { - - &.grey { - @include grey-button; - } - - &.orange { - @include orange-button; - } - - &:hover, - &:active, - &:focus { - background-color: $grey-background-color; - } - } - &::after { display: none; } - .more-icon { - width: 21px; - - ::ng-deep { - @include apply-svg-color(pvar(--actionButtonColor)); - } - } - - &.small { - font-size: 14px; - padding: 0 10px; + &.icon-only { + @include button-with-icon(21px, 0, 0); } } diff --git a/client/src/app/shared/shared-main/buttons/action-dropdown.component.ts b/client/src/app/shared/shared-main/buttons/action-dropdown.component.ts index 4206288d6..5eaf90b5e 100644 --- a/client/src/app/shared/shared-main/buttons/action-dropdown.component.ts +++ b/client/src/app/shared/shared-main/buttons/action-dropdown.component.ts @@ -24,7 +24,7 @@ export type DropdownAction = { } export type DropdownButtonSize = 'normal' | 'small' -export type DropdownTheme = 'orange' | 'grey' +export type DropdownTheme = 'primary' | 'secondary' export type DropdownDirection = 'horizontal' | 'vertical' @Component({ @@ -59,7 +59,7 @@ export class ActionDropdownComponent { @Input() buttonStyled = true @Input() label: string - @Input() theme: DropdownTheme = 'grey' + @Input() theme: DropdownTheme = 'secondary' getActions (): DropdownAction[][] { if (this.actions.length !== 0 && Array.isArray(this.actions[0])) return this.actions as DropdownAction[][] diff --git a/client/src/app/shared/shared-main/buttons/button.component.scss b/client/src/app/shared/shared-main/buttons/button.component.scss index 1de6ac79b..a43fa57ba 100644 --- a/client/src/app/shared/shared-main/buttons/button.component.scss +++ b/client/src/app/shared/shared-main/buttons/button.component.scss @@ -20,10 +20,6 @@ &.has-icon { @include button-with-icon(24px, 0); } - - &.icon-only { - padding: 6px 8px !important; - } } } diff --git a/client/src/app/shared/shared-main/buttons/button.component.ts b/client/src/app/shared/shared-main/buttons/button.component.ts index 79b48a8c7..ba02e3cf7 100644 --- a/client/src/app/shared/shared-main/buttons/button.component.ts +++ b/client/src/app/shared/shared-main/buttons/button.component.ts @@ -17,7 +17,7 @@ import { LoaderComponent } from '../common/loader.component' export class ButtonComponent implements OnChanges, AfterViewInit { @Input() label = '' - @Input() theme: 'orange' | 'grey' | 'primary' | 'secondary' | 'tertiary' = 'grey' + @Input() theme: 'primary' | 'secondary' | 'tertiary' = 'secondary' @Input() icon: GlobalIconName @Input() ptRouterLink: string[] | string @Input() title: string @@ -43,14 +43,12 @@ export class ButtonComponent implements OnChanges, AfterViewInit { this.classes = { 'peertube-button': !this.ptRouterLink, 'peertube-button-link': !!this.ptRouterLink, - 'orange-button': this.theme === 'orange', - 'grey-button': this.theme === 'grey', 'primary-button': this.theme === 'primary', 'secondary-button': this.theme === 'secondary', 'tertiary-button': this.theme === 'tertiary', 'has-icon': !!this.icon, 'rounded-icon-button': !!this.rounded, - 'icon-only': !(this.labelContent?.nativeElement as HTMLElement)?.innerText, + 'icon-only': !this.label && !(this.labelContent?.nativeElement as HTMLElement)?.innerText, 'responsive-label': this.responsiveLabel } } diff --git a/client/src/app/shared/shared-main/buttons/delete-button.component.ts b/client/src/app/shared/shared-main/buttons/delete-button.component.ts index 773caf94f..3b5b883d3 100644 --- a/client/src/app/shared/shared-main/buttons/delete-button.component.ts +++ b/client/src/app/shared/shared-main/buttons/delete-button.component.ts @@ -5,7 +5,7 @@ import { ButtonComponent } from './button.component' selector: 'my-delete-button', template: ` diff --git a/client/src/app/shared/shared-main/channel/channels-setup-message.component.html b/client/src/app/shared/shared-main/channel/channels-setup-message.component.html index c8d5ab88a..178db914a 100644 --- a/client/src/app/shared/shared-main/channel/channels-setup-message.component.html +++ b/client/src/app/shared/shared-main/channel/channels-setup-message.component.html @@ -3,5 +3,5 @@
Some of your channels are not fully set up. Make them welcoming and explicit about what you publish by adding a banner, an avatar and a description.
- Set up my channels + Set up my channels diff --git a/client/src/app/shared/shared-moderation/account-blocklist.component.html b/client/src/app/shared/shared-moderation/account-blocklist.component.html index 65fde65e4..1e6e607a9 100644 --- a/client/src/app/shared/shared-moderation/account-blocklist.component.html +++ b/client/src/app/shared/shared-moderation/account-blocklist.component.html @@ -30,7 +30,7 @@ - + diff --git a/client/src/app/shared/shared-moderation/batch-domains-modal.component.html b/client/src/app/shared/shared-moderation/batch-domains-modal.component.html index 0b0295924..ddb27d7fa 100644 --- a/client/src/app/shared/shared-moderation/batch-domains-modal.component.html +++ b/client/src/app/shared/shared-moderation/batch-domains-modal.component.html @@ -30,11 +30,11 @@
- +
diff --git a/client/src/app/shared/shared-moderation/report-modals/report.component.html b/client/src/app/shared/shared-moderation/report-modals/report.component.html index 751ffd800..496fe2f76 100644 --- a/client/src/app/shared/shared-moderation/report-modals/report.component.html +++ b/client/src/app/shared/shared-moderation/report-modals/report.component.html @@ -52,11 +52,11 @@
- +
diff --git a/client/src/app/shared/shared-moderation/report-modals/video-report.component.html b/client/src/app/shared/shared-moderation/report-modals/video-report.component.html index 421c0c425..2aee48312 100644 --- a/client/src/app/shared/shared-moderation/report-modals/video-report.component.html +++ b/client/src/app/shared/shared-moderation/report-modals/video-report.component.html @@ -83,11 +83,11 @@
- +
diff --git a/client/src/app/shared/shared-moderation/server-blocklist.component.html b/client/src/app/shared/shared-moderation/server-blocklist.component.html index 59ebc85f2..6220d2ee6 100644 --- a/client/src/app/shared/shared-moderation/server-blocklist.component.html +++ b/client/src/app/shared/shared-moderation/server-blocklist.component.html @@ -38,7 +38,7 @@ - +
diff --git a/client/src/app/shared/shared-moderation/user-ban-modal.component.html b/client/src/app/shared/shared-moderation/user-ban-modal.component.html index e1acee7d5..d45ffe6d4 100644 --- a/client/src/app/shared/shared-moderation/user-ban-modal.component.html +++ b/client/src/app/shared/shared-moderation/user-ban-modal.component.html @@ -33,11 +33,11 @@
- +
diff --git a/client/src/app/shared/shared-moderation/video-block.component.html b/client/src/app/shared/shared-moderation/video-block.component.html index f73cb7bc1..8187dbdc7 100644 --- a/client/src/app/shared/shared-moderation/video-block.component.html +++ b/client/src/app/shared/shared-moderation/video-block.component.html @@ -45,11 +45,11 @@
- +
diff --git a/client/src/app/shared/shared-share-modal/video-share.component.html b/client/src/app/shared/shared-share-modal/video-share.component.html index f0181e994..5f026bbb6 100644 --- a/client/src/app/shared/shared-share-modal/video-share.component.html +++ b/client/src/app/shared/shared-share-modal/video-share.component.html @@ -16,7 +16,7 @@
This playlist is private so you won't be able to share it with external users
-
+ Update playlist privacy @@ -106,7 +106,7 @@
This video is private so you won't be able to share it with external users
- + Update video privacy
diff --git a/client/src/app/shared/shared-support-modal/support-modal.component.html b/client/src/app/shared/shared-support-modal/support-modal.component.html index fbe94432a..926c91ddb 100644 --- a/client/src/app/shared/shared-support-modal/support-modal.component.html +++ b/client/src/app/shared/shared-support-modal/support-modal.component.html @@ -10,7 +10,7 @@ diff --git a/client/src/app/shared/shared-user-settings/user-interface-settings.component.html b/client/src/app/shared/shared-user-settings/user-interface-settings.component.html index e6847aabd..eb76d22c1 100644 --- a/client/src/app/shared/shared-user-settings/user-interface-settings.component.html +++ b/client/src/app/shared/shared-user-settings/user-interface-settings.component.html @@ -13,5 +13,5 @@ - + diff --git a/client/src/app/shared/shared-user-settings/user-interface-settings.component.scss b/client/src/app/shared/shared-user-settings/user-interface-settings.component.scss index 4114b8079..ff81a07e4 100644 --- a/client/src/app/shared/shared-user-settings/user-interface-settings.component.scss +++ b/client/src/app/shared/shared-user-settings/user-interface-settings.component.scss @@ -1,14 +1,6 @@ @use '_variables' as *; @use '_mixins' as *; -input[type=submit] { - display: block; - margin-top: 15px; - - @include peertube-button; - @include orange-button; -} - .peertube-select-container { margin-bottom: 30px; diff --git a/client/src/app/shared/shared-user-settings/user-video-settings.component.html b/client/src/app/shared/shared-user-settings/user-video-settings.component.html index d03ebae7d..90b91d387 100644 --- a/client/src/app/shared/shared-user-settings/user-video-settings.component.html +++ b/client/src/app/shared/shared-user-settings/user-video-settings.component.html @@ -69,5 +69,5 @@ - + diff --git a/client/src/app/shared/shared-user-settings/user-video-settings.component.scss b/client/src/app/shared/shared-user-settings/user-video-settings.component.scss index 1917d5110..e0c201ece 100644 --- a/client/src/app/shared/shared-user-settings/user-video-settings.component.scss +++ b/client/src/app/shared/shared-user-settings/user-video-settings.component.scss @@ -1,13 +1,6 @@ @use '_variables' as *; @use '_mixins' as *; -input[type=submit] { - margin-top: 15px; - - @include peertube-button; - @include orange-button; -} - .peertube-select-container { @include peertube-select-container(340px); } diff --git a/client/src/app/shared/shared-user-subscription/remote-subscribe.component.html b/client/src/app/shared/shared-user-subscription/remote-subscribe.component.html index 656d1beb3..343d75603 100644 --- a/client/src/app/shared/shared-user-subscription/remote-subscribe.component.html +++ b/client/src/app/shared/shared-user-subscription/remote-subscribe.component.html @@ -1,15 +1,17 @@
- +
- diff --git a/client/src/app/shared/shared-user-subscription/remote-subscribe.component.scss b/client/src/app/shared/shared-user-subscription/remote-subscribe.component.scss deleted file mode 100644 index e87f43b63..000000000 --- a/client/src/app/shared/shared-user-subscription/remote-subscribe.component.scss +++ /dev/null @@ -1,6 +0,0 @@ -@use '_mixins' as *; - -.btn-remote-follow { - @include peertube-button; - @include orange-button; -} diff --git a/client/src/app/shared/shared-user-subscription/remote-subscribe.component.ts b/client/src/app/shared/shared-user-subscription/remote-subscribe.component.ts index 1eae1c7d1..8fa11355b 100644 --- a/client/src/app/shared/shared-user-subscription/remote-subscribe.component.ts +++ b/client/src/app/shared/shared-user-subscription/remote-subscribe.component.ts @@ -12,7 +12,6 @@ import { FormsModule, ReactiveFormsModule } from '@angular/forms' @Component({ selector: 'my-remote-subscribe', templateUrl: './remote-subscribe.component.html', - styleUrls: [ './remote-subscribe.component.scss' ], standalone: true, imports: [ FormsModule, ReactiveFormsModule, NgIf, HelpComponent, PeerTubeTemplateDirective ] }) diff --git a/client/src/app/shared/shared-user-subscription/subscribe-button.component.ts b/client/src/app/shared/shared-user-subscription/subscribe-button.component.ts index 325e77f88..706bdd0c0 100644 --- a/client/src/app/shared/shared-user-subscription/subscribe-button.component.ts +++ b/client/src/app/shared/shared-user-subscription/subscribe-button.component.ts @@ -236,8 +236,8 @@ export class SubscribeButtonComponent implements OnChanges { private buildClasses () { this.buttonClasses = { 'peertube-button': true, - 'orange-button': !this.isAllChannelsSubscribed, - 'grey-button': this.isAllChannelsSubscribed + 'primary-button': !this.isAllChannelsSubscribed, + 'secondary-button': this.isAllChannelsSubscribed } } } diff --git a/client/src/app/shared/shared-video-comment/video-comment-list-admin-owner.component.html b/client/src/app/shared/shared-video-comment/video-comment-list-admin-owner.component.html index a9fd8367a..d0536d63c 100644 --- a/client/src/app/shared/shared-video-comment/video-comment-list-admin-owner.component.html +++ b/client/src/app/shared/shared-video-comment/video-comment-list-admin-owner.component.html @@ -9,7 +9,7 @@
@@ -31,7 +31,7 @@ More information - + Actions Account @@ -56,7 +56,7 @@ diff --git a/client/src/app/shared/shared-video-live/live-stream-information.component.html b/client/src/app/shared/shared-video-live/live-stream-information.component.html index 325a6e44a..7be81e8d0 100644 --- a/client/src/app/shared/shared-video-live/live-stream-information.component.html +++ b/client/src/app/shared/shared-video-live/live-stream-information.component.html @@ -51,7 +51,7 @@ - +
diff --git a/client/src/app/shared/shared-video-playlist/video-playlist-element-miniature.component.scss b/client/src/app/shared/shared-video-playlist/video-playlist-element-miniature.component.scss index 5449b6b59..c8c5aef4f 100644 --- a/client/src/app/shared/shared-video-playlist/video-playlist-element-miniature.component.scss +++ b/client/src/app/shared/shared-video-playlist/video-playlist-element-miniature.component.scss @@ -174,13 +174,6 @@ my-video-thumbnail, my-peertube-checkbox { @include margin-right(5px); } - - input { - margin-top: 10px; - - @include peertube-button; - @include orange-button; - } } } diff --git a/client/src/app/shared/standalone-upload/upload-progress.component.html b/client/src/app/shared/standalone-upload/upload-progress.component.html index 0c55d1e9f..f96324d29 100644 --- a/client/src/app/shared/standalone-upload/upload-progress.component.html +++ b/client/src/app/shared/standalone-upload/upload-progress.component.html @@ -8,7 +8,7 @@
@@ -19,8 +19,8 @@ > - - + + diff --git a/client/src/app/shared/standalone-watched-words/watched-words-list-admin-owner.component.html b/client/src/app/shared/standalone-watched-words/watched-words-list-admin-owner.component.html index f47cc1cfd..46088d3db 100644 --- a/client/src/app/shared/standalone-watched-words/watched-words-list-admin-owner.component.html +++ b/client/src/app/shared/standalone-watched-words/watched-words-list-admin-owner.component.html @@ -44,7 +44,7 @@ diff --git a/client/src/app/shared/standalone-watched-words/watched-words-list-save-modal.component.html b/client/src/app/shared/standalone-watched-words/watched-words-list-save-modal.component.html index 0c3b02a77..70b8a5f2d 100644 --- a/client/src/app/shared/standalone-watched-words/watched-words-list-save-modal.component.html +++ b/client/src/app/shared/standalone-watched-words/watched-words-list-save-modal.component.html @@ -36,12 +36,12 @@ diff --git a/client/src/assets/images/feather/delete.svg b/client/src/assets/images/feather/delete.svg index f24d55bf6..6867b4214 100644 --- a/client/src/assets/images/feather/delete.svg +++ b/client/src/assets/images/feather/delete.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/client/src/assets/images/feather/edit-2.svg b/client/src/assets/images/feather/edit-2.svg index 06830c9d0..13a00256e 100644 --- a/client/src/assets/images/feather/edit-2.svg +++ b/client/src/assets/images/feather/edit-2.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/client/src/assets/images/feather/refresh-cw.svg b/client/src/assets/images/feather/refresh-cw.svg index 06c358dd0..471b2cb84 100644 --- a/client/src/assets/images/feather/refresh-cw.svg +++ b/client/src/assets/images/feather/refresh-cw.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/client/src/sass/bootstrap.scss b/client/src/sass/bootstrap.scss index ba2a146e4..8183de3ce 100644 --- a/client/src/sass/bootstrap.scss +++ b/client/src/sass/bootstrap.scss @@ -314,11 +314,11 @@ body { font-weight: $font-semibold; .active { - @include orange-button; + @include primary-button; } :not(.active) { - @include grey-button; + @include secondary-button; } > * { diff --git a/client/src/sass/class-helpers/_buttons.scss b/client/src/sass/class-helpers/_buttons.scss index c378faa4b..4209d95cb 100644 --- a/client/src/sass/class-helpers/_buttons.scss +++ b/client/src/sass/class-helpers/_buttons.scss @@ -8,6 +8,10 @@ @include peertube-button-big; } +.peertube-button-small { + @include peertube-button-small; +} + .peertube-button-link { @include peertube-button-link; } @@ -16,10 +20,6 @@ @include peertube-button-big-link; } -.orange-button { - @include orange-button; -} - .primary-button { @include primary-button; } @@ -28,14 +28,6 @@ @include rounded-icon-button; } -.orange-button-inverted { - @include orange-button-inverted; -} - -.grey-button { - @include grey-button; -} - .secondary-button { @include secondary-button; } @@ -58,7 +50,7 @@ .peertube-create-button { @include peertube-button-link; - @include orange-button; + @include primary-button; @include button-with-icon(20px, 5px, -1px); } diff --git a/client/src/sass/class-helpers/_forms.scss b/client/src/sass/class-helpers/_forms.scss index 50b3b275c..c4ad2778f 100644 --- a/client/src/sass/class-helpers/_forms.scss +++ b/client/src/sass/class-helpers/_forms.scss @@ -70,7 +70,7 @@ label + .form-group-description, height: auto; @include peertube-button; - @include grey-button; + @include tertiary-button; &.reset-button-small { font-size: 80%; diff --git a/client/src/sass/include/_mixins.scss b/client/src/sass/include/_mixins.scss index a8ff0bc29..89491cfe4 100644 --- a/client/src/sass/include/_mixins.scss +++ b/client/src/sass/include/_mixins.scss @@ -81,7 +81,7 @@ } @mixin rounded-line-height-1-5 ($font-size) { - line-height: $font-size + math.round(math.div($font-size, 2)); + line-height: calc(#{$font-size} + #{math.round(math.div($font-size, 2))}); } @mixin rounded-line-height-1-42 ($font-size) { @@ -124,42 +124,6 @@ @include peertube-input-text($width); } -@mixin orange-button { - @include button-focus(pvar(--mainColorLightest)); - - &, - &:active, - &:focus { - color: #fff; - background-color: pvar(--mainColor); - border-color: inherit; - } - - // Override bootstrap - &.btn:active, - &.btn:focus-visible, - &.btn.show { - color: #fff !important; - background-color: pvar(--mainColor) !important; - border-color: inherit !important; - } - - &:hover { - color: #fff; - background-color: pvar(--mainHoverColor); - } - - &[disabled] { - cursor: default; - color: #fff; - background-color: pvar(--inputBorderColor); - } - - my-global-icon { - @include apply-svg-color(#fff); - } -} - @mixin primary-button { @include button-focus(pvar(--primary-300)); @@ -168,7 +132,7 @@ &:focus { color: pvar(--fg); background-color: pvar(--primary); - border-color: inherit; + border: 1px solid pvar(--primary); } // Override bootstrap @@ -177,7 +141,7 @@ &.btn.show { color: pvar(--fg) !important; background-color: pvar(--primary) !important; - border-color: inherit !important; + border: 1px solid pvar(--primary) !important; } &:hover { @@ -187,7 +151,7 @@ &[disabled] { pointer-events: none; - opacity: 0.8; + opacity: 0.6; } my-global-icon { @@ -270,85 +234,14 @@ } @mixin rounded-icon-button { - padding: 0.5rem; - border-radius: 100%; + padding: 0.5rem !important; + border-radius: 100% !important; my-global-icon { width: 24px; } } -@mixin orange-button-inverted { - padding: 2px 13px; - border: 2px solid pvar(--mainColor); - font-weight: $font-semibold; - - @include button-focus(pvar(--mainColorLightest)); - - &, - &:active, - &:focus { - color: pvar(--mainColor); - background-color: pvar(--bg); - } - - // Override bootstrap - &.btn:active, - &.btn:focus-visible, - &.btn.show { - color: pvar(--mainColor); - background-color: pvar(--bg); - border-color: inherit !important; - } - - &:hover { - color: pvar(--mainColor); - background-color: pvar(--mainColorLightest); - } - - &[disabled] { - cursor: default; - color: pvar(--mainColor); - background-color: pvar(--inputBorderColor); - } - - my-global-icon { - @include apply-svg-color(pvar(--mainColor)); - } -} - -@mixin grey-button { - color: pvar(--greyForegroundColor); - background-color: pvar(--greyBackgroundColor); - - @include button-focus($grey-button-outline-color); - - &:hover, - &:active, - &:focus, - &[disabled] { - color: pvar(--greyForegroundColor); - background-color: pvar(--greySecondaryBackgroundColor); - } - - // Override bootstrap - &.btn:active, - &.btn:focus-visible, - &.btn.show { - color: pvar(--greyForegroundColor); - background-color: pvar(--greySecondaryBackgroundColor); - border-color: inherit !important; - } - - &[disabled] { - cursor: default; - } - - my-global-icon { - @include apply-svg-color(pvar(--greyForegroundColor)); - } -} - @mixin danger-button { background-color: pvar(--red); color: pvar(--white); @@ -373,7 +266,6 @@ @mixin peertube-button { padding: 6px 20px; - border: 0; font-weight: $font-semibold; @@ -383,13 +275,21 @@ cursor: pointer; font-size: $button-font-size; - - @include rounded-line-height-1-5($button-font-size); + line-height: 1.5; my-global-icon + *:not(:empty) { @include margin-right(8px); @include margin-left(8px); } + + &.icon-only { + padding: 6px 8px; + } + + &:is(input[type=button]) { + // Because of primeng that redefines border-radius of all input[type="..."] + border-radius: 4px !important; + } } @mixin peertube-button-big { @@ -401,7 +301,12 @@ font-weight: $font-semibold; // Because of primeng that redefines border-radius of all input[type="..."] - border-radius: 3px !important; + border-radius: 4px !important; +} + +@mixin peertube-button-small { + padding: 0 10px !important; + font-size: 14px !important; } @mixin peertube-button-link { @@ -431,6 +336,8 @@ position: relative; display: inline-block; width: $width; + height: $width; + line-height: $width; top: $top; right: $right; @@ -536,7 +443,7 @@ } &.peertube-select-button { - @include grey-button; + @include secondary-button; select { font-weight: $font-semibold; diff --git a/client/src/sass/include/_variables.scss b/client/src/sass/include/_variables.scss index eacda0e2a..7e3c3e317 100644 --- a/client/src/sass/include/_variables.scss +++ b/client/src/sass/include/_variables.scss @@ -15,7 +15,6 @@ $grey-background-color: #E5E5E5; $grey-background-hover-color: #EFEFEF; $grey-foreground-color: #585858; $grey-foreground-hover-color: #303030; -$grey-button-outline-color: color.scale($grey-foreground-color, $alpha: -95%); $main-color: hsl(24, 90%, 50%); $main-color-lighter: color.adjust($main-color, $lightness: 10%); @@ -35,7 +34,7 @@ $red: #dc3545; $green: #198754; $white: #fff; -$button-font-size: 15px; +$button-font-size: 1rem; $header-height: 84px;