-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgl-toast.html
59 lines (58 loc) · 1.68 KB
/
gl-toast.html
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
<dom-module id="gl-toast">
<template>
<style>
paper-spinner{
--paper-spinner-stroke-width: 3px;
}
paper-button{
font-size: 16px !important;
}
.gl-toast-loading, .gl-toast-success, .gl-toast-warning, .gl-toast-error,.gl-toast-dialog{
width: 100%;
text-align: center;
font-size: 22px;
font-family: 'rsubold', sans-serif;
-webkit-font-smoothing: antialiased;
color: white;
}
.gl-toast-loading>span{
padding-left:10px;
position:relative;
bottom: 6px;
}
.gl-toast-loading>div{
padding: 10px 20px 10px 20px;
}
.gl-toast-dialog>div{
padding: 10px 20px 10px 20px;
}
.gl-toast-success{
background-color: #5cb85c;
}
.gl-toast-success>span{
padding-left:10px;
}
.gl-toast-warning{
background-color: #f0ad4e;
}
.gl-toast-error,.gl-toast-connecterror{
background-color: #d9534f;
}
.gl-toast-connecterror,.gl-toast-dialog{
width: 100%;
text-align: center;
}
.gl-toast-dialog{
background-color: #337ab7;
}
.gl-toast-connecterror>span{
font-size: 16px;
}
</style>
</template>
<script>
Polymer({
is: 'gl-toast'
});
</script>
</dom-module>