1 | @import "../node_modules/tinper-bee-core/scss/minxin-variables";
|
2 | @import "../node_modules/tinper-bee-core/scss/minxin-mixins";
|
3 |
|
4 | $popover-max-width: 300px;
|
5 | $zIndex-popover: 1540;
|
6 | $popover-margin: 10px;
|
7 | $popover-title-bg: #f7f7f7;
|
8 | $popover-border-color: #ccc;
|
9 | $popover-arrow-width: 10px;
|
10 | $popover-arrow-color: #999;
|
11 | $popover-arrow-outer-width:10px ;
|
12 | $popover-arrow-outer-color: #999;
|
13 |
|
14 | $popover-fallback-border-color: #fff;
|
15 |
|
16 | .u-popover {
|
17 | position: absolute;
|
18 | top: 0;
|
19 | left: 0;
|
20 | z-index: $zIndex-popover;
|
21 | display: none;
|
22 | padding: 1px;
|
23 | font-style: normal;
|
24 | font-weight: 400;
|
25 | letter-spacing: normal;
|
26 | line-break: auto;
|
27 | line-height: 1.42857143;
|
28 | text-align: left;
|
29 | text-decoration: none;
|
30 | text-shadow: none;
|
31 | text-transform: none;
|
32 | white-space: normal;
|
33 | word-break: normal;
|
34 | word-spacing: normal;
|
35 | word-wrap: normal;
|
36 | font-size: 14px;
|
37 | background-color: #fff;
|
38 | background-clip: padding-box;
|
39 | border: 1px solid $popover-border-color;
|
40 | border-radius:$border-radius;
|
41 | box-shadow: 0 5px 10px rgba(0,0,0,.2);
|
42 | &>.arrow, &>.arrow:after {
|
43 | position: absolute;
|
44 | display: block;
|
45 | width: 0;
|
46 | height: 0;
|
47 | border-color: transparent;
|
48 | border-style: solid;
|
49 | }
|
50 | &>.arrow {
|
51 | border-width: $popover-arrow-width;
|
52 | }
|
53 | &>.arrow:after {
|
54 | border-width: $popover-arrow-width;
|
55 | content: "";
|
56 | }
|
57 |
|
58 | &.top, &.top-right, &.top-left{
|
59 | margin-top: -$popover-margin;
|
60 | .arrow {
|
61 | left: 50%;
|
62 | margin-left: -11px;
|
63 | border-bottom-width: 0;
|
64 | border-top-color: $popover-arrow-outer-color;
|
65 | bottom: -11px;
|
66 | &:after {
|
67 | content: " ";
|
68 | bottom: 1px;
|
69 | margin-left: -10px;
|
70 | border-bottom-width: 0;
|
71 | border-top-color: $popover-fallback-border-color;
|
72 | }
|
73 | }
|
74 | }
|
75 | &.top-right{
|
76 | .arrow {
|
77 | left: auto;
|
78 | right: 20px;
|
79 | }
|
80 | }
|
81 | &.top-left{
|
82 | .arrow {
|
83 | left: 20px;
|
84 | }
|
85 | }
|
86 | &.right, &.right-top, &.right-bottom{
|
87 | margin-left: $popover-margin;
|
88 | .arrow {
|
89 | top: 50%;
|
90 | left: -11px;
|
91 | margin-top: -11px;
|
92 | border-left-width: 0;
|
93 | border-right-color: $popover-arrow-outer-color;
|
94 | &:after {
|
95 | content: " ";
|
96 | left: 1px;
|
97 | bottom: -10px;
|
98 | border-left-width: 0;
|
99 | border-right-color: $popover-fallback-border-color;
|
100 | }
|
101 | }
|
102 | }
|
103 | &.right-top{
|
104 | .arrow{
|
105 | top: 20px;
|
106 | }
|
107 | }
|
108 | &.right-bottom{
|
109 | .arrow{
|
110 | top: auto;
|
111 | bottom: 10px;
|
112 | }
|
113 | }
|
114 |
|
115 | &.left, &.left-top, &.left-bottom{
|
116 | margin-left: -$popover-margin;
|
117 | .arrow {
|
118 | top: 50%;
|
119 | right: -11px;
|
120 | margin-top: -11px;
|
121 | border-right-width: 0;
|
122 | border-left-color: $popover-arrow-outer-color;
|
123 | &:after {
|
124 | content: " ";
|
125 | right: 1px;
|
126 | border-right-width: 0;
|
127 | border-left-color: $popover-fallback-border-color;
|
128 | bottom: -10px;
|
129 | }
|
130 | }
|
131 | }
|
132 | &.left-top{
|
133 | .arrow{
|
134 | top: 20px;
|
135 | }
|
136 | }
|
137 | &.left-bottom{
|
138 | .arrow{
|
139 | top: auto;
|
140 | bottom: 10px;
|
141 | }
|
142 | }
|
143 |
|
144 | &.bottom, &.bottom-right, &.bottom-left{
|
145 | margin-top: $popover-margin;
|
146 | .arrow {
|
147 | left: 50%;
|
148 | margin-left: -11px;
|
149 | border-top-width: 0;
|
150 | border-bottom-color: $popover-arrow-outer-color;
|
151 | top: -11px;
|
152 | &:after {
|
153 | content: " ";
|
154 | top: 1px;
|
155 | margin-left: -10px;
|
156 | border-top-width: 0;
|
157 | border-bottom-color: $popover-fallback-border-color;
|
158 | }
|
159 | }
|
160 | }
|
161 | &.bottom-right{
|
162 | .arrow{
|
163 | right: 20px;
|
164 | left: auto;
|
165 | }
|
166 | }
|
167 | &.bottom-left{
|
168 | .arrow{
|
169 | left: 20px;
|
170 | }
|
171 | }
|
172 | .u-popover-content {
|
173 | padding: 9px 14px;
|
174 | }
|
175 | }
|
176 |
|
177 |
|
178 |
|
179 |
|
180 |
|
181 |
|
182 |
|
183 |
|
184 |
|
185 |
|
186 |
|
187 |
|
188 |
|
189 |
|
190 |
|
191 |
|
192 |
|
193 |
|
194 |
|
195 |
|
196 |
|
197 |
|