]>
Commit | Line | Data |
---|---|---|
2f1548fd C |
1 | @import '_variables'; |
2 | @import '_mixins'; | |
3 | ||
03652b31 | 4 | ::ng-deep { |
2f1548fd | 5 | .popover-notifications.popover { |
fdebd9a3 | 6 | max-width: none; |
10475dea | 7 | left: 7px !important; |
2f1548fd C |
8 | |
9 | .popover-body { | |
10 | padding: 0; | |
11 | font-size: 14px; | |
12 | font-family: $main-fonts; | |
fdebd9a3 | 13 | width: 400px; |
2f1548fd C |
14 | box-shadow: 0 6px 14px rgba(0, 0, 0, 0.30); |
15 | ||
b28e4e5e C |
16 | .loader { |
17 | display: flex; | |
18 | align-items: center; | |
19 | justify-content: center; | |
20 | ||
21 | padding: 5px 0; | |
22 | } | |
23 | ||
24 | .content { | |
25 | max-height: 150px; | |
26 | transition: max-height 0.15s ease-out; | |
10475dea RK |
27 | display: flex; |
28 | height: 500px; | |
29 | flex-direction: column; | |
b28e4e5e C |
30 | |
31 | &.loaded { | |
32 | max-height: 500px; | |
33 | } | |
10475dea RK |
34 | |
35 | & > my-user-notifications:nth-child(2) { | |
36 | overflow-y: auto; | |
37 | } | |
b28e4e5e C |
38 | } |
39 | ||
2f1548fd C |
40 | .notifications-header { |
41 | display: flex; | |
42 | justify-content: space-between; | |
43 | ||
44 | background-color: rgba(0, 0, 0, 0.10); | |
45 | align-items: center; | |
46 | padding: 0 10px; | |
47 | font-size: 16px; | |
223b24e6 | 48 | min-height: 50px; |
2f1548fd C |
49 | |
50 | a { | |
51 | @include disable-default-a-behaviour; | |
10475dea RK |
52 | } |
53 | ||
54 | button { | |
55 | @include peertube-button; | |
56 | ||
57 | padding: 0; | |
58 | background: transparent; | |
59 | } | |
2f1548fd | 60 | |
10475dea | 61 | a, button { |
2f1548fd C |
62 | color: rgba(20, 20, 20, 0.5); |
63 | ||
10475dea | 64 | &:hover:not(:disabled) { |
2f1548fd C |
65 | color: rgba(20, 20, 20, 0.8); |
66 | } | |
67 | } | |
68 | } | |
69 | ||
70 | .all-notifications { | |
71 | display: flex; | |
72 | align-items: center; | |
73 | justify-content: center; | |
74 | font-weight: $font-semibold; | |
18c97728 | 75 | color: $fg-color; |
457bb213 | 76 | padding: 7px 0; |
10475dea RK |
77 | margin-top: auto; |
78 | text-decoration: none; | |
2f1548fd C |
79 | } |
80 | } | |
81 | } | |
82 | } | |
83 | ||
84 | .notification-avatar { | |
85 | cursor: pointer; | |
86 | position: relative; | |
87 | ||
88 | img, | |
89 | .unread-notifications { | |
90 | margin-left: 20px; | |
91 | } | |
92 | ||
93 | img { | |
94 | @include avatar(34px); | |
95 | ||
96 | margin-right: 10px; | |
97 | } | |
98 | ||
99 | .unread-notifications { | |
100 | position: absolute; | |
101 | top: -5px; | |
102 | left: -5px; | |
103 | ||
104 | display: flex; | |
105 | align-items: center; | |
106 | justify-content: center; | |
107 | ||
108 | background-color: var(--mainColor); | |
aa879092 | 109 | color: var(#fff); |
2f1548fd C |
110 | font-size: 10px; |
111 | font-weight: $font-semibold; | |
112 | ||
113 | border-radius: 15px; | |
114 | width: 15px; | |
115 | height: 15px; | |
116 | } | |
117 | } | |
fdebd9a3 C |
118 | |
119 | @media screen and (max-width: $mobile-view) { | |
03652b31 | 120 | ::ng-deep { |
10475dea RK |
121 | .popover-notifications.popover { |
122 | left: unset !important; | |
123 | ||
124 | .arrow { | |
125 | left: calc(2em + 7px); | |
126 | } | |
127 | ||
128 | .popover-body { | |
129 | width: 100vw; | |
130 | } | |
fdebd9a3 C |
131 | } |
132 | } | |
133 | } |