]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/menu/notification.component.scss
Add ability to update the banner
[github/Chocobozzz/PeerTube.git] / client / src / app / menu / notification.component.scss
1 @import '_variables';
2 @import '_mixins';
3
4 .content {
5 scrollbar-color: unset;
6 }
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
47 ::ng-deep {
48 .popover-notifications.popover {
49 max-width: none;
50 top: -6px !important;
51 left: 7px !important;
52
53 .arrow {
54 display: none;
55 }
56
57 .popover-body {
58 padding: 0;
59 font-size: 14px;
60 font-family: $main-fonts;
61 width: 400px;
62 box-shadow: 0 2px 6px rgba(0, 0, 0, 0.30);
63
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;
75 display: flex;
76 height: 500px;
77 flex-direction: column;
78
79 &.loaded {
80 max-height: 500px;
81 }
82
83 & > my-user-notifications:nth-child(2) {
84 overflow-y: auto;
85 flex-grow: 1;
86 }
87 }
88
89 .notifications-header {
90 display: flex;
91 justify-content: space-between;
92
93 border-bottom: 1px solid rgba(0, 0, 0, 0.1);
94 align-items: center;
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;
101
102 a {
103 @include disable-default-a-behaviour;
104 }
105
106 button {
107 @include peertube-button;
108
109 padding: 0;
110 background: transparent;
111 }
112
113 a, button {
114 color: rgba(20, 20, 20, 0.5);
115
116 &:hover:not(:disabled) {
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;
127 color: $fg-color;
128 padding: 7px 0;
129 margin-top: auto;
130 text-decoration: none;
131 }
132 }
133 }
134 }
135
136 .notification-inbox-popover, .notification-inbox-link {
137 cursor: pointer;
138 position: relative;
139
140 .unread-notifications {
141 margin-left: 20px;
142 }
143
144 .unread-notifications {
145 position: absolute;
146 top: 6px;
147 left: 0;
148
149 @media screen and (max-width: $mobile-view) {
150 top: -4px;
151 left: -2px;
152 }
153
154 display: flex;
155 align-items: center;
156 justify-content: center;
157
158 background-color: pvar(--mainColor);
159 color: #fff;
160 font-size: 10px;
161 font-weight: $font-semibold;
162
163 border-radius: 15px;
164 width: 15px;
165 height: 15px;
166 }
167 }