info@53
|
1 |
//
|
info@53
|
2 |
// Popovers
|
info@53
|
3 |
// --------------------------------------------------
|
info@53
|
4 |
|
info@53
|
5 |
|
info@53
|
6 |
.popover {
|
info@53
|
7 |
position: absolute;
|
info@53
|
8 |
top: 0;
|
info@53
|
9 |
left: 0;
|
info@53
|
10 |
z-index: @zindex-popover;
|
info@53
|
11 |
display: none;
|
info@53
|
12 |
max-width: @popover-max-width;
|
info@53
|
13 |
padding: 1px;
|
info@53
|
14 |
text-align: left; // Reset given new insertion method
|
info@53
|
15 |
background-color: @popover-bg;
|
info@53
|
16 |
background-clip: padding-box;
|
info@53
|
17 |
border: 1px solid @popover-fallback-border-color;
|
info@53
|
18 |
border: 1px solid @popover-border-color;
|
info@53
|
19 |
border-radius: @border-radius-large;
|
info@53
|
20 |
.box-shadow(0 5px 10px rgba(0,0,0,.2));
|
info@53
|
21 |
|
info@53
|
22 |
// Overrides for proper insertion
|
info@53
|
23 |
white-space: normal;
|
info@53
|
24 |
|
info@53
|
25 |
// Offset the popover to account for the popover arrow
|
info@53
|
26 |
&.top { margin-top: -10px; }
|
info@53
|
27 |
&.right { margin-left: 10px; }
|
info@53
|
28 |
&.bottom { margin-top: 10px; }
|
info@53
|
29 |
&.left { margin-left: -10px; }
|
info@53
|
30 |
}
|
info@53
|
31 |
|
info@53
|
32 |
.popover-title {
|
info@53
|
33 |
margin: 0; // reset heading margin
|
info@53
|
34 |
padding: 8px 14px;
|
info@53
|
35 |
font-size: @font-size-base;
|
info@53
|
36 |
font-weight: normal;
|
info@53
|
37 |
line-height: 18px;
|
info@53
|
38 |
background-color: @popover-title-bg;
|
info@53
|
39 |
border-bottom: 1px solid darken(@popover-title-bg, 5%);
|
info@53
|
40 |
border-radius: 5px 5px 0 0;
|
info@53
|
41 |
}
|
info@53
|
42 |
|
info@53
|
43 |
.popover-content {
|
info@53
|
44 |
padding: 9px 14px;
|
info@53
|
45 |
}
|
info@53
|
46 |
|
info@53
|
47 |
// Arrows
|
info@53
|
48 |
//
|
info@53
|
49 |
// .arrow is outer, .arrow:after is inner
|
info@53
|
50 |
|
info@53
|
51 |
.popover .arrow {
|
info@53
|
52 |
&,
|
info@53
|
53 |
&:after {
|
info@53
|
54 |
position: absolute;
|
info@53
|
55 |
display: block;
|
info@53
|
56 |
width: 0;
|
info@53
|
57 |
height: 0;
|
info@53
|
58 |
border-color: transparent;
|
info@53
|
59 |
border-style: solid;
|
info@53
|
60 |
}
|
info@53
|
61 |
}
|
info@53
|
62 |
.popover .arrow {
|
info@53
|
63 |
border-width: @popover-arrow-outer-width;
|
info@53
|
64 |
}
|
info@53
|
65 |
.popover .arrow:after {
|
info@53
|
66 |
border-width: @popover-arrow-width;
|
info@53
|
67 |
content: "";
|
info@53
|
68 |
}
|
info@53
|
69 |
|
info@53
|
70 |
.popover {
|
info@53
|
71 |
&.top .arrow {
|
info@53
|
72 |
left: 50%;
|
info@53
|
73 |
margin-left: -@popover-arrow-outer-width;
|
info@53
|
74 |
border-bottom-width: 0;
|
info@53
|
75 |
border-top-color: @popover-arrow-outer-fallback-color; // IE8 fallback
|
info@53
|
76 |
border-top-color: @popover-arrow-outer-color;
|
info@53
|
77 |
bottom: -@popover-arrow-outer-width;
|
info@53
|
78 |
&:after {
|
info@53
|
79 |
content: " ";
|
info@53
|
80 |
bottom: 1px;
|
info@53
|
81 |
margin-left: -@popover-arrow-width;
|
info@53
|
82 |
border-bottom-width: 0;
|
info@53
|
83 |
border-top-color: @popover-arrow-color;
|
info@53
|
84 |
}
|
info@53
|
85 |
}
|
info@53
|
86 |
&.right .arrow {
|
info@53
|
87 |
top: 50%;
|
info@53
|
88 |
left: -@popover-arrow-outer-width;
|
info@53
|
89 |
margin-top: -@popover-arrow-outer-width;
|
info@53
|
90 |
border-left-width: 0;
|
info@53
|
91 |
border-right-color: @popover-arrow-outer-fallback-color; // IE8 fallback
|
info@53
|
92 |
border-right-color: @popover-arrow-outer-color;
|
info@53
|
93 |
&:after {
|
info@53
|
94 |
content: " ";
|
info@53
|
95 |
left: 1px;
|
info@53
|
96 |
bottom: -@popover-arrow-width;
|
info@53
|
97 |
border-left-width: 0;
|
info@53
|
98 |
border-right-color: @popover-arrow-color;
|
info@53
|
99 |
}
|
info@53
|
100 |
}
|
info@53
|
101 |
&.bottom .arrow {
|
info@53
|
102 |
left: 50%;
|
info@53
|
103 |
margin-left: -@popover-arrow-outer-width;
|
info@53
|
104 |
border-top-width: 0;
|
info@53
|
105 |
border-bottom-color: @popover-arrow-outer-fallback-color; // IE8 fallback
|
info@53
|
106 |
border-bottom-color: @popover-arrow-outer-color;
|
info@53
|
107 |
top: -@popover-arrow-outer-width;
|
info@53
|
108 |
&:after {
|
info@53
|
109 |
content: " ";
|
info@53
|
110 |
top: 1px;
|
info@53
|
111 |
margin-left: -@popover-arrow-width;
|
info@53
|
112 |
border-top-width: 0;
|
info@53
|
113 |
border-bottom-color: @popover-arrow-color;
|
info@53
|
114 |
}
|
info@53
|
115 |
}
|
info@53
|
116 |
|
info@53
|
117 |
&.left .arrow {
|
info@53
|
118 |
top: 50%;
|
info@53
|
119 |
right: -@popover-arrow-outer-width;
|
info@53
|
120 |
margin-top: -@popover-arrow-outer-width;
|
info@53
|
121 |
border-right-width: 0;
|
info@53
|
122 |
border-left-color: @popover-arrow-outer-fallback-color; // IE8 fallback
|
info@53
|
123 |
border-left-color: @popover-arrow-outer-color;
|
info@53
|
124 |
&:after {
|
info@53
|
125 |
content: " ";
|
info@53
|
126 |
right: 1px;
|
info@53
|
127 |
border-right-width: 0;
|
info@53
|
128 |
border-left-color: @popover-arrow-color;
|
info@53
|
129 |
bottom: -@popover-arrow-width;
|
info@53
|
130 |
}
|
info@53
|
131 |
}
|
info@53
|
132 |
|
info@53
|
133 |
}
|