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