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