Administrator
2022-09-14 58d006e05dcf2a20d0ec5367dd03d66a61db6849
提交 | 用户 | 时间
58d006 1 button[data-balloon] {
A 2   overflow: visible;
3 }
4 [data-balloon] {
5   position: relative;
6 }
7 [data-balloon]:before,
8 [data-balloon]:after {
9   -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
10   filter: alpha(opacity=0);
11   -khtml-opacity: 0;
12   -moz-opacity: 0;
13   opacity: 0;
14   pointer-events: none;
15   -webkit-transition: all 0.18s ease-out 0.18s;
16   transition: all 0.18s ease-out 0.18s;
17   bottom: 100%;
18   left: 50%;
19   position: absolute;
20   z-index: 10;
21   -webkit-transform: translate(-50%, 10px);
22   -ms-transform: translate(-50%, 10px);
23   transform: translate(-50%, 10px);
24   -webkit-transform-origin: top;
25   -ms-transform-origin: top;
26   transform-origin: top;
27 }
28 [data-balloon]:after {
29   background: rgba(17, 17, 17, 0.9);
30   border-radius: 4px;
31   color: #fff;
32   content: attr(data-balloon);
33   font-size: 12px;
34   padding: .5em 1em;
35   white-space: nowrap;
36   margin-bottom: 11px;
37 }
38 [data-balloon]:before {
39   background: url('data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2236px%22%20height%3D%2212px%22%3E%3Cpath%20fill%3D%22rgba%2817,%2017,%2017,%200.9%29%22%20transform%3D%22rotate%280%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E') no-repeat;
40   background-size: 100% auto;
41   height: 6px;
42   width: 18px;
43   content: "";
44   margin-bottom: 5px;
45 }
46 [data-balloon]:hover:before,
47 [data-balloon][data-balloon-visible]:before,
48 [data-balloon]:hover:after,
49 [data-balloon][data-balloon-visible]:after {
50   -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
51   filter: alpha(opacity=100);
52   -khtml-opacity: 1;
53   -moz-opacity: 1;
54   opacity: 1;
55   pointer-events: auto;
56   -webkit-transform: translate(-50%, 0);
57   -ms-transform: translate(-50%, 0);
58   transform: translate(-50%, 0);
59 }
60 [data-balloon].font-awesome:after {
61   font-family: FontAwesome;
62 }
63 [data-balloon][data-balloon-break]:after {
64   white-space: pre;
65 }
66 [data-balloon-pos="down"]:before,
67 [data-balloon-pos="down"]:after {
68   bottom: auto;
69   left: 50%;
70   top: 100%;
71   -webkit-transform: translate(-50%, -10px);
72   -ms-transform: translate(-50%, -10px);
73   transform: translate(-50%, -10px);
74 }
75 [data-balloon-pos="down"]:after {
76   margin-top: 11px;
77 }
78 [data-balloon-pos="down"]:before {
79   background: url('data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2236px%22%20height%3D%2212px%22%3E%3Cpath%20fill%3D%22rgba%2817,%2017,%2017,%200.9%29%22%20transform%3D%22rotate%28180%2018%206%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E') no-repeat;
80   background-size: 100% auto;
81   height: 6px;
82   width: 18px;
83   margin-top: 5px;
84   margin-bottom: 0;
85 }
86 [data-balloon-pos="down"]:hover:before,
87 [data-balloon-pos="down"][data-balloon-visible]:before,
88 [data-balloon-pos="down"]:hover:after,
89 [data-balloon-pos="down"][data-balloon-visible]:after {
90   -webkit-transform: translate(-50%, 0);
91   -ms-transform: translate(-50%, 0);
92   transform: translate(-50%, 0);
93 }
94 [data-balloon-pos="left"]:before,
95 [data-balloon-pos="left"]:after {
96   bottom: auto;
97   left: auto;
98   right: 100%;
99   top: 50%;
100   -webkit-transform: translate(10px, -50%);
101   -ms-transform: translate(10px, -50%);
102   transform: translate(10px, -50%);
103 }
104 [data-balloon-pos="left"]:after {
105   margin-right: 11px;
106 }
107 [data-balloon-pos="left"]:before {
108   background: url('data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2212px%22%20height%3D%2236px%22%3E%3Cpath%20fill%3D%22rgba%2817,%2017,%2017,%200.9%29%22%20transform%3D%22rotate%28-90%2018%2018%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E') no-repeat;
109   background-size: 100% auto;
110   height: 18px;
111   width: 6px;
112   margin-right: 5px;
113   margin-bottom: 0;
114 }
115 [data-balloon-pos="left"]:hover:before,
116 [data-balloon-pos="left"][data-balloon-visible]:before,
117 [data-balloon-pos="left"]:hover:after,
118 [data-balloon-pos="left"][data-balloon-visible]:after {
119   -webkit-transform: translate(0, -50%);
120   -ms-transform: translate(0, -50%);
121   transform: translate(0, -50%);
122 }
123 [data-balloon-pos="right"]:before,
124 [data-balloon-pos="right"]:after {
125   bottom: auto;
126   left: 100%;
127   top: 50%;
128   -webkit-transform: translate(-10px, -50%);
129   -ms-transform: translate(-10px, -50%);
130   transform: translate(-10px, -50%);
131 }
132 [data-balloon-pos="right"]:after {
133   margin-left: 11px;
134 }
135 [data-balloon-pos="right"]:before {
136   background: url('data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2212px%22%20height%3D%2236px%22%3E%3Cpath%20fill%3D%22rgba%2817,%2017,%2017,%200.9%29%22%20transform%3D%22rotate%2890%206%206%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E') no-repeat;
137   background-size: 100% auto;
138   height: 18px;
139   width: 6px;
140   margin-bottom: 0;
141   margin-left: 5px;
142 }
143 [data-balloon-pos="right"]:hover:before,
144 [data-balloon-pos="right"][data-balloon-visible]:before,
145 [data-balloon-pos="right"]:hover:after,
146 [data-balloon-pos="right"][data-balloon-visible]:after {
147   -webkit-transform: translate(0, -50%);
148   -ms-transform: translate(0, -50%);
149   transform: translate(0, -50%);
150 }
151 [data-balloon-length]:after {
152   white-space: normal;
153 }
154 [data-balloon-length="small"]:after {
155   width: 80px;
156 }
157 [data-balloon-length="medium"]:after {
158   width: 150px;
159 }
160 [data-balloon-length="large"]:after {
161   width: 260px;
162 }
163 [data-balloon-length="xlarge"]:after {
164   width: 90vw;
165 }
166 @media screen and (min-width: 768px) {
167   [data-balloon-length="xlarge"]:after {
168     width: 380px;
169   }
170 }
171 [data-balloon-length="fit"]:after {
172   width: 100%;
173 }