hjg
2024-10-30 8cf23534166c07e711aac2a25911ada317ba01f0
提交 | 用户 | 时间
58d006 1 /*
A 2  * Toastr
3  * Version 2.0.1
4  * Copyright 2012 John Papa and Hans Fjällemark.  
5  * All Rights Reserved.  
6  * Use, reproduction, distribution, and modification of this code is subject to the terms and 
7  * conditions of the MIT license, available at http://www.opensource.org/licenses/mit-license.php
8  *
9  * Author: John Papa and Hans Fjällemark
10  * Project: https://github.com/CodeSeven/toastr
11  */
12 .toast-title {
13   font-weight: bold;
14 }
15 .toast-message {
16   -ms-word-wrap: break-word;
17   word-wrap: break-word;
18 }
19 .toast-message a,
20 .toast-message label {
21   color: #ffffff;
22 }
23 .toast-message a:hover {
24   color: #cccccc;
25   text-decoration: none;
26 }
27
28 .toast-close-button {
29   position: relative;
30   right: -0.3em;
31   top: -0.3em;
32   float: right;
33   font-size: 20px;
34   font-weight: bold;
35   color: #ffffff;
36   -webkit-text-shadow: 0 1px 0 #ffffff;
37   text-shadow: 0 1px 0 #ffffff;
38   opacity: 0.8;
39   -ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=80);
40   filter: alpha(opacity=80);
41 }
42 .toast-close-button:hover,
43 .toast-close-button:focus {
44   color: #000000;
45   text-decoration: none;
46   cursor: pointer;
47   opacity: 0.4;
48   -ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=40);
49   filter: alpha(opacity=40);
50 }
51
52 /*Additional properties for button version
53  iOS requires the button element instead of an anchor tag.
54  If you want the anchor version, it requires `href="#"`.*/
55 button.toast-close-button {
56   padding: 0;
57   cursor: pointer;
58   background: transparent;
59   border: 0;
60   -webkit-appearance: none;
61 }
62 .toast-top-full-width {
63   top: 0;
64   right: 0;
65   width: 100%;
66 }
67 .toast-bottom-full-width {
68   bottom: 0;
69   right: 0;
70   width: 100%;
71 }
72 .toast-top-left {
73   top: 12px;
74   left: 12px;
75 }
76 .toast-top-right {
77   top: 12px;
78   right: 12px;
79 }
80 .toast-bottom-right {
81   right: 12px;
82   bottom: 12px;
83 }
84 .toast-bottom-left {
85   bottom: 12px;
86   left: 12px;
87 }
88 #toast-container {
89   position: fixed;
90   z-index: 999999;
91   /*overrides*/
92
93 }
94 #toast-container * {
95   -moz-box-sizing: border-box;
96   -webkit-box-sizing: border-box;
97   box-sizing: border-box;
98 }
99 #toast-container > div {
100   margin: 0 0 6px;
101   padding: 15px 15px 15px 50px;
102   width: 300px;
103   -moz-border-radius: 3px 3px 3px 3px;
104   -webkit-border-radius: 3px 3px 3px 3px;
105   border-radius: 3px 3px 3px 3px;
106   background-position: 15px center;
107   background-repeat: no-repeat;
108   -moz-box-shadow: 0 0 12px #999999;
109   -webkit-box-shadow: 0 0 12px #999999;
110   box-shadow: 0 0 12px #999999;
111   color: #ffffff;
112   opacity: 0.8;
113   -ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=80);
114   filter: alpha(opacity=80);
115 }
116 #toast-container > :hover {
117   -moz-box-shadow: 0 0 12px #000000;
118   -webkit-box-shadow: 0 0 12px #000000;
119   box-shadow: 0 0 12px #000000;
120   opacity: 1;
121   -ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100);
122   filter: alpha(opacity=100);
123   cursor: pointer;
124 }
125 #toast-container > .toast-info {
126   background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAGwSURBVEhLtZa9SgNBEMc9sUxxRcoUKSzSWIhXpFMhhYWFhaBg4yPYiWCXZxBLERsLRS3EQkEfwCKdjWJAwSKCgoKCcudv4O5YLrt7EzgXhiU3/4+b2ckmwVjJSpKkQ6wAi4gwhT+z3wRBcEz0yjSseUTrcRyfsHsXmD0AmbHOC9Ii8VImnuXBPglHpQ5wwSVM7sNnTG7Za4JwDdCjxyAiH3nyA2mtaTJufiDZ5dCaqlItILh1NHatfN5skvjx9Z38m69CgzuXmZgVrPIGE763Jx9qKsRozWYw6xOHdER+nn2KkO+Bb+UV5CBN6WC6QtBgbRVozrahAbmm6HtUsgtPC19tFdxXZYBOfkbmFJ1VaHA1VAHjd0pp70oTZzvR+EVrx2Ygfdsq6eu55BHYR8hlcki+n+kERUFG8BrA0BwjeAv2M8WLQBtcy+SD6fNsmnB3AlBLrgTtVW1c2QN4bVWLATaIS60J2Du5y1TiJgjSBvFVZgTmwCU+dAZFoPxGEEs8nyHC9Bwe2GvEJv2WXZb0vjdyFT4Cxk3e/kIqlOGoVLwwPevpYHT+00T+hWwXDf4AJAOUqWcDhbwAAAAASUVORK5CYII=") !important;
127 }
128 #toast-container > .toast-error {
129   background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAHOSURBVEhLrZa/SgNBEMZzh0WKCClSCKaIYOED+AAKeQQLG8HWztLCImBrYadgIdY+gIKNYkBFSwu7CAoqCgkkoGBI/E28PdbLZmeDLgzZzcx83/zZ2SSXC1j9fr+I1Hq93g2yxH4iwM1vkoBWAdxCmpzTxfkN2RcyZNaHFIkSo10+8kgxkXIURV5HGxTmFuc75B2RfQkpxHG8aAgaAFa0tAHqYFfQ7Iwe2yhODk8+J4C7yAoRTWI3w/4klGRgR4lO7Rpn9+gvMyWp+uxFh8+H+ARlgN1nJuJuQAYvNkEnwGFck18Er4q3egEc/oO+mhLdKgRyhdNFiacC0rlOCbhNVz4H9FnAYgDBvU3QIioZlJFLJtsoHYRDfiZoUyIxqCtRpVlANq0EU4dApjrtgezPFad5S19Wgjkc0hNVnuF4HjVA6C7QrSIbylB+oZe3aHgBsqlNqKYH48jXyJKMuAbiyVJ8KzaB3eRc0pg9VwQ4niFryI68qiOi3AbjwdsfnAtk0bCjTLJKr6mrD9g8iq/S/B81hguOMlQTnVyG40wAcjnmgsCNESDrjme7wfftP4P7SP4N3CJZdvzoNyGq2c/HWOXJGsvVg+RA/k2MC/wN6I2YA2Pt8GkAAAAASUVORK5CYII=") !important;
130 }
131 #toast-container > .toast-success {
132   background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADsSURBVEhLY2AYBfQMgf///3P8+/evAIgvA/FsIF+BavYDDWMBGroaSMMBiE8VC7AZDrIFaMFnii3AZTjUgsUUWUDA8OdAH6iQbQEhw4HyGsPEcKBXBIC4ARhex4G4BsjmweU1soIFaGg/WtoFZRIZdEvIMhxkCCjXIVsATV6gFGACs4Rsw0EGgIIH3QJYJgHSARQZDrWAB+jawzgs+Q2UO49D7jnRSRGoEFRILcdmEMWGI0cm0JJ2QpYA1RDvcmzJEWhABhD/pqrL0S0CWuABKgnRki9lLseS7g2AlqwHWQSKH4oKLrILpRGhEQCw2LiRUIa4lwAAAABJRU5ErkJggg==") !important;
133 }
134 #toast-container > .toast-warning {
135   background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAGYSURBVEhL5ZSvTsNQFMbXZGICMYGYmJhAQIJAICYQPAACiSDB8AiICQQJT4CqQEwgJvYASAQCiZiYmJhAIBATCARJy+9rTsldd8sKu1M0+dLb057v6/lbq/2rK0mS/TRNj9cWNAKPYIJII7gIxCcQ51cvqID+GIEX8ASG4B1bK5gIZFeQfoJdEXOfgX4QAQg7kH2A65yQ87lyxb27sggkAzAuFhbbg1K2kgCkB1bVwyIR9m2L7PRPIhDUIXgGtyKw575yz3lTNs6X4JXnjV+LKM/m3MydnTbtOKIjtz6VhCBq4vSm3ncdrD2lk0VgUXSVKjVDJXJzijW1RQdsU7F77He8u68koNZTz8Oz5yGa6J3H3lZ0xYgXBK2QymlWWA+RWnYhskLBv2vmE+hBMCtbA7KX5drWyRT/2JsqZ2IvfB9Y4bWDNMFbJRFmC9E74SoS0CqulwjkC0+5bpcV1CZ8NMej4pjy0U+doDQsGyo1hzVJttIjhQ7GnBtRFN1UarUlH8F3xict+HY07rEzoUGPlWcjRFRr4/gChZgc3ZL2d8oAAAAASUVORK5CYII=") !important;
136 }
137 #toast-container.toast-top-full-width > div,
138 #toast-container.toast-bottom-full-width > div {
139   width: 96%;
140   margin: auto;
141 }
142 .toast {
143   background-color: #030303;
144 }
145 .toast-success {
146   background-color: #51a351;
147 }
148 .toast-error {
149   background-color: #bd362f;
150 }
151 .toast-info {
152   background-color: #2f96b4;
153 }
154 .toast-warning {
155   background-color: #f89406;
156 }
157 /*Responsive Design*/
158 @media all and (max-width: 240px) {
159   #toast-container > div {
160     padding: 8px 8px 8px 50px;
161     width: 11em;
162   }
163   #toast-container .toast-close-button {
164     right: -0.2em;
165     top: -0.2em;
166   }
167 }
168 @media all and (min-width: 241px) and (max-width: 480px) {
169   #toast-container > div {
170     padding: 8px 8px 8px 50px;
171     width: 18em;
172   }
173   #toast-container .toast-close-button {
174     right: -0.2em;
175     top: -0.2em;
176   }
177 }
178 @media all and (min-width: 481px) and (max-width: 768px) {
179   #toast-container > div {
180     padding: 15px 15px 15px 50px;
181     width: 25em;
182   }
183 }