]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/menu/avatar-notification.component.scss
do not crash if SMTP server is down
[github/Chocobozzz/PeerTube.git] / client / src / app / menu / avatar-notification.component.scss
CommitLineData
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;
c06af501 37 flex-grow: 1;
10475dea 38 }
b28e4e5e
C
39 }
40
2f1548fd
C
41 .notifications-header {
42 display: flex;
43 justify-content: space-between;
44
45 background-color: rgba(0, 0, 0, 0.10);
46 align-items: center;
47 padding: 0 10px;
48 font-size: 16px;
223b24e6 49 min-height: 50px;
2f1548fd
C
50
51 a {
52 @include disable-default-a-behaviour;
10475dea
RK
53 }
54
55 button {
56 @include peertube-button;
57
58 padding: 0;
59 background: transparent;
60 }
2f1548fd 61
10475dea 62 a, button {
2f1548fd
C
63 color: rgba(20, 20, 20, 0.5);
64
10475dea 65 &:hover:not(:disabled) {
2f1548fd
C
66 color: rgba(20, 20, 20, 0.8);
67 }
68 }
69 }
70
71 .all-notifications {
72 display: flex;
73 align-items: center;
74 justify-content: center;
75 font-weight: $font-semibold;
18c97728 76 color: $fg-color;
457bb213 77 padding: 7px 0;
10475dea
RK
78 margin-top: auto;
79 text-decoration: none;
2f1548fd
C
80 }
81 }
82 }
83}
84
85.notification-avatar {
86 cursor: pointer;
87 position: relative;
88
89 img,
90 .unread-notifications {
91 margin-left: 20px;
92 }
93
94 img {
95 @include avatar(34px);
96
97 margin-right: 10px;
98 }
99
100 .unread-notifications {
101 position: absolute;
102 top: -5px;
103 left: -5px;
104
105 display: flex;
106 align-items: center;
107 justify-content: center;
108
e66883b3
RK
109 background-color: pvar(--mainColor);
110 color: #fff;
2f1548fd
C
111 font-size: 10px;
112 font-weight: $font-semibold;
113
114 border-radius: 15px;
115 width: 15px;
116 height: 15px;
117 }
118}
fdebd9a3
C
119
120@media screen and (max-width: $mobile-view) {
03652b31 121 ::ng-deep {
10475dea
RK
122 .popover-notifications.popover {
123 left: unset !important;
124
125 .arrow {
126 left: calc(2em + 7px);
127 }
128
129 .popover-body {
130 width: 100vw;
131 }
fdebd9a3
C
132 }
133 }
134}