UNPKG

6.87 kBCSSView Raw
1/* based on angular-toastr css https://github.com/Foxandxss/angular-toastr/blob/cb508fe6801d6b288d3afc525bb40fee1b101650/dist/angular-toastr.css */
2
3/* position */
4.toast-center-center {
5 top: 50%;
6 left: 50%;
7 transform: translate(-50%, -50%);
8}
9.toast-top-center {
10 top: 0;
11 right: 0;
12 width: 100%;
13}
14.toast-bottom-center {
15 bottom: 0;
16 right: 0;
17 width: 100%;
18}
19.toast-top-full-width {
20 top: 0;
21 right: 0;
22 width: 100%;
23}
24.toast-bottom-full-width {
25 bottom: 0;
26 right: 0;
27 width: 100%;
28}
29.toast-top-left {
30 top: 12px;
31 left: 12px;
32}
33.toast-top-right {
34 top: 12px;
35 right: 12px;
36}
37.toast-bottom-right {
38 right: 12px;
39 bottom: 12px;
40}
41.toast-bottom-left {
42 bottom: 12px;
43 left: 12px;
44}
45
46/* toast styles */
47.toast-title {
48 font-weight: bold;
49}
50.toast-message {
51 word-wrap: break-word;
52}
53.toast-message a,
54.toast-message label {
55 color: #FFFFFF;
56}
57.toast-message a:hover {
58 color: #CCCCCC;
59 text-decoration: none;
60}
61.toast-close-button {
62 position: relative;
63 right: -0.3em;
64 top: -0.3em;
65 float: right;
66 font-size: 20px;
67 font-weight: bold;
68 color: #FFFFFF;
69 text-shadow: 0 1px 0 #ffffff;
70 /* opacity: 0.8; */
71}
72.toast-close-button:hover,
73.toast-close-button:focus {
74 color: #000000;
75 text-decoration: none;
76 cursor: pointer;
77 opacity: 0.4;
78}
79/*Additional properties for button version
80 iOS requires the button element instead of an anchor tag.
81 If you want the anchor version, it requires `href="#"`.*/
82button.toast-close-button {
83 padding: 0;
84 cursor: pointer;
85 background: transparent;
86 border: 0;
87}
88.toast-container {
89 pointer-events: none;
90 position: fixed;
91 z-index: 999999;
92}
93.toast-container * {
94 box-sizing: border-box;
95}
96.toast-container .ngx-toastr {
97 position: relative;
98 overflow: hidden;
99 margin: 0 0 6px;
100 padding: 15px 15px 15px 50px;
101 width: 300px;
102 border-radius: 3px 3px 3px 3px;
103 background-position: 15px center;
104 background-repeat: no-repeat;
105 background-size: 24px;
106 box-shadow: 0 0 12px #999999;
107 color: #FFFFFF;
108}
109.toast-container .ngx-toastr:hover {
110 box-shadow: 0 0 12px #000000;
111 opacity: 1;
112 cursor: pointer;
113}
114/* https://github.com/FortAwesome/Font-Awesome-Pro/blob/master/advanced-options/raw-svg/regular/info-circle.svg */
115.toast-info {
116 background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCA1MTIgNTEyJyB3aWR0aD0nNTEyJyBoZWlnaHQ9JzUxMic+PHBhdGggZmlsbD0ncmdiKDI1NSwyNTUsMjU1KScgZD0nTTI1NiA4QzExOS4wNDMgOCA4IDExOS4wODMgOCAyNTZjMCAxMzYuOTk3IDExMS4wNDMgMjQ4IDI0OCAyNDhzMjQ4LTExMS4wMDMgMjQ4LTI0OEM1MDQgMTE5LjA4MyAzOTIuOTU3IDggMjU2IDh6bTAgMTEwYzIzLjE5NiAwIDQyIDE4LjgwNCA0MiA0MnMtMTguODA0IDQyLTQyIDQyLTQyLTE4LjgwNC00Mi00MiAxOC44MDQtNDIgNDItNDJ6bTU2IDI1NGMwIDYuNjI3LTUuMzczIDEyLTEyIDEyaC04OGMtNi42MjcgMC0xMi01LjM3My0xMi0xMnYtMjRjMC02LjYyNyA1LjM3My0xMiAxMi0xMmgxMnYtNjRoLTEyYy02LjYyNyAwLTEyLTUuMzczLTEyLTEydi0yNGMwLTYuNjI3IDUuMzczLTEyIDEyLTEyaDY0YzYuNjI3IDAgMTIgNS4zNzMgMTIgMTJ2MTAwaDEyYzYuNjI3IDAgMTIgNS4zNzMgMTIgMTJ2MjR6Jy8+PC9zdmc+");
117}
118/* https://github.com/FortAwesome/Font-Awesome-Pro/blob/master/advanced-options/raw-svg/regular/times-circle.svg */
119.toast-error {
120 background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCA1MTIgNTEyJyB3aWR0aD0nNTEyJyBoZWlnaHQ9JzUxMic+PHBhdGggZmlsbD0ncmdiKDI1NSwyNTUsMjU1KScgZD0nTTI1NiA4QzExOSA4IDggMTE5IDggMjU2czExMSAyNDggMjQ4IDI0OCAyNDgtMTExIDI0OC0yNDhTMzkzIDggMjU2IDh6bTEyMS42IDMxMy4xYzQuNyA0LjcgNC43IDEyLjMgMCAxN0wzMzggMzc3LjZjLTQuNyA0LjctMTIuMyA0LjctMTcgMEwyNTYgMzEybC02NS4xIDY1LjZjLTQuNyA0LjctMTIuMyA0LjctMTcgMEwxMzQuNCAzMzhjLTQuNy00LjctNC43LTEyLjMgMC0xN2w2NS42LTY1LTY1LjYtNjUuMWMtNC43LTQuNy00LjctMTIuMyAwLTE3bDM5LjYtMzkuNmM0LjctNC43IDEyLjMtNC43IDE3IDBsNjUgNjUuNyA2NS4xLTY1LjZjNC43LTQuNyAxMi4zLTQuNyAxNyAwbDM5LjYgMzkuNmM0LjcgNC43IDQuNyAxMi4zIDAgMTdMMzEyIDI1Nmw2NS42IDY1LjF6Jy8+PC9zdmc+");
121}
122/* https://github.com/FortAwesome/Font-Awesome-Pro/blob/master/advanced-options/raw-svg/regular/check.svg */
123.toast-success {
124 background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCA1MTIgNTEyJyB3aWR0aD0nNTEyJyBoZWlnaHQ9JzUxMic+PHBhdGggZmlsbD0ncmdiKDI1NSwyNTUsMjU1KScgZD0nTTE3My44OTggNDM5LjQwNGwtMTY2LjQtMTY2LjRjLTkuOTk3LTkuOTk3LTkuOTk3LTI2LjIwNiAwLTM2LjIwNGwzNi4yMDMtMzYuMjA0YzkuOTk3LTkuOTk4IDI2LjIwNy05Ljk5OCAzNi4yMDQgMEwxOTIgMzEyLjY5IDQzMi4wOTUgNzIuNTk2YzkuOTk3LTkuOTk3IDI2LjIwNy05Ljk5NyAzNi4yMDQgMGwzNi4yMDMgMzYuMjA0YzkuOTk3IDkuOTk3IDkuOTk3IDI2LjIwNiAwIDM2LjIwNGwtMjk0LjQgMjk0LjQwMWMtOS45OTggOS45OTctMjYuMjA3IDkuOTk3LTM2LjIwNC0uMDAxeicvPjwvc3ZnPg==");
125}
126/* https://github.com/FortAwesome/Font-Awesome-Pro/blob/master/advanced-options/raw-svg/regular/exclamation-triangle.svg */
127.toast-warning {
128 background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCA1NzYgNTEyJyB3aWR0aD0nNTc2JyBoZWlnaHQ9JzUxMic+PHBhdGggZmlsbD0ncmdiKDI1NSwyNTUsMjU1KScgZD0nTTU2OS41MTcgNDQwLjAxM0M1ODcuOTc1IDQ3Mi4wMDcgNTY0LjgwNiA1MTIgNTI3Ljk0IDUxMkg0OC4wNTRjLTM2LjkzNyAwLTU5Ljk5OS00MC4wNTUtNDEuNTc3LTcxLjk4N0wyNDYuNDIzIDIzLjk4NWMxOC40NjctMzIuMDA5IDY0LjcyLTMxLjk1MSA4My4xNTQgMGwyMzkuOTQgNDE2LjAyOHpNMjg4IDM1NGMtMjUuNDA1IDAtNDYgMjAuNTk1LTQ2IDQ2czIwLjU5NSA0NiA0NiA0NiA0Ni0yMC41OTUgNDYtNDYtMjAuNTk1LTQ2LTQ2LTQ2em0tNDMuNjczLTE2NS4zNDZsNy40MTggMTM2Yy4zNDcgNi4zNjQgNS42MDkgMTEuMzQ2IDExLjk4MiAxMS4zNDZoNDguNTQ2YzYuMzczIDAgMTEuNjM1LTQuOTgyIDExLjk4Mi0xMS4zNDZsNy40MTgtMTM2Yy4zNzUtNi44NzQtNS4wOTgtMTIuNjU0LTExLjk4Mi0xMi42NTRoLTYzLjM4M2MtNi44ODQgMC0xMi4zNTYgNS43OC0xMS45ODEgMTIuNjU0eicvPjwvc3ZnPg==");
129}
130.toast-container.toast-top-center .ngx-toastr,
131.toast-container.toast-bottom-center .ngx-toastr {
132 width: 300px;
133 margin-left: auto;
134 margin-right: auto;
135}
136.toast-container.toast-top-full-width .ngx-toastr,
137.toast-container.toast-bottom-full-width .ngx-toastr {
138 width: 96%;
139 margin-left: auto;
140 margin-right: auto;
141}
142.ngx-toastr {
143 background-color: #030303;
144 pointer-events: auto;
145}
146.toast-success {
147 background-color: #51A351;
148}
149.toast-error {
150 background-color: #BD362F;
151}
152.toast-info {
153 background-color: #2F96B4;
154}
155.toast-warning {
156 background-color: #F89406;
157}
158.toast-progress {
159 position: absolute;
160 left: 0;
161 bottom: 0;
162 height: 4px;
163 background-color: #000000;
164 opacity: 0.4;
165}
166/* Responsive Design */
167@media all and (max-width: 240px) {
168 .toast-container .ngx-toastr.div {
169 padding: 8px 8px 8px 50px;
170 width: 11em;
171 }
172 .toast-container .toast-close-button {
173 right: -0.2em;
174 top: -0.2em;
175 }
176}
177@media all and (min-width: 241px) and (max-width: 480px) {
178 .toast-container .ngx-toastr.div {
179 padding: 8px 8px 8px 50px;
180 width: 18em;
181 }
182 .toast-container .toast-close-button {
183 right: -0.2em;
184 top: -0.2em;
185 }
186}
187@media all and (min-width: 481px) and (max-width: 768px) {
188 .toast-container .ngx-toastr.div {
189 padding: 15px 15px 15px 50px;
190 width: 25em;
191 }
192}