This repository has been archived by the owner on Jun 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 111
/
notify.less
119 lines (100 loc) · 1.92 KB
/
notify.less
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
@import "~ui/styles/mixins";
.toaster-container {
visibility: visible;
width: 100%;
.toaster {
margin: 0;
padding: 0;
list-style: none;
}
/**
* 1. Shouldn't look like a button.
*/
.toaster-countdown {
appearance: none;
background: none;
border: none;
.badge {
color: @white;
}
&:hover {
.badge {
font-size: 0;
}
.badge:after {
font-size: @font-size-small;
content: attr(hover-text);
}
}
}
.alert {
padding: 0 15px;
margin: 0;
border-radius: 0;
border: 0px;
}
.toast {
display: flex;
align-items: center;
> * {
flex: 0 0 auto;
&:not(:last-child) {
margin-right: 4px;
}
}
}
.toast-message {
flex: 1 1 auto;
margin-top: 10px;
.ellipsis();
line-height: normal;
}
.toast-stack {
padding-bottom: 10px;
pre {
display: inline-block;
width: 100%;
margin: 10px 0;
word-break: normal;
word-wrap: normal;
white-space: pre-wrap;
}
}
.toast-controls {
display: flex;
}
// add darkened background to the different badges
.alert-success .badge {
background: darken(@alert-success-bg, 25%);
}
.alert-info .badge {
background: darken(@alert-info-bg, 25%);
}
.alert-warning .badge {
background: darken(@alert-warning-bg, 25%);
}
.alert-danger .badge {
background: darken(@alert-danger-bg, 25%);
}
.alert-banner {
background-color: white;
padding: 10px 15px;
a {
color: #328caa;
}
.toaster-countdown {
background-color: white;
}
.badge {
background-color: #328caa;
}
}
.toast-message {
white-space: normal;
}
}
// toast message class for banner needs to be display:block because banner does
// not have a flex layout, and the styled element could be any kind of element
.toast-message-banner {
display: block;
}