1 | .tip {
|
2 | font-size: 11px;
|
3 | position: absolute;
|
4 | padding: 5px;
|
5 | z-index: 1000;
|
6 | }
|
7 |
|
8 | .tip-inner {
|
9 | background-color: rgba(0,0,0,.75);
|
10 | color: #fff;
|
11 | max-width: 200px;
|
12 | padding: 8px 10px 7px 10px;
|
13 | text-align: center;
|
14 | }
|
15 |
|
16 | .tip-inner {
|
17 | border-radius: 3px;
|
18 | -moz-border-radius: 3px;
|
19 | -webkit-border-radius: 3px;
|
20 | }
|
21 |
|
22 | .tip-arrow {
|
23 | position: absolute;
|
24 | width: 0;
|
25 | height: 0;
|
26 | line-height: 0;
|
27 | border: 5px dashed rgba(0,0,0,.75);
|
28 | }
|
29 |
|
30 | .tip-arrow-south { border-bottom-color: rgba(0,0,0,.75) }
|
31 | .tip-arrow-north { border-top-color: rgba(0,0,0,.75) }
|
32 | .tip-arrow-west { border-left-color: rgba(0,0,0,.75) }
|
33 | .tip-arrow-east { border-right-color: rgba(0,0,0,.75) }
|
34 |
|
35 | .tip-south .tip-arrow {
|
36 | top: 0px;
|
37 | left: 50%;
|
38 | margin-left: -5px;
|
39 | border-bottom-style: solid;
|
40 | border-top: none;
|
41 | border-left-color: transparent;
|
42 | border-right-color: transparent
|
43 | }
|
44 |
|
45 | .tip-north .tip-arrow {
|
46 | bottom: 0;
|
47 | left: 50%;
|
48 | margin-left: -5px;
|
49 | border-top-style: solid;
|
50 | border-bottom: none;
|
51 | border-left-color: transparent;
|
52 | border-right-color: transparent
|
53 | }
|
54 |
|
55 | .tip-west .tip-arrow,
|
56 | .tip-north-west .tip-arrow,
|
57 | .tip-south-west .tip-arrow {
|
58 | right: 0;
|
59 | top: 50%;
|
60 | margin-top: -5px;
|
61 | border-left-style: solid;
|
62 | border-right: none;
|
63 | border-top-color: transparent;
|
64 | border-bottom-color: transparent
|
65 | }
|
66 |
|
67 | .tip-east .tip-arrow,
|
68 | .tip-north-east .tip-arrow,
|
69 | .tip-south-east .tip-arrow {
|
70 | left: 0;
|
71 | top: 50%;
|
72 | margin-top: -5px;
|
73 | border-right-style: solid;
|
74 | border-left: none;
|
75 | border-top-color: transparent;
|
76 | border-bottom-color: transparent
|
77 | }
|
78 |
|
79 | .tip-north-west .tip-arrow,
|
80 | .tip-north-east .tip-arrow {
|
81 | top: 25%;
|
82 | }
|
83 |
|
84 | .tip-south-west .tip-arrow,
|
85 | .tip-south-east .tip-arrow {
|
86 | top: 75%;
|
87 | }
|
88 |
|
89 |
|
90 |
|
91 | .tip.fade {
|
92 | transition: opacity 100ms;
|
93 | -moz-transition: opacity 100ms;
|
94 | -webkit-transition: opacity 100ms;
|
95 | }
|
96 |
|
97 | .tip-hide {
|
98 | opacity: 0;
|
99 | }
|