diff options
Diffstat (limited to 'client/src/app/menu')
-rw-r--r-- | client/src/app/menu/language-chooser.component.scss | 1 | ||||
-rw-r--r-- | client/src/app/menu/menu.component.html | 16 | ||||
-rw-r--r-- | client/src/app/menu/menu.component.scss | 33 | ||||
-rw-r--r-- | client/src/app/menu/notification.component.html | 17 | ||||
-rw-r--r-- | client/src/app/menu/notification.component.scss | 4 |
5 files changed, 30 insertions, 41 deletions
diff --git a/client/src/app/menu/language-chooser.component.scss b/client/src/app/menu/language-chooser.component.scss index 04b18af33..28d58a678 100644 --- a/client/src/app/menu/language-chooser.component.scss +++ b/client/src/app/menu/language-chooser.component.scss | |||
@@ -18,7 +18,6 @@ | |||
18 | 18 | ||
19 | a { | 19 | a { |
20 | display: block; | 20 | display: block; |
21 | font-size: 16px; | ||
22 | margin: 15px; | 21 | margin: 15px; |
23 | } | 22 | } |
24 | } | 23 | } |
diff --git a/client/src/app/menu/menu.component.html b/client/src/app/menu/menu.component.html index b8f8d68ab..66ccb9870 100644 --- a/client/src/app/menu/menu.component.html +++ b/client/src/app/menu/menu.component.html | |||
@@ -16,7 +16,7 @@ | |||
16 | </div> | 16 | </div> |
17 | 17 | ||
18 | <div class="dropdown-toggle-indicator"> | 18 | <div class="dropdown-toggle-indicator"> |
19 | <span class="glyphicon glyphicon-chevron-down"></span> | 19 | <span class="chevron-down"></span> |
20 | </div> | 20 | </div> |
21 | </div> | 21 | </div> |
22 | 22 | ||
@@ -36,31 +36,31 @@ | |||
36 | > | 36 | > |
37 | <my-global-icon iconName="language" aria-hidden="true"></my-global-icon> | 37 | <my-global-icon iconName="language" aria-hidden="true"></my-global-icon> |
38 | <span i18n>Interface:</span> | 38 | <span i18n>Interface:</span> |
39 | <span class="ml-auto muted">{{ currentInterfaceLanguage }}</span> | 39 | <span class="ms-auto muted">{{ currentInterfaceLanguage }}</span> |
40 | </a> | 40 | </a> |
41 | 41 | ||
42 | <a ngbDropdownItem ngbDropdownToggle class="dropdown-item" routerLink="/my-account/settings" fragment="video-languages-subtitles" | 42 | <a ngbDropdownItem ngbDropdownToggle class="dropdown-item" routerLink="/my-account/settings" fragment="video-languages-subtitles" |
43 | #settingsLanguagesSubtitles (click)="onActiveLinkScrollToAnchor(settingsLanguagesSubtitles)"> | 43 | #settingsLanguagesSubtitles (click)="onActiveLinkScrollToAnchor(settingsLanguagesSubtitles)"> |
44 | <my-global-icon iconName="video-lang" aria-hidden="true"></my-global-icon> | 44 | <my-global-icon iconName="video-lang" aria-hidden="true"></my-global-icon> |
45 | <span i18n>Videos:</span> | 45 | <span i18n>Videos:</span> |
46 | <span class="ml-auto muted">{{ videoLanguages.join(', ') }}</span> | 46 | <span class="ms-auto muted">{{ videoLanguages.join(', ') }}</span> |
47 | </a> | 47 | </a> |
48 | 48 | ||
49 | <a ngbDropdownItem ngbDropdownToggle class="dropdown-item settings-sensitive" routerLink="/my-account/settings" | 49 | <a ngbDropdownItem ngbDropdownToggle class="dropdown-item settings-sensitive" routerLink="/my-account/settings" |
50 | fragment="video-sensitive-content-policy" #settingsSensitiveContentPolicy | 50 | fragment="video-sensitive-content-policy" #settingsSensitiveContentPolicy |
51 | (click)="onActiveLinkScrollToAnchor(settingsSensitiveContentPolicy)" | 51 | (click)="onActiveLinkScrollToAnchor(settingsSensitiveContentPolicy)" |
52 | > | 52 | > |
53 | <my-global-icon class="hover-display-toggle" [hidden]="user.nsfwPolicy === 'display'" iconName="sensitive" aria-hidden="true"></my-global-icon> | 53 | <my-global-icon class="hover-display-toggle" [hidden]="user.nsfwPolicy === 'display'" iconName="eye-open" aria-hidden="true"></my-global-icon> |
54 | <my-global-icon class="hover-display-toggle" [hidden]="user.nsfwPolicy !== 'display'" iconName="unsensitive" aria-hidden="true"></my-global-icon> | 54 | <my-global-icon class="hover-display-toggle" [hidden]="user.nsfwPolicy !== 'display'" iconName="eye-close" aria-hidden="true"></my-global-icon> |
55 | <span i18n>Sensitive:</span> | 55 | <span i18n>Sensitive:</span> |
56 | <span class="ml-auto muted">{{ nsfwPolicy }}</span> | 56 | <span class="ms-auto muted">{{ nsfwPolicy }}</span> |
57 | </a> | 57 | </a> |
58 | 58 | ||
59 | <a ngbDropdownItem class="dropdown-item" (click)="toggleUseP2P()"> | 59 | <a ngbDropdownItem class="dropdown-item" (click)="toggleUseP2P()"> |
60 | <my-global-icon iconName="p2p" aria-hidden="true"></my-global-icon> | 60 | <my-global-icon iconName="p2p" aria-hidden="true"></my-global-icon> |
61 | <ng-container i18n>Help share videos</ng-container> | 61 | <ng-container i18n>Help share videos</ng-container> |
62 | 62 | ||
63 | <my-input-switch class="ml-auto" [checked]="user.p2pEnabled"></my-input-switch> | 63 | <my-input-switch class="ms-auto" [checked]="user.p2pEnabled"></my-input-switch> |
64 | </a> | 64 | </a> |
65 | 65 | ||
66 | <div class="dropdown-divider"></div> | 66 | <div class="dropdown-divider"></div> |
@@ -149,7 +149,7 @@ | |||
149 | 149 | ||
150 | <div class="footer-copyleft"> | 150 | <div class="footer-copyleft"> |
151 | <small class="d-inline" i18n-title title="powered by PeerTube - CopyLeft 2015-2022"> | 151 | <small class="d-inline" i18n-title title="powered by PeerTube - CopyLeft 2015-2022"> |
152 | <a href="https://joinpeertube.org" class="mr-1" target="_blank" rel="noopener noreferrer" i18n>powered by PeerTube</a> | 152 | <a href="https://joinpeertube.org" class="me-1" target="_blank" rel="noopener noreferrer" i18n>powered by PeerTube</a> |
153 | 153 | ||
154 | <a href="https://github.com/Chocobozzz/PeerTube/blob/develop/LICENSE" target="_blank" rel="noopener noreferrer"> | 154 | <a href="https://github.com/Chocobozzz/PeerTube/blob/develop/LICENSE" target="_blank" rel="noopener noreferrer"> |
155 | <span aria-label="copyleft" class="d-inline-block" style="transform: rotateY(180deg)">©</span> 2015-2022 | 155 | <span aria-label="copyleft" class="d-inline-block" style="transform: rotateY(180deg)">©</span> 2015-2022 |
diff --git a/client/src/app/menu/menu.component.scss b/client/src/app/menu/menu.component.scss index 808a33a4a..a548c08cf 100644 --- a/client/src/app/menu/menu.component.scss +++ b/client/src/app/menu/menu.component.scss | |||
@@ -16,7 +16,6 @@ $footer-links-base-opacity: .8; | |||
16 | 16 | ||
17 | color: pvar(--menuForegroundColor); | 17 | color: pvar(--menuForegroundColor); |
18 | cursor: pointer; | 18 | cursor: pointer; |
19 | font-size: 16px; | ||
20 | white-space: normal; | 19 | white-space: normal; |
21 | word-break: break-word; | 20 | word-break: break-word; |
22 | transition: background-color .1s ease-in-out; | 21 | transition: background-color .1s ease-in-out; |
@@ -106,6 +105,7 @@ my-notification { | |||
106 | } | 105 | } |
107 | 106 | ||
108 | .logged-in-more { | 107 | .logged-in-more { |
108 | |||
109 | @mixin display-hints($is-mobile: false) { | 109 | @mixin display-hints($is-mobile: false) { |
110 | background-color: rgba(255, 255, 255, 0.15); | 110 | background-color: rgba(255, 255, 255, 0.15); |
111 | 111 | ||
@@ -114,18 +114,16 @@ my-notification { | |||
114 | display: inherit !important; | 114 | display: inherit !important; |
115 | } | 115 | } |
116 | 116 | ||
117 | .dropdown-toggle { | 117 | > .dropdown-toggle { |
118 | max-width: 88% !important; | 118 | max-width: 88% !important; |
119 | } | 119 | } |
120 | } | 120 | } |
121 | } | 121 | } |
122 | 122 | ||
123 | $main-radius: 25px; | ||
124 | |||
125 | @include margin-left(13px); | 123 | @include margin-left(13px); |
126 | 124 | ||
127 | flex: 1; | 125 | flex: 1; |
128 | border-radius: $main-radius; | 126 | border-radius: 25px; |
129 | transition: all .1s ease-in-out; | 127 | transition: all .1s ease-in-out; |
130 | cursor: pointer; | 128 | cursor: pointer; |
131 | line-height: 1; | 129 | line-height: 1; |
@@ -157,7 +155,6 @@ my-notification { | |||
157 | 155 | ||
158 | .dropdown-toggle-indicator { | 156 | .dropdown-toggle-indicator { |
159 | position: relative; | 157 | position: relative; |
160 | width: 0; | ||
161 | display: none; | 158 | display: none; |
162 | 159 | ||
163 | span { | 160 | span { |
@@ -165,21 +162,17 @@ my-notification { | |||
165 | right: -35px; | 162 | right: -35px; |
166 | top: -8px; | 163 | top: -8px; |
167 | color: #808080; | 164 | color: #808080; |
168 | width: $main-radius; | ||
169 | } | 165 | } |
170 | } | 166 | } |
171 | 167 | ||
172 | .dropdown-toggle { | 168 | .dropdown-toggle::after { |
173 | &::after { | 169 | border: 0; |
174 | border: 0; | ||
175 | } | ||
176 | } | 170 | } |
177 | 171 | ||
178 | .dropdown-toggle:first-child { | 172 | > .dropdown-toggle:first-child { |
179 | display: flex; | 173 | display: flex; |
180 | align-items: center; | 174 | align-items: center; |
181 | padding: 5px 7px; | 175 | padding: 5px 7px; |
182 | border-radius: $main-radius; | ||
183 | } | 176 | } |
184 | } | 177 | } |
185 | 178 | ||
@@ -201,7 +194,6 @@ my-actor-avatar { | |||
201 | .logged-in-display-name { | 194 | .logged-in-display-name { |
202 | @include disable-default-a-behaviour; | 195 | @include disable-default-a-behaviour; |
203 | 196 | ||
204 | font-size: 16px; | ||
205 | font-weight: $font-semibold; | 197 | font-weight: $font-semibold; |
206 | color: pvar(--menuForegroundColor); | 198 | color: pvar(--menuForegroundColor); |
207 | } | 199 | } |
@@ -325,7 +317,7 @@ my-actor-avatar { | |||
325 | color: pvar(--menuForegroundColor); | 317 | color: pvar(--menuForegroundColor); |
326 | opacity: $footer-links-base-opacity; | 318 | opacity: $footer-links-base-opacity; |
327 | white-space: nowrap; | 319 | white-space: nowrap; |
328 | font-size: 90%; | 320 | font-size: 0.75rem; |
329 | font-weight: 500; | 321 | font-weight: 500; |
330 | line-height: 1.4rem; | 322 | line-height: 1.4rem; |
331 | } | 323 | } |
@@ -358,10 +350,6 @@ my-actor-avatar { | |||
358 | display: flex; | 350 | display: flex; |
359 | align-items: center; | 351 | align-items: center; |
360 | 352 | ||
361 | i.glyphicon-menu-right { | ||
362 | opacity: .4; | ||
363 | } | ||
364 | |||
365 | &:hover { | 353 | &:hover { |
366 | .hover-display-toggle { | 354 | .hover-display-toggle { |
367 | display: none; | 355 | display: none; |
@@ -396,13 +384,6 @@ my-actor-avatar { | |||
396 | .dropdown-menu { | 384 | .dropdown-menu { |
397 | width: calc(100vw - 30px); | 385 | width: calc(100vw - 30px); |
398 | } | 386 | } |
399 | |||
400 | .dropdown-item:hover, | ||
401 | .dropdown-item:active { | ||
402 | &.settings-sensitive my-global-icon ::ng-deep svg { | ||
403 | margin-top: 0 !important; | ||
404 | } | ||
405 | } | ||
406 | } | 387 | } |
407 | 388 | ||
408 | my-global-icon { | 389 | my-global-icon { |
diff --git a/client/src/app/menu/notification.component.html b/client/src/app/menu/notification.component.html index beda1c43c..890b086f1 100644 --- a/client/src/app/menu/notification.component.html +++ b/client/src/app/menu/notification.component.html | |||
@@ -24,19 +24,24 @@ | |||
24 | <div> | 24 | <div> |
25 | <button | 25 | <button |
26 | *ngIf="unreadNotifications" | 26 | *ngIf="unreadNotifications" |
27 | i18n-title title="Mark all as read" class="glyphicon glyphicon-ok mr-2" | 27 | i18n-title title="Mark all as read" class="me-2" |
28 | (click)="markAllAsRead()" | 28 | (click)="markAllAsRead()" |
29 | ></button> | 29 | > |
30 | <my-global-icon iconName="tick"></my-global-icon> | ||
31 | </button> | ||
32 | |||
30 | <a | 33 | <a |
31 | i18n-title title="Update your notification preferences" class="glyphicon glyphicon-cog" | 34 | i18n-title title="Update your notification preferences" |
32 | routerLink="/my-account/settings" fragment="notifications" | 35 | routerLink="/my-account/settings" fragment="notifications" |
33 | #settingsNotifications (click)="onNavigate(settingsNotifications)" | 36 | #settingsNotifications (click)="onNavigate(settingsNotifications)" |
34 | ></a> | 37 | > |
38 | <my-global-icon iconName="cog"></my-global-icon> | ||
39 | </a> | ||
35 | </div> | 40 | </div> |
36 | </div> | 41 | </div> |
37 | 42 | ||
38 | <div *ngIf="!loaded" class="loader mt-4"> | 43 | <div *ngIf="!loaded" class="loader mt-4"> |
39 | <my-loader [loading]="!loaded"></my-loader> | 44 | <my-loader size="xl" [loading]="!loaded"></my-loader> |
40 | </div> | 45 | </div> |
41 | 46 | ||
42 | <my-user-notifications | 47 | <my-user-notifications |
@@ -45,7 +50,7 @@ | |||
45 | ></my-user-notifications> | 50 | ></my-user-notifications> |
46 | 51 | ||
47 | <a *ngIf="loaded" class="all-notifications" routerLink="/my-account/notifications" #notifications (click)="onNavigate(notifications)"> | 52 | <a *ngIf="loaded" class="all-notifications" routerLink="/my-account/notifications" #notifications (click)="onNavigate(notifications)"> |
48 | <my-global-icon class="mr-1" iconName="bell" aria-hidden="true"></my-global-icon> | 53 | <my-global-icon class="me-1" iconName="bell" aria-hidden="true"></my-global-icon> |
49 | <span i18n>See all your notifications</span> | 54 | <span i18n>See all your notifications</span> |
50 | </a> | 55 | </a> |
51 | </div> | 56 | </div> |
diff --git a/client/src/app/menu/notification.component.scss b/client/src/app/menu/notification.component.scss index 3515c3e19..7f72c98d1 100644 --- a/client/src/app/menu/notification.component.scss +++ b/client/src/app/menu/notification.component.scss | |||
@@ -119,6 +119,10 @@ | |||
119 | color: rgba(20, 20, 20, 0.8); | 119 | color: rgba(20, 20, 20, 0.8); |
120 | } | 120 | } |
121 | } | 121 | } |
122 | |||
123 | my-global-icon { | ||
124 | width: 20px; | ||
125 | } | ||
122 | } | 126 | } |
123 | 127 | ||
124 | .all-notifications { | 128 | .all-notifications { |