|
9 | 9 | top: 0; |
10 | 10 | left: 0; |
11 | 11 | z-index: @zindex-popover; |
12 | | - cursor: auto; |
13 | | - user-select: text; |
14 | | - white-space: normal; |
15 | 12 | font-weight: normal; |
| 13 | + white-space: normal; |
16 | 14 | text-align: left; |
| 15 | + cursor: auto; |
| 16 | + user-select: text; |
17 | 17 |
|
18 | | - &:after { |
19 | | - content: ''; |
| 18 | + &::after { |
20 | 19 | position: absolute; |
21 | | - background: rgba(255, 255, 255, 0.01); |
| 20 | + background: fade(@white, 1%); |
| 21 | + content: ''; |
22 | 22 | } |
23 | 23 |
|
24 | 24 | &-hidden { |
|
55 | 55 | background-clip: padding-box; |
56 | 56 | border-radius: @border-radius-base; |
57 | 57 | box-shadow: @box-shadow-base; |
| 58 | + box-shadow: ~'0 0 8px @{shadow-color} \9'; |
| 59 | + } |
| 60 | + |
| 61 | + @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) { |
| 62 | + /* IE10+ */ |
| 63 | + &-inner { |
| 64 | + box-shadow: @box-shadow-base; |
| 65 | + } |
58 | 66 | } |
59 | 67 |
|
60 | 68 | &-title { |
61 | 69 | min-width: @popover-min-width; |
| 70 | + min-height: 32px; |
62 | 71 | margin: 0; // reset heading margin |
63 | 72 | padding: 5px @padding-md 4px; |
64 | | - min-height: 32px; |
65 | | - border-bottom: 1px solid @border-color-split; |
66 | 73 | color: @heading-color; |
67 | 74 | font-weight: 500; |
| 75 | + border-bottom: 1px solid @border-color-split; |
68 | 76 | } |
69 | 77 |
|
70 | 78 | &-inner-content { |
|
73 | 81 | } |
74 | 82 |
|
75 | 83 | &-message { |
| 84 | + position: relative; |
76 | 85 | padding: 4px 0 12px; |
77 | | - font-size: @font-size-base; |
78 | 86 | color: @popover-color; |
79 | | - position: relative; |
| 87 | + font-size: @font-size-base; |
80 | 88 | > .@{iconfont-css-prefix} { |
81 | 89 | position: absolute; |
82 | 90 | top: 8px; // 4px for padding-top, 4px for vertical middle; |
|
89 | 97 | } |
90 | 98 |
|
91 | 99 | &-buttons { |
92 | | - text-align: right; |
93 | 100 | margin-bottom: 4px; |
| 101 | + text-align: right; |
94 | 102 | button { |
95 | 103 | margin-left: 8px; |
96 | 104 | } |
|
100 | 108 | // .popover-arrow is outer, .popover-arrow:after is inner |
101 | 109 |
|
102 | 110 | &-arrow { |
103 | | - background: @popover-bg; |
104 | | - background-color: inherit; |
105 | | - width: sqrt(@popover-arrow-width * @popover-arrow-width * 2); |
106 | | - height: sqrt(@popover-arrow-width * @popover-arrow-width * 2); |
107 | | - transform: rotate(45deg); |
108 | 111 | position: absolute; |
109 | 112 | display: block; |
110 | | - border-color: transparent; |
| 113 | + width: sqrt(@popover-arrow-width * @popover-arrow-width * 2); |
| 114 | + height: sqrt(@popover-arrow-width * @popover-arrow-width * 2); |
| 115 | + background: transparent; |
| 116 | + border-width: sqrt(@popover-arrow-width * @popover-arrow-width * 2) / 2; |
111 | 117 | border-style: solid; |
| 118 | + transform: rotate(45deg); |
112 | 119 | } |
113 | 120 |
|
114 | 121 | &-placement-top > &-content > &-arrow, |
115 | 122 | &-placement-topLeft > &-content > &-arrow, |
116 | 123 | &-placement-topRight > &-content > &-arrow { |
117 | | - bottom: @popover-distance - @popover-arrow-width + 1.5px; |
118 | | - box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.07); |
| 124 | + bottom: @popover-distance - @popover-arrow-width + 2.2px; |
| 125 | + border-top-color: transparent; |
| 126 | + border-right-color: @popover-bg; |
| 127 | + border-bottom-color: @popover-bg; |
| 128 | + border-left-color: transparent; |
| 129 | + box-shadow: 3px 3px 7px fade(@black, 7%); |
119 | 130 | } |
120 | 131 | &-placement-top > &-content > &-arrow { |
121 | 132 | left: 50%; |
|
132 | 143 | &-placement-rightTop > &-content > &-arrow, |
133 | 144 | &-placement-rightBottom > &-content > &-arrow { |
134 | 145 | left: @popover-distance - @popover-arrow-width + 2px; |
135 | | - box-shadow: -3px 3px 7px rgba(0, 0, 0, 0.07); |
| 146 | + border-top-color: transparent; |
| 147 | + border-right-color: transparent; |
| 148 | + border-bottom-color: @popover-bg; |
| 149 | + border-left-color: @popover-bg; |
| 150 | + box-shadow: -3px 3px 7px fade(@black, 7%); |
136 | 151 | } |
137 | 152 | &-placement-right > &-content > &-arrow { |
138 | 153 | top: 50%; |
|
149 | 164 | &-placement-bottomLeft > &-content > &-arrow, |
150 | 165 | &-placement-bottomRight > &-content > &-arrow { |
151 | 166 | top: @popover-distance - @popover-arrow-width + 2px; |
152 | | - box-shadow: -2px -2px 5px rgba(0, 0, 0, 0.06); |
| 167 | + border-top-color: @popover-bg; |
| 168 | + border-right-color: transparent; |
| 169 | + border-bottom-color: transparent; |
| 170 | + border-left-color: @popover-bg; |
| 171 | + box-shadow: -2px -2px 5px fade(@black, 6%); |
153 | 172 | } |
154 | 173 | &-placement-bottom > &-content > &-arrow { |
155 | 174 | left: 50%; |
|
166 | 185 | &-placement-leftTop > &-content > &-arrow, |
167 | 186 | &-placement-leftBottom > &-content > &-arrow { |
168 | 187 | right: @popover-distance - @popover-arrow-width + 2px; |
169 | | - box-shadow: 3px -3px 7px rgba(0, 0, 0, 0.07); |
| 188 | + border-top-color: @popover-bg; |
| 189 | + border-right-color: @popover-bg; |
| 190 | + border-bottom-color: transparent; |
| 191 | + border-left-color: transparent; |
| 192 | + box-shadow: 3px -3px 7px fade(@black, 7%); |
170 | 193 | } |
171 | 194 | &-placement-left > &-content > &-arrow { |
172 | 195 | top: 50%; |
|
0 commit comments