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 81e59d46a..343e5d649 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
@@ -45,14 +45,11 @@
-
+
diff --git a/client/src/app/+about/about-instance/contact-admin-modal.component.scss b/client/src/app/+about/about-instance/contact-admin-modal.component.scss
index 260d77888..6c1c89225 100644
--- a/client/src/app/+about/about-instance/contact-admin-modal.component.scss
+++ b/client/src/app/+about/about-instance/contact-admin-modal.component.scss
@@ -3,7 +3,6 @@
input[type=text] {
@include peertube-input-text(340px);
- display: block;
}
textarea {
diff --git a/client/src/app/+login/login.component.html b/client/src/app/+login/login.component.html
index 0167066a0..5f5b0f565 100644
--- a/client/src/app/+login/login.component.html
+++ b/client/src/app/+login/login.component.html
@@ -41,7 +41,7 @@
-
+
I forgot my password
@@ -114,12 +114,12 @@
diff --git a/client/src/app/+login/login.component.scss b/client/src/app/+login/login.component.scss
index 3cc302aec..f605cbb7a 100644
--- a/client/src/app/+login/login.component.scss
+++ b/client/src/app/+login/login.component.scss
@@ -8,16 +8,9 @@ label {
display: block;
}
-input:not([type=submit]) {
+input[type=text],
+input[type=email] {
@include peertube-input-text(340px);
- display: inline-block;
- margin-right: 5px;
-
-}
-
-input[type=submit] {
- @include peertube-button;
- @include orange-button;
}
.modal-body {
diff --git a/client/src/app/+my-library/my-ownership/my-accept-ownership/my-accept-ownership.component.html b/client/src/app/+my-library/my-ownership/my-accept-ownership/my-accept-ownership.component.html
index 27aab13b6..088765b20 100644
--- a/client/src/app/+my-library/my-ownership/my-accept-ownership/my-accept-ownership.component.html
+++ b/client/src/app/+my-library/my-ownership/my-accept-ownership/my-accept-ownership.component.html
@@ -22,13 +22,13 @@
diff --git a/client/src/app/+my-library/my-ownership/my-accept-ownership/my-accept-ownership.component.scss b/client/src/app/+my-library/my-ownership/my-accept-ownership/my-accept-ownership.component.scss
index c7357f62d..bf3770e56 100644
--- a/client/src/app/+my-library/my-ownership/my-accept-ownership/my-accept-ownership.component.scss
+++ b/client/src/app/+my-library/my-ownership/my-accept-ownership/my-accept-ownership.component.scss
@@ -1,14 +1,6 @@
@import '_variables';
@import '_mixins';
-select {
- display: block;
-}
-
.peertube-select-container {
@include peertube-select-container(350px);
}
-
-.form-group {
- margin: 20px 0;
-}
\ No newline at end of file
diff --git a/client/src/app/+my-library/my-videos/modals/video-change-ownership.component.html b/client/src/app/+my-library/my-videos/modals/video-change-ownership.component.html
index c7c5a0b69..955fd4884 100644
--- a/client/src/app/+my-library/my-videos/modals/video-change-ownership.component.html
+++ b/client/src/app/+my-library/my-videos/modals/video-change-ownership.component.html
@@ -19,14 +19,13 @@
diff --git a/client/src/app/+videos/+video-edit/shared/video-caption-add-modal.component.html b/client/src/app/+videos/+video-edit/shared/video-caption-add-modal.component.html
index 6a07dafa7..092952204 100644
--- a/client/src/app/+videos/+video-edit/shared/video-caption-add-modal.component.html
+++ b/client/src/app/+videos/+video-edit/shared/video-caption-add-modal.component.html
@@ -34,12 +34,12 @@
diff --git a/client/src/app/app.component.scss b/client/src/app/app.component.scss
index 7e9e4a216..e7d05369b 100644
--- a/client/src/app/app.component.scss
+++ b/client/src/app/app.component.scss
@@ -26,67 +26,64 @@
z-index: z(header);
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.16);
display: flex;
+}
- .top-left-block {
- z-index: 1;
- height: $header-height;
- display: flex;
- align-items: center;
- min-width: 0;
+.top-left-block {
+ z-index: 1;
+ height: $header-height;
+ display: flex;
+ align-items: center;
+ min-width: 0;
- .icon {
- @include icon(24px);
-
- &.icon-menu {
- background-color: pvar(--mainForegroundColor);
- mask-image: url('../assets/images/misc/menu.svg');
- margin: 0 18px 0 20px;
-
- @media screen and (max-width: $mobile-view) {
- margin: 0 10px;
- }
- }
- }
-
- .peertube-title {
- @include disable-default-a-behaviour;
-
- font-size: 20px;
- font-weight: $font-bold;
- color: inherit !important;
- display: flex;
- align-items: center;
- overflow: hidden;
-
- .instance-name {
- @include ellipsis;
-
- width: 100%;
- }
-
- .icon.icon-logo {
- display: inline-block;
- width: 23px;
- height: 24px;
- margin-right: .5rem;
- }
- }
-
- @media screen and (max-width: $mobile-view) {
-
- .peertube-title {
- display: none;
- }
- }
+ .icon {
+ @include icon(24px);
}
- .header-right {
- height: $header-height;
- display: flex;
- align-items: center;
- justify-content: flex-end;
- white-space: nowrap;
- flex: 1;
+ .icon-menu {
+ background-color: pvar(--mainForegroundColor);
+ mask-image: url('../assets/images/misc/menu.svg');
+ margin: 0 18px 0 20px;
+
+ @media screen and (max-width: $mobile-view) {
+ margin: 0 10px;
+ }
+ }
+}
+
+.header-right {
+ height: $header-height;
+ display: flex;
+ align-items: center;
+ justify-content: flex-end;
+ white-space: nowrap;
+ flex: 1;
+}
+
+.peertube-title {
+ @include disable-default-a-behaviour;
+
+ font-size: 20px;
+ font-weight: $font-bold;
+ color: inherit !important;
+ display: flex;
+ align-items: center;
+ overflow: hidden;
+
+ .instance-name {
+ @include ellipsis;
+
+ width: 100%;
+ }
+
+ .icon.icon-logo {
+ display: inline-block;
+ width: 23px;
+ height: 24px;
+ margin-right: .5rem;
+ }
+
+ @media screen and (max-width: $mobile-view) {
+ display: none;
}
}
@@ -103,18 +100,9 @@
justify-self: center;
align-self: center;
cursor: pointer;
-
width: 20px;
}
- @each $color, $value in $theme-colors {
- &.alert-#{$color} {
- my-global-icon {
- @include apply-svg-color(theme-color-level($color, $alert-color-level));
- }
- }
- }
-
::ng-deep {
p {
font-size: 16px;
diff --git a/client/src/app/modal/confirm.component.html b/client/src/app/modal/confirm.component.html
index dbc8c23e3..f07501726 100644
--- a/client/src/app/modal/confirm.component.html
+++ b/client/src/app/modal/confirm.component.html
@@ -17,13 +17,13 @@
diff --git a/client/src/app/modal/confirm.component.scss b/client/src/app/modal/confirm.component.scss
index ed226bc09..69978f212 100644
--- a/client/src/app/modal/confirm.component.scss
+++ b/client/src/app/modal/confirm.component.scss
@@ -17,5 +17,3 @@ input[type=text] {
.form-group {
margin: 20px 0;
}
-
-
diff --git a/client/src/app/modal/custom-modal.component.html b/client/src/app/modal/custom-modal.component.html
index 06ecc2743..cdfbfbb6a 100644
--- a/client/src/app/modal/custom-modal.component.html
+++ b/client/src/app/modal/custom-modal.component.html
@@ -3,17 +3,17 @@
{{title}}
-
+
diff --git a/client/src/app/modal/custom-modal.component.scss b/client/src/app/modal/custom-modal.component.scss
index a7fa30cf5..d6ef772b2 100644
--- a/client/src/app/modal/custom-modal.component.scss
+++ b/client/src/app/modal/custom-modal.component.scss
@@ -8,13 +8,3 @@
li {
margin-bottom: 10px;
}
-
-.action-button-cancel {
- @include peertube-button;
- @include grey-button;
-}
-
-.action-button-confirm {
- @include peertube-button;
- @include orange-button;
-}
diff --git a/client/src/app/modal/instance-config-warning-modal.component.html b/client/src/app/modal/instance-config-warning-modal.component.html
index 498adfeff..f085aa9de 100644
--- a/client/src/app/modal/instance-config-warning-modal.component.html
+++ b/client/src/app/modal/instance-config-warning-modal.component.html
@@ -35,10 +35,11 @@
-
Configure
diff --git a/client/src/app/modal/instance-config-warning-modal.component.scss b/client/src/app/modal/instance-config-warning-modal.component.scss
index cc97d64e4..8d734c628 100644
--- a/client/src/app/modal/instance-config-warning-modal.component.scss
+++ b/client/src/app/modal/instance-config-warning-modal.component.scss
@@ -1,10 +1,6 @@
@import '_mixins';
@import '_variables';
-.action-button-cancel {
- margin-right: 0 !important;
-}
-
.modal-body {
font-size: 15px;
}
@@ -18,11 +14,3 @@ li {
margin: 0 auto 50px;
width: 25%;
}
-
-.action-button-configure {
- display: inline-block;
-
- @include peertube-button;
- @include orange-button;
- @include disable-default-a-behaviour;
-}
diff --git a/client/src/app/modal/quick-settings-modal.component.scss b/client/src/app/modal/quick-settings-modal.component.scss
deleted file mode 100644
index b0e256744..000000000
--- a/client/src/app/modal/quick-settings-modal.component.scss
+++ /dev/null
@@ -1,24 +0,0 @@
-@import '_mixins';
-
-.modal-button {
- @include disable-default-a-behaviour;
- transform: translateY(2px);
-
- button {
- @include peertube-button;
- @include grey-button;
- @include button-with-icon(18px, 4px, -1px);
-
- my-global-icon {
- @include apply-svg-color(#585858);
- }
- }
-
- & + .modal-button {
- margin-left: 1rem;
- }
-}
-
-.quick-settings-title {
- @include in-content-small-title;
-}
diff --git a/client/src/app/modal/quick-settings-modal.component.ts b/client/src/app/modal/quick-settings-modal.component.ts
index 95726ab63..99859a1a5 100644
--- a/client/src/app/modal/quick-settings-modal.component.ts
+++ b/client/src/app/modal/quick-settings-modal.component.ts
@@ -8,8 +8,7 @@ import { NgbModalRef } from '@ng-bootstrap/ng-bootstrap/modal/modal-ref'
@Component({
selector: 'my-quick-settings',
- templateUrl: './quick-settings-modal.component.html',
- styleUrls: [ './quick-settings-modal.component.scss' ]
+ templateUrl: './quick-settings-modal.component.html'
})
export class QuickSettingsModalComponent extends FormReactive implements OnInit {
@ViewChild('modal', { static: true }) modal: NgbModal
diff --git a/client/src/app/modal/welcome-modal.component.html b/client/src/app/modal/welcome-modal.component.html
index 19bf3a1ea..f5d2b8799 100644
--- a/client/src/app/modal/welcome-modal.component.html
+++ b/client/src/app/modal/welcome-modal.component.html
@@ -71,12 +71,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 8082e93f4..cc7bb6c92 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
@@ -23,14 +23,11 @@
-
+
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 1b85c8f48..6a3c65721 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
@@ -28,14 +28,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 bda62312f..6c99180ef 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
@@ -51,10 +51,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 4947088d1..1aae64bff 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
@@ -89,10 +89,11 @@
-
+
+
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 365eb1938..7129b00ca 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
@@ -23,14 +23,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 e982c4d77..5e9e8493c 100644
--- a/client/src/app/shared/shared-moderation/video-block.component.html
+++ b/client/src/app/shared/shared-moderation/video-block.component.html
@@ -35,14 +35,11 @@
-
+
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 4a967987f..289adcb6a 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
@@ -8,7 +8,7 @@
diff --git a/client/src/app/shared/shared-support-modal/support-modal.component.scss b/client/src/app/shared/shared-support-modal/support-modal.component.scss
deleted file mode 100644
index 184e09027..000000000
--- a/client/src/app/shared/shared-support-modal/support-modal.component.scss
+++ /dev/null
@@ -1,3 +0,0 @@
-.action-button-cancel {
- margin-right: 0 !important;
-}
diff --git a/client/src/app/shared/shared-support-modal/support-modal.component.ts b/client/src/app/shared/shared-support-modal/support-modal.component.ts
index ae603c7a8..a0b9fada6 100644
--- a/client/src/app/shared/shared-support-modal/support-modal.component.ts
+++ b/client/src/app/shared/shared-support-modal/support-modal.component.ts
@@ -6,8 +6,7 @@ import { VideoChannel } from '@shared/models'
@Component({
selector: 'my-support-modal',
- templateUrl: './support-modal.component.html',
- styleUrls: [ './support-modal.component.scss' ]
+ templateUrl: './support-modal.component.html'
})
export class SupportModalComponent {
@Input() video: VideoDetails = null
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 57920239d..d6ee67ba9 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
@@ -30,10 +30,7 @@
-
+
-
+
Advanced
-
+
-
+
Simple
@@ -131,13 +131,10 @@
diff --git a/client/src/app/shared/shared-video-miniature/video-download.component.scss b/client/src/app/shared/shared-video-miniature/video-download.component.scss
index 199c3dac8..485db5ef5 100644
--- a/client/src/app/shared/shared-video-miniature/video-download.component.scss
+++ b/client/src/app/shared/shared-video-miniature/video-download.component.scss
@@ -17,7 +17,7 @@
.nav-tabs {
margin-top: 10x;
}
-
+
.glyphicon {
margin-right: 5px;
}
@@ -46,7 +46,7 @@
@include orange-button;
}
-#dropdownDownloadType {
+#dropdown-download-type {
cursor: pointer;
}
diff --git a/client/src/sass/bootstrap.scss b/client/src/sass/bootstrap.scss
index 75dc91d7a..e11603e4d 100644
--- a/client/src/sass/bootstrap.scss
+++ b/client/src/sass/bootstrap.scss
@@ -153,17 +153,8 @@ $icon-font-path: '~@neos21/bootstrap3-glyphicons/assets/fonts/';
margin-bottom: 0;
text-align: right;
- .action-button-cancel {
- @include peertube-button;
- @include tertiary-button;
-
- display: inline-block;
- margin-right: 10px;
- }
-
- .action-button-submit {
- @include peertube-button;
- @include orange-button;
+ > .peertube-button:not(:first-child) {
+ margin-left: 10px
}
}
}
diff --git a/client/src/sass/include/_mixins.scss b/client/src/sass/include/_mixins.scss
index bf844ac5d..73606f940 100644
--- a/client/src/sass/include/_mixins.scss
+++ b/client/src/sass/include/_mixins.scss
@@ -238,7 +238,8 @@
font-size: 15px;
height: $button-height;
line-height: $button-height;
- border-radius: 3px;
+ // FIXME: because of primeng that redefines border-radius of all input[type="..."]
+ border-radius: 3px !important;
text-align: center;
padding: 0 17px 0 13px;
cursor: pointer;
diff --git a/client/src/sass/primeng-custom.scss b/client/src/sass/primeng-custom.scss
index 9c9b5d4fc..544d0039a 100644
--- a/client/src/sass/primeng-custom.scss
+++ b/client/src/sass/primeng-custom.scss
@@ -3,6 +3,11 @@
@import '~primeng/resources/primeng.css';
+// Override primeng style we don't want
+input[type="button"] {
+ border-radius: inherit;
+}
+
// Taken from old nova light theme
body .p-disabled {