aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-04-14 16:39:37 +0200
committerChocobozzz <me@florianbigard.com>2021-04-14 16:39:37 +0200
commit266947e5efc7ff30b0020beb5a74e4d4fc696fa5 (patch)
tree66c2e0f463e373d971d290d9ff3b07b9528ebf27 /client/src/app/shared
parent251a82ffbb62c575d7aeb260dff22409dae39d73 (diff)
downloadPeerTube-266947e5efc7ff30b0020beb5a74e4d4fc696fa5.tar.gz
PeerTube-266947e5efc7ff30b0020beb5a74e4d4fc696fa5.tar.zst
PeerTube-266947e5efc7ff30b0020beb5a74e4d4fc696fa5.zip
Refactor modal buttons style
Diffstat (limited to 'client/src/app/shared')
-rw-r--r--client/src/app/shared/shared-abuse-list/abuse-message-modal.component.html2
-rw-r--r--client/src/app/shared/shared-abuse-list/moderation-comment-modal.component.html7
-rw-r--r--client/src/app/shared/shared-moderation/batch-domains-modal.component.html7
-rw-r--r--client/src/app/shared/shared-moderation/report-modals/report.component.html5
-rw-r--r--client/src/app/shared/shared-moderation/report-modals/video-report.component.html5
-rw-r--r--client/src/app/shared/shared-moderation/user-ban-modal.component.html7
-rw-r--r--client/src/app/shared/shared-moderation/video-block.component.html7
-rw-r--r--client/src/app/shared/shared-support-modal/support-modal.component.html2
-rw-r--r--client/src/app/shared/shared-support-modal/support-modal.component.scss3
-rw-r--r--client/src/app/shared/shared-support-modal/support-modal.component.ts3
-rw-r--r--client/src/app/shared/shared-video-live/live-stream-information.component.html5
-rw-r--r--client/src/app/shared/shared-video-miniature/video-download.component.html29
-rw-r--r--client/src/app/shared/shared-video-miniature/video-download.component.scss4
13 files changed, 33 insertions, 53 deletions
diff --git a/client/src/app/shared/shared-abuse-list/abuse-message-modal.component.html b/client/src/app/shared/shared-abuse-list/abuse-message-modal.component.html
index 17e9ce4cf..ab6967f28 100644
--- a/client/src/app/shared/shared-abuse-list/abuse-message-modal.component.html
+++ b/client/src/app/shared/shared-abuse-list/abuse-message-modal.component.html
@@ -41,7 +41,7 @@
41 </div> 41 </div>
42 42
43 <div class="form-group inputs"> 43 <div class="form-group inputs">
44 <input type="submit" i18n-value value="Add a message" class="action-button-submit" [disabled]="!form.valid || sendingMessage"> 44 <input type="submit" i18n-value value="Add a message" class="peertube-button orange-button" [disabled]="!form.valid || sendingMessage">
45 </div> 45 </div>
46 </form> 46 </form>
47 47
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 @@
23 23
24 <div class="form-group inputs"> 24 <div class="form-group inputs">
25 <input 25 <input
26 type="button" role="button" i18n-value value="Cancel" class="action-button action-button-cancel" 26 type="button" role="button" i18n-value value="Cancel" class="peertube-button grey-button"
27 (click)="hide()" (key.enter)="hide()" 27 (click)="hide()" (key.enter)="hide()"
28 > 28 >
29 29
30 <input 30 <input type="submit" i18n-value value="Update this comment" class="peertube-button orange-button" [disabled]="!form.valid" />
31 type="submit" i18n-value value="Update this comment" class="action-button-submit"
32 [disabled]="!form.valid"
33 >
34 </div> 31 </div>
35 </form> 32 </form>
36 </div> 33 </div>
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 @@
28 28
29 <div class="form-group inputs"> 29 <div class="form-group inputs">
30 <input 30 <input
31 type="button" role="button" i18n-value value="Cancel" class="action-button action-button-cancel" 31 type="button" role="button" i18n-value value="Cancel" class="peertube-button grey-button"
32 (click)="hide()" (key.enter)="hide()" 32 (click)="hide()" (key.enter)="hide()"
33 > 33 >
34 34
35 <input 35 <input type="submit" [value]="action" class="peertube-button orange-button" [disabled]="!form.valid" />
36 type="submit" [value]="action" class="action-button-submit"
37 [disabled]="!form.valid"
38 >
39 </div> 36 </div>
40 </form> 37 </form>
41 </div> 38 </div>
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 @@
51 51
52 <div class="form-group inputs"> 52 <div class="form-group inputs">
53 <input 53 <input
54 type="button" role="button" i18n-value value="Cancel" class="action-button action-button-cancel" 54 type="button" role="button" i18n-value value="Cancel" class="peertube-button grey-button"
55 (click)="hide()" (key.enter)="hide()" 55 (click)="hide()" (key.enter)="hide()"
56 > 56 >
57 <input type="submit" i18n-value value="Submit" class="action-button-submit" [disabled]="!form.valid"> 57
58 <input type="submit" i18n-value value="Submit" class="peertube-button orange-button" [disabled]="!form.valid">
58 </div> 59 </div>
59 60
60 </form> 61 </form>
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 @@
89 89
90 <div class="form-group inputs"> 90 <div class="form-group inputs">
91 <input 91 <input
92 type="button" role="button" i18n-value value="Cancel" class="action-button action-button-cancel" 92 type="button" role="button" i18n-value value="Cancel" class="peertube-button grey-button"
93 (click)="hide()" (key.enter)="hide()" 93 (click)="hide()" (key.enter)="hide()"
94 > 94 >
95 <input type="submit" i18n-value value="Submit" class="action-button-submit" [disabled]="!form.valid"> 95
96 <input type="submit" i18n-value value="Submit" class="peertube-button orange-button" [disabled]="!form.valid">
96 </div> 97 </div>
97 98
98 </form> 99 </form>
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 @@
23 23
24 <div class="form-group inputs"> 24 <div class="form-group inputs">
25 <input 25 <input
26 type="button" role="button" i18n-value value="Cancel" class="action-button action-button-cancel" 26 type="button" role="button" i18n-value value="Cancel" class="peertube-button grey-button"
27 (click)="hide()" (key.enter)="hide()" 27 (click)="hide()" (key.enter)="hide()"
28 > 28 >
29 29
30 <input 30 <input type="submit" i18n-value value="Ban this user" class="peertube-button orange-button" [disabled]="!form.valid" />
31 type="submit" i18n-value value="Ban this user" class="action-button-submit"
32 [disabled]="!form.valid"
33 >
34 </div> 31 </div>
35 </form> 32 </form>
36 </div> 33 </div>
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 @@
35 35
36 <div class="form-group inputs"> 36 <div class="form-group inputs">
37 <input 37 <input
38 type="button" role="button" i18n-value value="Cancel" class="action-button action-button-cancel" 38 type="button" role="button" i18n-value value="Cancel" class="peertube-button grey-button"
39 (click)="hide()" (key.enter)="hide()" 39 (click)="hide()" (key.enter)="hide()"
40 > 40 >
41 41
42 <input 42 <input type="submit" i18n-value value="Submit" class="peertube-button orange-button" [disabled]="!form.valid" />
43 type="submit" i18n-value value="Submit" class="action-button-submit"
44 [disabled]="!form.valid"
45 >
46 </div> 43 </div>
47 </form> 44 </form>
48 45
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 @@
8 8
9 <div class="modal-footer inputs"> 9 <div class="modal-footer inputs">
10 <input 10 <input
11 type="button" role="button" i18n-value value="Maybe later" class="action-button action-button-cancel" 11 type="button" role="button" i18n-value value="Maybe later" class="peertube-button grey-button"
12 (click)="hide()" (key.enter)="hide()" 12 (click)="hide()" (key.enter)="hide()"
13 > 13 >
14 </div> 14 </div>
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 @@
1.action-button-cancel {
2 margin-right: 0 !important;
3}
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'
6 6
7@Component({ 7@Component({
8 selector: 'my-support-modal', 8 selector: 'my-support-modal',
9 templateUrl: './support-modal.component.html', 9 templateUrl: './support-modal.component.html'
10 styleUrls: [ './support-modal.component.scss' ]
11}) 10})
12export class SupportModalComponent { 11export class SupportModalComponent {
13 @Input() video: VideoDetails = null 12 @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 @@
30 30
31 <div class="modal-footer"> 31 <div class="modal-footer">
32 <div class="form-group inputs"> 32 <div class="form-group inputs">
33 <input 33 <input type="button" role="button" i18n-value value="Close" class="peertube-button grey-button" (click)="dismiss()" />
34 type="button" role="button" i18n-value value="Close" class="action-button action-button-cancel"
35 (click)="dismiss()"
36 >
37 34
38 <my-edit-button 35 <my-edit-button
39 i18n-label label="Update live settings" 36 i18n-label label="Update live settings"
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 8a9218343..4ac74c106 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
@@ -4,10 +4,10 @@
4 <ng-container i18n>Download</ng-container> 4 <ng-container i18n>Download</ng-container>
5 5
6 <div *ngIf="videoCaptions" ngbDropdown class="d-inline-block ml-1"> 6 <div *ngIf="videoCaptions" ngbDropdown class="d-inline-block ml-1">
7 <span id="dropdownDownloadType" ngbDropdownToggle> 7 <span id="dropdown-download-type" ngbDropdownToggle>
8 {{ type }} 8 {{ type }}
9 </span> 9 </span>
10 <div ngbDropdownMenu aria-labelledby="dropdownDownloadType"> 10 <div ngbDropdownMenu aria-labelledby="dropdown-download-type">
11 <button *ngIf="type === 'video'" (click)="switchToType('subtitles')" ngbDropdownItem i18n>subtitles</button> 11 <button *ngIf="type === 'video'" (click)="switchToType('subtitles')" ngbDropdownItem i18n>subtitles</button>
12 <button *ngIf="type === 'subtitles'" (click)="switchToType('video')" ngbDropdownItem i18n>video</button> 12 <button *ngIf="type === 'subtitles'" (click)="switchToType('video')" ngbDropdownItem i18n>video</button>
13 </div> 13 </div>
@@ -37,7 +37,7 @@
37 37
38 <ng-container *ngFor="let file of getVideoFiles()" [ngbNavItem]="file.resolution.id"> 38 <ng-container *ngFor="let file of getVideoFiles()" [ngbNavItem]="file.resolution.id">
39 <a ngbNavLink i18n>{{ file.resolution.label }}</a> 39 <a ngbNavLink i18n>{{ file.resolution.label }}</a>
40 40
41 <ng-template ngbNavContent> 41 <ng-template ngbNavContent>
42 <div class="nav-content"> 42 <div class="nav-content">
43 <div class="input-group input-group-sm"> 43 <div class="input-group input-group-sm">
@@ -53,7 +53,7 @@
53 </ng-container> 53 </ng-container>
54 </div> 54 </div>
55 <div [ngbNavOutlet]="resolutionNav"></div> 55 <div [ngbNavOutlet]="resolutionNav"></div>
56 56
57 <div class="advanced-filters collapse-transition" [ngbCollapse]="isAdvancedCustomizationCollapsed"> 57 <div class="advanced-filters collapse-transition" [ngbCollapse]="isAdvancedCustomizationCollapsed">
58 <ng-container *ngIf="videoFile?.metadata"> 58 <ng-container *ngIf="videoFile?.metadata">
59 <div ngbNav #nav="ngbNav" class="nav-tabs nav-metadata"> 59 <div ngbNav #nav="ngbNav" class="nav-tabs nav-metadata">
@@ -67,7 +67,7 @@
67 </div> 67 </div>
68 </div> 68 </div>
69 </ng-template> 69 </ng-template>
70 70
71 <ng-container ngbNavItem [disabled]="videoFileMetadataVideoStream === undefined"> 71 <ng-container ngbNavItem [disabled]="videoFileMetadataVideoStream === undefined">
72 <a ngbNavLink i18n>Video stream</a> 72 <a ngbNavLink i18n>Video stream</a>
73 <ng-template ngbNavContent> 73 <ng-template ngbNavContent>
@@ -79,7 +79,7 @@
79 </div> 79 </div>
80 </ng-template> 80 </ng-template>
81 </ng-container> 81 </ng-container>
82 82
83 <ng-container ngbNavItem [disabled]="videoFileMetadataAudioStream === undefined"> 83 <ng-container ngbNavItem [disabled]="videoFileMetadataAudioStream === undefined">
84 <a ngbNavLink i18n>Audio stream</a> 84 <a ngbNavLink i18n>Audio stream</a>
85 <ng-template ngbNavContent> 85 <ng-template ngbNavContent>
@@ -91,7 +91,7 @@
91 </div> 91 </div>
92 </ng-template> 92 </ng-template>
93 </ng-container> 93 </ng-container>
94 94
95 </ng-container> 95 </ng-container>
96 </div> 96 </div>
97 <div [ngbNavOutlet]="nav"></div> 97 <div [ngbNavOutlet]="nav"></div>
@@ -107,20 +107,20 @@
107 </div> 107 </div>
108 </ng-container> 108 </ng-container>
109 </div> 109 </div>
110 110
111 <div (click)="isAdvancedCustomizationCollapsed = !isAdvancedCustomizationCollapsed" role="button" class="advanced-filters-button" 111 <div (click)="isAdvancedCustomizationCollapsed = !isAdvancedCustomizationCollapsed" role="button" class="advanced-filters-button"
112 [attr.aria-expanded]="!isAdvancedCustomizationCollapsed" aria-controls="collapseBasic"> 112 [attr.aria-expanded]="!isAdvancedCustomizationCollapsed" aria-controls="collapseBasic">
113 <ng-container *ngIf="isAdvancedCustomizationCollapsed"> 113 <ng-container *ngIf="isAdvancedCustomizationCollapsed">
114 <span class="glyphicon glyphicon-menu-down"></span> 114 <span class="glyphicon glyphicon-menu-down"></span>
115 115
116 <ng-container i18n> 116 <ng-container i18n>
117 Advanced 117 Advanced
118 </ng-container> 118 </ng-container>
119 </ng-container> 119 </ng-container>
120 120
121 <ng-container *ngIf="!isAdvancedCustomizationCollapsed"> 121 <ng-container *ngIf="!isAdvancedCustomizationCollapsed">
122 <span class="glyphicon glyphicon-menu-up"></span> 122 <span class="glyphicon glyphicon-menu-up"></span>
123 123
124 <ng-container i18n> 124 <ng-container i18n>
125 Simple 125 Simple
126 </ng-container> 126 </ng-container>
@@ -131,13 +131,10 @@
131 131
132 <div class="modal-footer inputs"> 132 <div class="modal-footer inputs">
133 <input 133 <input
134 type="button" role="button" i18n-value value="Cancel" class="action-button action-button-cancel" 134 type="button" role="button" i18n-value value="Cancel" class="peertube-button grey-button"
135 (click)="hide()" (key.enter)="hide()" 135 (click)="hide()" (key.enter)="hide()"
136 > 136 >
137 137
138 <input 138 <input type="submit" i18n-value value="Download" class="peertube-button orange-button" (click)="download()" />
139 type="submit" i18n-value value="Download" class="action-button-submit"
140 (click)="download()"
141 >
142 </div> 139 </div>
143</ng-template> 140</ng-template>
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 @@
17 .nav-tabs { 17 .nav-tabs {
18 margin-top: 10x; 18 margin-top: 10x;
19 } 19 }
20 20
21 .glyphicon { 21 .glyphicon {
22 margin-right: 5px; 22 margin-right: 5px;
23 } 23 }
@@ -46,7 +46,7 @@
46 @include orange-button; 46 @include orange-button;
47} 47}
48 48
49#dropdownDownloadType { 49#dropdown-download-type {
50 cursor: pointer; 50 cursor: pointer;
51} 51}
52 52