-
Notifications
You must be signed in to change notification settings - Fork 861
Expand file tree
/
Copy path_notifications.scss
More file actions
55 lines (42 loc) · 1.3 KB
/
_notifications.scss
File metadata and controls
55 lines (42 loc) · 1.3 KB
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
$notification_width: 34em;
#notification {
width: $notification_width;
border-radius: $base_border_radius;
border: 1px solid $borders_color;
box-shadow: 0 2px 4px 2px $shadow_color;
background-color: $bg_color;
padding: $base_padding * 2;
margin-from-right-edge-of-screen: 20px;
spacing-rows: 10px;
spacing-columns: 10px;
&.multi-line-notification {
max-height: $notification_width * 0.70;
padding-bottom: $base_padding * 2;
color: $fg_color;
}
&.notification-with-image {
min-height: $notification_width * 0.40;
}
&-body {spacing: $base_padding; }
&-actions { spacing: $base_padding * 2; }
&-scrollview {
min-height: $notification_width * 0.10;
}
StEntry {}
}
.notification {
/* We use row-span = 2 for the image cell, which prevents its height preferences to be
taken into account during allocation, so its height ends up being limited by the height
of the content in the other rows. To avoid showing a stretched image, we set the minimum
height of the table to be ICON_SIZE + IMAGE_SIZE + spacing-rows = 24 + 125 + 10 = 159 */
&-with-image { min-height: 159px; }
&-button {
@extend %button;
padding: $base_padding $base_padding * 2;
}
&-icon-button {
@extend %button;
padding: $base_padding;
}
&-icon-button > StIcon {}
}