-
Notifications
You must be signed in to change notification settings - Fork 1
/
popover.css
130 lines (115 loc) · 2.48 KB
/
popover.css
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
@charset "UTF-8";
/* popover.css Copyright Vitim.us 24-jun-2013 */
/* Popover Style */
.popover {
position: absolute;
top: 0;
left: 0;
z-index: 1010;
max-width: 276px;
padding: 1px;
text-align: left;
white-space: normal;
background-color: #ffffff;
border: 1px solid #ccc;
border: 2px solid rgba(0, 0, 0, 0.2);
-webkit-border-radius: 6px;
-moz-border-radius: 6px;
border-radius: 6px;
-webkit-box-shadow: 0 5px 5px rgba(0, 0, 0, 0.2);
-moz-box-shadow: 0 5px 5px rgba(0, 0, 0, 0.2);
box-shadow: 0 5px 5px rgba(0, 0, 0, 0.2);
-webkit-background-clip: padding-box;
-moz-background-clip: padding;
background-clip: padding-box;
}
.popover .title {
padding: 8px 14px;
margin: 0;
font-size: 14px;
font-weight: normal;
line-height: 18px;
background-color: #f7f7f7;
border-bottom: 1px solid #ebebeb;
-webkit-border-radius: 5px 5px 0 0;
-moz-border-radius: 5px 5px 0 0;
border-radius: 5px 5px 0 0;
}
.popover .content {
padding: 9px 14px;
}
.popover{
margin: 12px;
}
/* Arrow Style */
.popover:after {
border-color: #fcfcfc;
border-width: 10px;
}
.popover.above:after,
.popover.below:after{
margin-left: -10px;
}
.popover.left:after,
.popover.right:after{
margin-top: 2px;
}
/* Arrow Shadow Style */
.popover:before {
border-color: rgba(0,0,0,0.25);
border-width: 12px;
}
.popover.above:before,
.popover.below:before{
margin-left: -12px;
}
.popover.left:before,
.popover.right:before{
margin-top: 0px;
}
/* Arrow Positioning */
.popover:not(.arrow):after,
.popover:not(.arrow):before{
-display:none;
}
.popover:after,
.popover:before{
position: absolute;
border-style: solid;
content: "";
height: 0;
width: 0;
pointer-events: none;
}
.popover.below:after,
.popover.below:before{
left: 50%;
bottom: 100%;
border-top-color: transparent;
border-left-color: transparent;
border-right-color: transparent;
}
.popover.above:after,
.popover.above:before{
left: 50%;
top: 100%;
border-bottom-color: transparent;
border-left-color: transparent;
border-right-color: transparent;
}
.popover.left:after,
.popover.left:before{
top: 0;
left: 100%;
border-top-color: transparent;
border-right-color: transparent;
border-bottom-color: transparent;
}
.popover.right:after,
.popover.right:before{
top: 0;
right: 100%;
border-top-color: transparent;
border-bottom-color: transparent;
border-left-color: transparent;
}