ant-design-vue/components/popover/style/index.less

182 lines
4.3 KiB
Plaintext
Raw Normal View History

2019-01-02 13:01:56 +00:00
@import '../../style/themes/default';
@import '../../style/mixins/index';
2018-01-12 08:10:41 +00:00
2019-01-02 13:01:56 +00:00
@popover-prefix-cls: ~'@{ant-prefix}-popover';
2018-01-12 08:10:41 +00:00
.@{popover-prefix-cls} {
2018-01-15 10:54:26 +00:00
.reset-component;
2018-01-12 08:10:41 +00:00
position: absolute;
top: 0;
left: 0;
z-index: @zindex-popover;
cursor: auto;
user-select: text;
white-space: normal;
font-weight: normal;
text-align: left;
&:after {
2019-01-02 13:01:56 +00:00
content: '';
2018-01-12 08:10:41 +00:00
position: absolute;
background: rgba(255, 255, 255, 0.01);
}
&-hidden {
display: none;
}
// Offset the popover to account for the popover arrow
&-placement-top,
&-placement-topLeft,
&-placement-topRight {
padding-bottom: @popover-distance;
}
&-placement-right,
&-placement-rightTop,
&-placement-rightBottom {
padding-left: @popover-distance;
}
&-placement-bottom,
&-placement-bottomLeft,
&-placement-bottomRight {
padding-top: @popover-distance;
}
&-placement-left,
&-placement-leftTop,
&-placement-leftBottom {
padding-right: @popover-distance;
}
&-inner {
background-color: @popover-bg;
background-clip: padding-box;
border-radius: @border-radius-base;
box-shadow: @box-shadow-base;
}
&-title {
min-width: @popover-min-width;
margin: 0; // reset heading margin
2018-01-15 10:54:26 +00:00
padding: 5px @padding-md 4px;
2018-01-12 08:10:41 +00:00
min-height: 32px;
border-bottom: 1px solid @border-color-split;
2018-01-15 10:54:26 +00:00
color: @heading-color;
2018-01-12 08:10:41 +00:00
font-weight: 500;
}
&-inner-content {
2018-01-15 10:54:26 +00:00
padding: 12px @padding-md;
2018-01-12 08:10:41 +00:00
color: @popover-color;
}
&-message {
2018-01-15 10:54:26 +00:00
padding: 4px 0 12px;
2018-01-12 08:10:41 +00:00
font-size: @font-size-base;
color: @popover-color;
2018-11-14 13:33:56 +00:00
position: relative;
2018-01-12 08:10:41 +00:00
> .@{iconfont-css-prefix} {
position: absolute;
2018-11-14 13:33:56 +00:00
top: 8px; // 4px for padding-top, 4px for vertical middle;
color: @warning-color;
font-size: @font-size-base;
2018-01-12 08:10:41 +00:00
}
&-title {
2018-01-15 10:54:26 +00:00
padding-left: @font-size-base + 8px;
2018-01-12 08:10:41 +00:00
}
}
&-buttons {
text-align: right;
2018-01-15 10:54:26 +00:00
margin-bottom: 4px;
2018-01-12 08:10:41 +00:00
button {
margin-left: 8px;
}
}
// Arrows
// .popover-arrow is outer, .popover-arrow:after is inner
&-arrow {
2018-01-15 10:54:26 +00:00
background: @popover-bg;
2019-01-02 13:01:56 +00:00
background-color: inherit;
2018-01-15 10:54:26 +00:00
width: sqrt(@popover-arrow-width * @popover-arrow-width * 2);
height: sqrt(@popover-arrow-width * @popover-arrow-width * 2);
transform: rotate(45deg);
position: absolute;
display: block;
border-color: transparent;
border-style: solid;
2018-01-12 08:10:41 +00:00
}
&-placement-top > &-content > &-arrow,
2019-01-02 13:01:56 +00:00
&-placement-topLeft > &-content > &-arrow,
&-placement-topRight > &-content > &-arrow {
update to antd3.8.3 (#159) * refactor: align * feat: update align to 2.4.3 * feat: update trigger 2.5.4 * feat: update tooltip 3.7.2 * fix: align * feat: update vc-calendar to 9.6.2 * feat: update vc-checkbox to 2.1.5 * feat: update vc-dialog to 7.1.8 * feat: update vc-from to 2.2.1 * feat: update vc-notification to 3.1.1 * test: update snapshots * feat: update vc-tree to 1.12.6 * feat: update vc-table to 6.2.8 * feat: update vc-upload to 2.5.1 * feat: update vc-input-number to 4.0.12 * feat: update vc-tabs to 9.2.6 * refactor: vc-menu * refactor: update vc-menu to 7.0.5 * style: remove unused * feat: update pagination to 1.16.5 * feat: add vc-progress 2.2.5 tag * feat: add vc-rate 2.4.0 tag * feat: update vc-slider to 8.6.1 * fix: tooltip error * style: delete conosle * feat: update vc-steps to 3.1.1 * add vc-switch tag 1.6.0 * feat: update upload to 2.5.1 * fix: update vc-menu * fix: update store * fix: add ref dir * fix: trigger mock shouldComponentUpdate * fix: update vc-select * revert: trigger lazyrenderbox * fix: update vc-select * fix: update vc-select * fix: update vc-select * fix: update vc-menu * fix: update vc-slick ref * update style to 3.8.2 * test: update snapshots * update vc-select * update util & affix * feat: add drawer * fix: support title add slot mode * test: update affix test * update alert * update anchor * update snapshots * fix: doc and vc-drawer * update select & auto-complete * update back-top & grid * feractor: avatar * test: add drawer test * update badge * update button * update card * update divider * feat: update vc-tabs to 9.3.6 and tabs * add afterEnter callback * update form * fix: update drawer * test: update snapshots * update modal & notification * test: update snapshots * update message * update locale-provider * update dropdown * update layout popconfirm popover * update time-picker * update menu * update date-picker * docs: update input docs * update input * update snapshots * update table * update test snapshots * feat: update progress * update checkbox * feat: update spin * update radio * docs: slider steps timeline * update list * update transfer * update collapse * update cascader * update upload
2018-09-05 13:28:54 +00:00
bottom: @popover-distance - @popover-arrow-width + 1.5px;
2018-01-15 10:54:26 +00:00
box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.07);
2018-01-12 08:10:41 +00:00
}
2019-01-02 13:01:56 +00:00
&-placement-top > &-content > &-arrow {
2018-01-12 08:10:41 +00:00
left: 50%;
2018-01-15 10:54:26 +00:00
transform: translateX(-50%) rotate(45deg);
2018-01-12 08:10:41 +00:00
}
2019-01-02 13:01:56 +00:00
&-placement-topLeft > &-content > &-arrow {
2018-01-12 08:10:41 +00:00
left: 16px;
}
2019-01-02 13:01:56 +00:00
&-placement-topRight > &-content > &-arrow {
2018-01-12 08:10:41 +00:00
right: 16px;
}
2019-01-02 13:01:56 +00:00
&-placement-right > &-content > &-arrow,
&-placement-rightTop > &-content > &-arrow,
&-placement-rightBottom > &-content > &-arrow {
2018-01-15 10:54:26 +00:00
left: @popover-distance - @popover-arrow-width + 2px;
box-shadow: -3px 3px 7px rgba(0, 0, 0, 0.07);
2018-01-12 08:10:41 +00:00
}
2019-01-02 13:01:56 +00:00
&-placement-right > &-content > &-arrow {
2018-01-12 08:10:41 +00:00
top: 50%;
2018-01-15 10:54:26 +00:00
transform: translateY(-50%) rotate(45deg);
2018-01-12 08:10:41 +00:00
}
2019-01-02 13:01:56 +00:00
&-placement-rightTop > &-content > &-arrow {
2018-01-12 08:10:41 +00:00
top: 12px;
}
2019-01-02 13:01:56 +00:00
&-placement-rightBottom > &-content > &-arrow {
2018-01-12 08:10:41 +00:00
bottom: 12px;
}
2019-01-02 13:01:56 +00:00
&-placement-bottom > &-content > &-arrow,
&-placement-bottomLeft > &-content > &-arrow,
&-placement-bottomRight > &-content > &-arrow {
2018-01-15 10:54:26 +00:00
top: @popover-distance - @popover-arrow-width + 2px;
update to antd3.8.3 (#159) * refactor: align * feat: update align to 2.4.3 * feat: update trigger 2.5.4 * feat: update tooltip 3.7.2 * fix: align * feat: update vc-calendar to 9.6.2 * feat: update vc-checkbox to 2.1.5 * feat: update vc-dialog to 7.1.8 * feat: update vc-from to 2.2.1 * feat: update vc-notification to 3.1.1 * test: update snapshots * feat: update vc-tree to 1.12.6 * feat: update vc-table to 6.2.8 * feat: update vc-upload to 2.5.1 * feat: update vc-input-number to 4.0.12 * feat: update vc-tabs to 9.2.6 * refactor: vc-menu * refactor: update vc-menu to 7.0.5 * style: remove unused * feat: update pagination to 1.16.5 * feat: add vc-progress 2.2.5 tag * feat: add vc-rate 2.4.0 tag * feat: update vc-slider to 8.6.1 * fix: tooltip error * style: delete conosle * feat: update vc-steps to 3.1.1 * add vc-switch tag 1.6.0 * feat: update upload to 2.5.1 * fix: update vc-menu * fix: update store * fix: add ref dir * fix: trigger mock shouldComponentUpdate * fix: update vc-select * revert: trigger lazyrenderbox * fix: update vc-select * fix: update vc-select * fix: update vc-select * fix: update vc-menu * fix: update vc-slick ref * update style to 3.8.2 * test: update snapshots * update vc-select * update util & affix * feat: add drawer * fix: support title add slot mode * test: update affix test * update alert * update anchor * update snapshots * fix: doc and vc-drawer * update select & auto-complete * update back-top & grid * feractor: avatar * test: add drawer test * update badge * update button * update card * update divider * feat: update vc-tabs to 9.3.6 and tabs * add afterEnter callback * update form * fix: update drawer * test: update snapshots * update modal & notification * test: update snapshots * update message * update locale-provider * update dropdown * update layout popconfirm popover * update time-picker * update menu * update date-picker * docs: update input docs * update input * update snapshots * update table * update test snapshots * feat: update progress * update checkbox * feat: update spin * update radio * docs: slider steps timeline * update list * update transfer * update collapse * update cascader * update upload
2018-09-05 13:28:54 +00:00
box-shadow: -2px -2px 5px rgba(0, 0, 0, 0.06);
2018-01-12 08:10:41 +00:00
}
2019-01-02 13:01:56 +00:00
&-placement-bottom > &-content > &-arrow {
2018-01-12 08:10:41 +00:00
left: 50%;
2018-01-15 10:54:26 +00:00
transform: translateX(-50%) rotate(45deg);
2018-01-12 08:10:41 +00:00
}
2019-01-02 13:01:56 +00:00
&-placement-bottomLeft > &-content > &-arrow {
2018-01-12 08:10:41 +00:00
left: 16px;
}
2019-01-02 13:01:56 +00:00
&-placement-bottomRight > &-content > &-arrow {
2018-01-12 08:10:41 +00:00
right: 16px;
}
2019-01-02 13:01:56 +00:00
&-placement-left > &-content > &-arrow,
&-placement-leftTop > &-content > &-arrow,
&-placement-leftBottom > &-content > &-arrow {
2018-01-15 10:54:26 +00:00
right: @popover-distance - @popover-arrow-width + 2px;
box-shadow: 3px -3px 7px rgba(0, 0, 0, 0.07);
2018-01-12 08:10:41 +00:00
}
2019-01-02 13:01:56 +00:00
&-placement-left > &-content > &-arrow {
2018-01-12 08:10:41 +00:00
top: 50%;
2018-01-15 10:54:26 +00:00
transform: translateY(-50%) rotate(45deg);
2018-01-12 08:10:41 +00:00
}
2019-01-02 13:01:56 +00:00
&-placement-leftTop > &-content > &-arrow {
2018-01-12 08:10:41 +00:00
top: 12px;
}
2019-01-02 13:01:56 +00:00
&-placement-leftBottom > &-content > &-arrow {
2018-01-12 08:10:41 +00:00
bottom: 12px;
}
}