]>
Commit | Line | Data |
---|---|---|
2f1548fd C |
1 | @import '_variables'; |
2 | @import '_mixins'; | |
3 | ||
968aaed2 | 4 | .content { |
02dd4f3c | 5 | scrollbar-color: auto; |
968aaed2 | 6 | } |
51a83970 K |
7 | |
8 | .notification-inbox-popover { | |
9 | padding: 10px; | |
10 | } | |
11 | ||
12 | .notification-inbox-link a { | |
13 | padding: 13px 10px; | |
14 | } | |
15 | ||
16 | .notification-inbox-popover, | |
17 | .notification-inbox-link a { | |
18 | @include apply-svg-color(#808080); | |
19 | ::ng-deep { | |
20 | svg { | |
21 | transition: color .1s ease-in-out; | |
22 | } | |
23 | } | |
24 | ||
25 | transition: all .1s ease-in-out; | |
26 | border-radius: 25px; | |
27 | cursor: pointer; | |
28 | ||
29 | &:hover, &:active { | |
30 | background-color: rgba(255, 255, 255, 0.15); | |
31 | @include apply-svg-color(#fff); | |
32 | } | |
33 | } | |
34 | ||
35 | .notification-inbox-popover.shown, | |
36 | .notification-inbox-link a.active { | |
37 | @include apply-svg-color(#fff); | |
38 | ||
39 | background-color: rgba(255, 255, 255, 0.28); | |
40 | box-shadow: inset 0 3px 5px rgba(0, 0, 0, .325); | |
41 | } | |
42 | ||
43 | .notification-inbox-popover.hidden { | |
44 | display: none; | |
45 | } | |
46 | ||
03652b31 | 47 | ::ng-deep { |
2f1548fd | 48 | .popover-notifications.popover { |
fdebd9a3 | 49 | max-width: none; |
51a83970 | 50 | top: -6px !important; |
10475dea | 51 | left: 7px !important; |
2f1548fd | 52 | |
51a83970 K |
53 | .arrow { |
54 | display: none; | |
55 | } | |
56 | ||
2f1548fd C |
57 | .popover-body { |
58 | padding: 0; | |
59 | font-size: 14px; | |
60 | font-family: $main-fonts; | |
fdebd9a3 | 61 | width: 400px; |
51a83970 | 62 | box-shadow: 0 2px 6px rgba(0, 0, 0, 0.30); |
2f1548fd | 63 | |
b28e4e5e C |
64 | .loader { |
65 | display: flex; | |
66 | align-items: center; | |
67 | justify-content: center; | |
68 | ||
69 | padding: 5px 0; | |
70 | } | |
71 | ||
72 | .content { | |
73 | max-height: 150px; | |
74 | transition: max-height 0.15s ease-out; | |
10475dea RK |
75 | display: flex; |
76 | height: 500px; | |
77 | flex-direction: column; | |
b28e4e5e C |
78 | |
79 | &.loaded { | |
80 | max-height: 500px; | |
81 | } | |
10475dea RK |
82 | |
83 | & > my-user-notifications:nth-child(2) { | |
84 | overflow-y: auto; | |
c06af501 | 85 | flex-grow: 1; |
10475dea | 86 | } |
b28e4e5e C |
87 | } |
88 | ||
2f1548fd C |
89 | .notifications-header { |
90 | display: flex; | |
91 | justify-content: space-between; | |
92 | ||
51a83970 | 93 | border-bottom: 1px solid rgba(0, 0, 0, 0.1); |
2f1548fd | 94 | align-items: center; |
51a83970 K |
95 | padding: 0 12px; |
96 | font-size: 14px; | |
97 | font-weight: bold; | |
98 | color: rgba(0, 0, 0, 0.5); | |
99 | text-transform: uppercase; | |
100 | min-height: 40px; | |
2f1548fd C |
101 | |
102 | a { | |
103 | @include disable-default-a-behaviour; | |
10475dea | 104 | } |
51a83970 | 105 | |
10475dea RK |
106 | button { |
107 | @include peertube-button; | |
51a83970 | 108 | |
10475dea RK |
109 | padding: 0; |
110 | background: transparent; | |
111 | } | |
2f1548fd | 112 | |
10475dea | 113 | a, button { |
2f1548fd C |
114 | color: rgba(20, 20, 20, 0.5); |
115 | ||
10475dea | 116 | &:hover:not(:disabled) { |
2f1548fd C |
117 | color: rgba(20, 20, 20, 0.8); |
118 | } | |
119 | } | |
120 | } | |
121 | ||
122 | .all-notifications { | |
123 | display: flex; | |
124 | align-items: center; | |
125 | justify-content: center; | |
126 | font-weight: $font-semibold; | |
18c97728 | 127 | color: $fg-color; |
457bb213 | 128 | padding: 7px 0; |
10475dea RK |
129 | margin-top: auto; |
130 | text-decoration: none; | |
2f1548fd C |
131 | } |
132 | } | |
133 | } | |
134 | } | |
135 | ||
51a83970 | 136 | .notification-inbox-popover, .notification-inbox-link { |
2f1548fd C |
137 | cursor: pointer; |
138 | position: relative; | |
139 | ||
2f1548fd C |
140 | .unread-notifications { |
141 | margin-left: 20px; | |
142 | } | |
143 | ||
2f1548fd C |
144 | .unread-notifications { |
145 | position: absolute; | |
51a83970 K |
146 | top: 6px; |
147 | left: 0; | |
148 | ||
149 | @media screen and (max-width: $mobile-view) { | |
150 | top: -4px; | |
151 | left: -2px; | |
152 | } | |
2f1548fd C |
153 | |
154 | display: flex; | |
155 | align-items: center; | |
156 | justify-content: center; | |
157 | ||
e66883b3 RK |
158 | background-color: pvar(--mainColor); |
159 | color: #fff; | |
2f1548fd C |
160 | font-size: 10px; |
161 | font-weight: $font-semibold; | |
162 | ||
163 | border-radius: 15px; | |
164 | width: 15px; | |
165 | height: 15px; | |
166 | } | |
167 | } |