-
Notifications
You must be signed in to change notification settings - Fork 58
/
Copy pathstyles.scss
127 lines (104 loc) Β· 1.94 KB
/
styles.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
/**
* SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
.notifications-button {
.notifications-button__icon {
height: 20px;
}
.notification__dot {
fill: #ff4402;
&--warning {
fill: var(--color-warning);
}
&--white {
fill: var(--color-primary-text);
}
}
&.hasNotifications {
animation-name: pulse;
animation-duration: 1600ms;
animation-iteration-count: 4;
svg {
opacity: 1;
}
}
}
svg {
@keyframes pulse {
0% {
opacity: 1;
}
60% {
opacity: .85;
}
100% {
opacity: 1;
}
}
}
.notification {
padding-bottom: 12px;
&:not(:last-child) {
border-bottom: 1px solid var(--color-border);
}
.notification-heading {
display: flex;
align-items: center; // Else children will stretch in height as container is absolutely-positioned.
min-height: 26px;
.notification-time {
color: var(--color-text-maxcontrast);
margin: 13px 0 13px auto;
}
.notification-dismiss-button {
margin: 6px;
}
}
.notification-subject,
.notification-message,
.notification-full-message,
.notification-actions {
margin: 0 12px 12px;
}
.notification-subject {
display: flex;
align-items: center;
& > .image {
align-self: flex-start;
}
& > span.subject,
& > a > span.subject,
& > .rich-text--wrapper,
& > a > .rich-text--wrapper {
padding-left: 10px;
word-wrap: anywhere;
}
}
.notification-message,
.notification-full-message {
padding-left: 42px; // 32px icon + 10px title padding
color: var(--color-text-maxcontrast);
& > .collapsed {
overflow: hidden;
max-height: 70px;
}
& > .notification-overflow {
box-shadow: 0 0 20px 20px var(--color-main-background);
position: relative;
}
}
strong {
font-weight: bold;
opacity: 1;
}
.notification-actions {
overflow: hidden;
.button-vue {
line-height: normal;
margin: 2px 8px;
}
&:first-child {
margin-left: auto;
}
}
}