Skip to content

Commit

Permalink
ver. 0.5.4
Browse files Browse the repository at this point in the history
  • Loading branch information
光弘 committed Dec 12, 2017
1 parent 453016b commit cf2c881
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 14 deletions.
5 changes: 5 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# HISTORY

## 0.5.4

* `CHANGED` arrow position imporvement
* `CHANGED` update `rc-tooltip` to `^3.0.0`

## 0.5.3

* `CHANGED` react to 15.x
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "uxcore-popover",
"version": "0.5.3",
"version": "0.5.4",
"description": "uxcore-popover component for uxcore.",
"repository": "https://github.com/uxcore/uxcore-popover.git",
"author": "eternalsky",
Expand Down Expand Up @@ -48,7 +48,7 @@
"classnames": "^2.1.2",
"object-assign": "^4.0.0",
"prop-types": "15.x",
"rc-tooltip": "~3.3.0",
"rc-tooltip": "^3.3.0",
"uxcore-button": "~0.3.0"
},
"contributors": [],
Expand Down
36 changes: 24 additions & 12 deletions src/Popover.less
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@
&-placement-topLeft &-arrow,
&-placement-topRight &-arrow {
left: 50%;
margin-left: -@__popover-arrow-outer-width;
border-bottom-width: 0;
border-top-color: @border-color;
bottom: @__popover-distance - @__popover-arrow-outer-width + 1;
Expand All @@ -144,18 +143,21 @@
}
}
&-placement-topLeft &-arrow {
left: 15%;
left: 10px;
}
&-placement-topRight &-arrow {
left: 85%;
right: 10px;
left: auto;
}
&-placement-top &-arrow {
margin-left: -@__popover-arrow-outer-width;
}

&-placement-right &-arrow,
&-placement-rightTop &-arrow,
&-placement-rightBottom &-arrow {
top: 50%;
left: @__popover-distance - @__popover-arrow-outer-width + 1;
margin-top: -@__popover-arrow-outer-width;
border-left-width: 0;
border-right-color: @border-color;
&:after {
Expand All @@ -167,17 +169,20 @@
}
}
&-placement-rightTop &-arrow {
top: 15%;
top: 10px;
}
&-placement-rightBottom &-arrow {
top: 85%;
top: auto;
bottom: 10px;
}
&-placement-right &-arrow {
margin-top: -@__popover-arrow-outer-width;
}

&-placement-bottom &-arrow,
&-placement-bottomLeft &-arrow,
&-placement-bottomRight &-arrow {
left: 50%;
margin-left: -@__popover-arrow-outer-width;
border-top-width: 0;
border-bottom-color: @border-color;
top: @__popover-distance - @__popover-arrow-outer-width + 1;
Expand All @@ -190,18 +195,21 @@
}
}
&-placement-bottomLeft &-arrow {
left: 15%;
left: 10px;
}
&-placement-bottomRight &-arrow {
left: 85%;
right: 10px;
left: auto;
}
&-placement-bottom &-arrow {
margin-left: -@__popover-arrow-outer-width;
}

&-placement-left &-arrow,
&-placement-leftTop &-arrow,
&-placement-leftBottom &-arrow {
top: 50%;
right: @__popover-distance - @__popover-arrow-outer-width + 1;
margin-top: -@__popover-arrow-outer-width;
border-right-width: 0;
border-left-color: @border-color;
&:after {
Expand All @@ -213,10 +221,14 @@
}
}
&-placement-leftTop &-arrow {
top: 15%;
top: 10px;
}
&-placement-leftBottom &-arrow {
top: 85%;
bottom: 10px;
top: auto;
}
&-placement-left &-arrow {
margin-top: -@__popover-arrow-outer-width;
}
}

Expand Down

0 comments on commit cf2c881

Please sign in to comment.