From 4c8749cb9e1e4a8d61697434e372f342def7bc70 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 8 Jun 2022 16:14:24 +0200 Subject: Migrate to bootstrap 5 --- .../shared-abuse-list/abuse-details.component.html | 10 ++--- .../abuse-list-table.component.html | 2 +- .../actor-avatar-edit.component.html | 4 +- .../actor-avatar-edit.component.scss | 52 +++++++++++----------- .../advanced-input-filter.component.html | 13 +++--- .../advanced-input-filter.component.scss | 1 - .../shared-forms/input-switch.component.html | 2 +- .../input-toggle-hidden.component.html | 24 +++++----- .../input-toggle-hidden.component.scss | 11 +++-- .../shared-forms/peertube-checkbox.component.html | 4 +- .../shared-forms/peertube-checkbox.component.scss | 2 +- .../select/select-channel.component.html | 2 +- .../select/select-checkbox.component.html | 4 +- .../select/select-checkbox.component.scss | 2 +- .../instance-about-accordion.component.scss | 23 ---------- .../instance-features-table.component.html | 2 +- .../instance-features-table.component.scss | 5 ++- .../misc/simple-search-input.component.html | 5 +-- .../account-block-badges.component.html | 8 ++-- .../account-block-badges.component.scss | 3 +- .../account-blocklist.component.html | 2 +- .../report-modals/report.component.html | 5 +-- .../report-modals/video-report.component.html | 44 ++++++++---------- .../server-blocklist.component.html | 2 +- .../shared-share-modal/video-share.component.html | 3 +- .../shared-share-modal/video-share.component.scss | 7 --- .../user-video-settings.component.html | 4 +- .../user-video-settings.component.scss | 6 --- .../remote-subscribe.component.html | 2 +- .../live-stream-information.component.html | 8 ++-- .../live-stream-information.component.scss | 7 +-- .../video-download.component.html | 33 +++++++------- .../video-download.component.scss | 7 +++ .../videos-list.component.html | 6 +-- ...video-playlist-element-miniature.component.html | 2 +- ...video-playlist-element-miniature.component.scss | 5 +-- 36 files changed, 145 insertions(+), 177 deletions(-) (limited to 'client/src/app/shared') diff --git a/client/src/app/shared/shared-abuse-list/abuse-details.component.html b/client/src/app/shared/shared-abuse-list/abuse-details.component.html index 986de15ed..bb87279d7 100644 --- a/client/src/app/shared/shared-abuse-list/abuse-details.component.html +++ b/client/src/app/shared/shared-abuse-list/abuse-details.component.html @@ -17,9 +17,9 @@ - {abuse.countReportsForReporter, plural, =1 {1 report} other {{{ abuse.countReportsForReporter }} reports}} + {abuse.countReportsForReporter, plural, =1 {1 report} other {{{ abuse.countReportsForReporter }} reports}} @@ -37,9 +37,9 @@ - {abuse.countReportsForReportee, plural, =1 {1 report} other {{{ abuse.countReportsForReportee }} reports}} + {abuse.countReportsForReportee, plural, =1 {1 report} other {{{ abuse.countReportsForReportee }} reports}} @@ -53,7 +53,7 @@
Report - #{{ abuse.id }} + #{{ abuse.id }}
diff --git a/client/src/app/shared/shared-abuse-list/abuse-list-table.component.html b/client/src/app/shared/shared-abuse-list/abuse-list-table.component.html index f0a27c6e2..6d1de808d 100644 --- a/client/src/app/shared/shared-abuse-list/abuse-list-table.component.html +++ b/client/src/app/shared/shared-abuse-list/abuse-list-table.component.html @@ -8,7 +8,7 @@ >
-
+
diff --git a/client/src/app/shared/shared-actor-image-edit/actor-avatar-edit.component.html b/client/src/app/shared/shared-actor-image-edit/actor-avatar-edit.component.html index e9c5fadcf..b63bf1f92 100644 --- a/client/src/app/shared/shared-actor-image-edit/actor-avatar-edit.component.html +++ b/client/src/app/shared/shared-actor-image-edit/actor-avatar-edit.component.html @@ -6,7 +6,7 @@
- +
@@ -15,7 +15,7 @@ #avatarPopover="ngbPopover" [ngbPopover]="avatarEditContent" popoverClass="popover-image-info" autoClose="outside" placement="right" > - +
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 cc5e36a32..a50a2bb0e 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 @@ -3,37 +3,37 @@ .actor { display: flex; +} - my-actor-avatar { - @include margin-right(15px); - } +my-actor-avatar { + @include margin-right(15px); +} + +.actor-info { + display: inline-flex; + flex-direction: column; +} + +.actor-info-display-name { + font-size: 20px; + font-weight: $font-bold; - .actor-info { - display: inline-flex; - flex-direction: column; - - .actor-info-display-name { - font-size: 20px; - font-weight: $font-bold; - - @media screen and (max-width: $small-view) { - font-size: 16px; - } - } - - .actor-info-username { - position: relative; - font-size: 14px; - color: pvar(--greyForegroundColor); - } - - .actor-info-followers { - font-size: 15px; - padding-bottom: .5rem; - } + @media screen and (max-width: $small-view) { + font-size: 16px; } } +.actor-info-username { + position: relative; + font-size: 14px; + color: pvar(--greyForegroundColor); +} + +.actor-info-followers { + font-size: 15px; + padding-bottom: .5rem; +} + .actor-img-edit-container { position: relative; width: 0; diff --git a/client/src/app/shared/shared-forms/advanced-input-filter.component.html b/client/src/app/shared/shared-forms/advanced-input-filter.component.html index 7031cb53b..1d6b3df7e 100644 --- a/client/src/app/shared/shared-forms/advanced-input-filter.component.html +++ b/client/src/app/shared/shared-forms/advanced-input-filter.component.html @@ -1,6 +1,7 @@ -
-
-
+
+ + +
@@ -15,14 +16,14 @@
-
+ - - Clear filters +
diff --git a/client/src/app/shared/shared-forms/advanced-input-filter.component.scss b/client/src/app/shared/shared-forms/advanced-input-filter.component.scss index ee1b3b508..ed85385fd 100644 --- a/client/src/app/shared/shared-forms/advanced-input-filter.component.scss +++ b/client/src/app/shared/shared-forms/advanced-input-filter.component.scss @@ -23,7 +23,6 @@ my-global-icon { width: 18px; height: 18px; - &.no-visible { @include margin-right($size + $margin); diff --git a/client/src/app/shared/shared-forms/input-switch.component.html b/client/src/app/shared/shared-forms/input-switch.component.html index ce1dee470..9a466055a 100644 --- a/client/src/app/shared/shared-forms/input-switch.component.html +++ b/client/src/app/shared/shared-forms/input-switch.component.html @@ -1,4 +1,4 @@
- +
diff --git a/client/src/app/shared/shared-forms/input-toggle-hidden.component.html b/client/src/app/shared/shared-forms/input-toggle-hidden.component.html index dfe646d2f..e5edb6c97 100644 --- a/client/src/app/shared/shared-forms/input-toggle-hidden.component.html +++ b/client/src/app/shared/shared-forms/input-toggle-hidden.component.html @@ -1,21 +1,19 @@ -
+
-
- + - -
+
diff --git a/client/src/app/shared/shared-forms/input-toggle-hidden.component.scss b/client/src/app/shared/shared-forms/input-toggle-hidden.component.scss index b5a71eddd..02a8d7d0e 100644 --- a/client/src/app/shared/shared-forms/input-toggle-hidden.component.scss +++ b/client/src/app/shared/shared-forms/input-toggle-hidden.component.scss @@ -5,11 +5,14 @@ input { @include peertube-input-text(auto); @include padding-left(15px !important); @include padding-right(15px !important); +} - // set again properties of peertube-input-text that are overridden by .input-group - font-size: 15px !important; +.btn { + font-size: 15px; } -.eye-button { - line-height: 1 !important; +.copy-text { + font-size: 14px; + margin-left: 5px; + vertical-align: top; } diff --git a/client/src/app/shared/shared-forms/peertube-checkbox.component.html b/client/src/app/shared/shared-forms/peertube-checkbox.component.html index c679e1403..38a48a2a5 100644 --- a/client/src/app/shared/shared-forms/peertube-checkbox.component.html +++ b/client/src/app/shared/shared-forms/peertube-checkbox.component.html @@ -1,6 +1,6 @@
-
-
+
diff --git a/client/src/app/shared/shared-forms/peertube-checkbox.component.scss b/client/src/app/shared/shared-forms/peertube-checkbox.component.scss index 4e384e7e0..5fe20c3a5 100644 --- a/client/src/app/shared/shared-forms/peertube-checkbox.component.scss +++ b/client/src/app/shared/shared-forms/peertube-checkbox.component.scss @@ -4,7 +4,7 @@ .root { display: flex; - .form-group-checkbox { + label { display: flex; align-items: center; diff --git a/client/src/app/shared/shared-forms/select/select-channel.component.html b/client/src/app/shared/shared-forms/select/select-channel.component.html index f83f17a16..b49fd36fa 100644 --- a/client/src/app/shared/shared-forms/select/select-channel.component.html +++ b/client/src/app/shared/shared-forms/select/select-channel.component.html @@ -7,7 +7,7 @@ [searchable]="searchable" > - + {{ channel.label }} diff --git a/client/src/app/shared/shared-forms/select/select-checkbox.component.html b/client/src/app/shared/shared-forms/select/select-checkbox.component.html index 03db2875b..2799ccdcc 100644 --- a/client/src/app/shared/shared-forms/select/select-checkbox.component.html +++ b/client/src/app/shared/shared-forms/select/select-checkbox.component.html @@ -22,7 +22,7 @@ > -
+
{{ item.group }} @@ -30,7 +30,7 @@ -
+
{{ item.label }} diff --git a/client/src/app/shared/shared-forms/select/select-checkbox.component.scss b/client/src/app/shared/shared-forms/select/select-checkbox.component.scss index d47c4f9da..892f22dff 100644 --- a/client/src/app/shared/shared-forms/select/select-checkbox.component.scss +++ b/client/src/app/shared/shared-forms/select/select-checkbox.component.scss @@ -7,7 +7,7 @@ ng-select ::ng-deep { align-items: center; } - .form-group-checkbox { + .checkbox-wrapper { display: flex; align-items: center; 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 be6099a97..8e5dfb064 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 @@ -16,26 +16,3 @@ font-size: 15px; margin-bottom: 15px; } - -ngb-accordion ::ng-deep { - .card { - border-color: var(--mainBackgroundColor); - - .card-header { - background-color: unset; - padding: 0; - - + .collapse.show { - background-color: var(--submenuBackgroundColor); - } - } - } - - .btn { - @include peertube-button; - @include grey-button; - - border-radius: unset; - width: 100%; - } -} diff --git a/client/src/app/shared/shared-instance/instance-features-table.component.html b/client/src/app/shared/shared-instance/instance-features-table.component.html index 1fdef95ff..761243bfe 100644 --- a/client/src/app/shared/shared-instance/instance-features-table.component.html +++ b/client/src/app/shared/shared-instance/instance-features-table.component.html @@ -1,6 +1,6 @@
- +
diff --git a/client/src/app/shared/shared-instance/instance-features-table.component.scss b/client/src/app/shared/shared-instance/instance-features-table.component.scss index 56ca105f4..105a7681f 100644 --- a/client/src/app/shared/shared-instance/instance-features-table.component.scss +++ b/client/src/app/shared/shared-instance/instance-features-table.component.scss @@ -4,6 +4,7 @@ table { font-size: 14px; color: pvar(--mainForegroundColor); + width: 100%; .label, .sub-label { @@ -24,8 +25,10 @@ table { } } + th, td { - vertical-align: middle; + padding: 0.75rem; + border-top: 1px solid #dee2e6; } caption { diff --git a/client/src/app/shared/shared-main/misc/simple-search-input.component.html b/client/src/app/shared/shared-main/misc/simple-search-input.component.html index 1e2f6c6a9..11f5a1ab0 100644 --- a/client/src/app/shared/shared-main/misc/simple-search-input.component.html +++ b/client/src/app/shared/shared-main/misc/simple-search-input.component.html @@ -1,5 +1,5 @@
-
+
- - Clear filters +
diff --git a/client/src/app/shared/shared-moderation/account-block-badges.component.html b/client/src/app/shared/shared-moderation/account-block-badges.component.html index feac707c2..fd3709676 100644 --- a/client/src/app/shared/shared-moderation/account-block-badges.component.html +++ b/client/src/app/shared/shared-moderation/account-block-badges.component.html @@ -1,4 +1,4 @@ -Muted -Instance muted -Muted by your instance -Instance muted by your instance +Muted +Instance muted +Muted by your instance +Instance muted by your instance diff --git a/client/src/app/shared/shared-moderation/account-block-badges.component.scss b/client/src/app/shared/shared-moderation/account-block-badges.component.scss index ccc3666aa..301d8305e 100644 --- a/client/src/app/shared/shared-moderation/account-block-badges.component.scss +++ b/client/src/app/shared/shared-moderation/account-block-badges.component.scss @@ -1,9 +1,8 @@ @use '_variables' as *; @use '_mixins' as *; -.badge { +.pt-badge { @include margin-right(10px); - height: fit-content; font-size: 12px; } 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 a4f81d824..15632f654 100644 --- a/client/src/app/shared/shared-moderation/account-blocklist.component.html +++ b/client/src/app/shared/shared-moderation/account-blocklist.component.html @@ -11,7 +11,7 @@ >
-
+
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 6c99180ef..8e0b0993c 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 @@ -8,11 +8,11 @@
-
+
-
+
@@ -29,7 +29,6 @@
-
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 afac108fc..51ca0b9d6 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 @@ -8,38 +8,32 @@
-
+
+ - +
+ -
- +
+ + +
+
-
- - -
-
- - -
-
-
-
- - -
+ +
+
+ +
+
+
-
-
-
- -
-
+
+ -
+
-
+
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 67ca56516..a6b8576a1 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 @@ -171,9 +171,8 @@
-
+
diff --git a/client/src/app/shared/shared-share-modal/video-share.component.scss b/client/src/app/shared/shared-share-modal/video-share.component.scss index 44ebb13f4..abb78b09b 100644 --- a/client/src/app/shared/shared-share-modal/video-share.component.scss +++ b/client/src/app/shared/shared-share-modal/video-share.component.scss @@ -55,13 +55,6 @@ my-input-toggle-hidden { } } - .form-group { - margin-bottom: 0; - height: 34px; - display: flex; - align-items: center; - } - .video-caption-block { display: flex; align-items: center; 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 836972a33..ccd7f8f4b 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 @@ -1,5 +1,5 @@ -
+
@@ -20,7 +20,7 @@
-
+
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 c4f6020d4..a39e7cf1f 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 @@ -15,8 +15,6 @@ input[type=submit] { .peertube-select-container { @include peertube-select-container(340px); - - margin-bottom: 30px; } my-select-languages { @@ -24,7 +22,3 @@ my-select-languages { display: block; } - -.form-group-select { - margin-bottom: 30px; -} 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 a00c3d1c7..656d1beb3 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,5 +1,5 @@ -
+
-
Permanent/Recurring live
-
Replay will be saved
+
Permanent/Recurring live
+
Replay will be saved
@@ -36,8 +36,8 @@
- Success - {{ getErrorLabel(session) }} + Success + {{ getErrorLabel(session) }} Started on {{ session.startDate | date:'medium' }} Ended on {{ session.endDate | date:'medium' }} diff --git a/client/src/app/shared/shared-video-live/live-stream-information.component.scss b/client/src/app/shared/shared-video-live/live-stream-information.component.scss index 9c8ad12bd..fc0b1cea2 100644 --- a/client/src/app/shared/shared-video-live/live-stream-information.component.scss +++ b/client/src/app/shared/shared-video-live/live-stream-information.component.scss @@ -13,15 +13,16 @@ p-autocomplete { margin: 1rem 0; } -.badge { +.pt-badge { + @include margin-right(5px); + font-size: 13px; - margin-right: 5px; } .journal-session { margin-bottom: 5px; - span:not(.badge, :last-child)::after { + span:not(.pt-badge, :last-child)::after { margin: 3px; content: '•'; } diff --git a/client/src/app/shared/shared-video-miniature/video-download.component.html b/client/src/app/shared/shared-video-miniature/video-download.component.html index b50544057..9123d2a5a 100644 --- a/client/src/app/shared/shared-video-miniature/video-download.component.html +++ b/client/src/app/shared/shared-video-miniature/video-download.component.html @@ -28,14 +28,15 @@
Features found on this instance
PeerTube version