fix(button): whitespace nowrap

This commit is contained in:
07akioni 2019-07-15 10:42:42 +08:00
parent 01cae6db78
commit baf4b74eb1
3 changed files with 3 additions and 7 deletions

View File

@ -1,5 +1,3 @@
import getScrollParent from '../utils/getScrollParent'
export default {
props: {
isActive: {

View File

@ -32,6 +32,7 @@
}
.n-button__content {
line-height: $tiny-height;
white-space: nowrap;
}
.n-button__icon {
height: 18px;

View File

@ -76,7 +76,6 @@ $popover-distance: $popover-arrow-width - 1 + 14;
.n-popover__arrow {
border-width: $popover-arrow-width;
pointer-events: none;
border-width: $popover-arrow-width;
position: absolute;
display: block;
width: 0;
@ -201,16 +200,14 @@ $popover-distance: $popover-arrow-width - 1 + 14;
opacity: 1;
}
&.n-popover-fade-enter-active {
transition: opacity .1s $fast-in-cubic-bezier,
transform .1s $fast-in-cubic-bezier;
transition: opacity .1s $fast-in-cubic-bezier, transform .1s $fast-in-cubic-bezier;
}
&.n-popover-fade-enter, &.n-popover-fade-leave-to /* .fade-leave-active below version 2.1.8 */ {
opacity: 0;
transform: scale(.9);
}
&.n-popover-fade-leave-to {
transition: opacity .1s $slow-out-cubic-bezier,
transform .1s $slow-out-cubic-bezier;
transition: opacity .1s $slow-out-cubic-bezier, transform .1s $slow-out-cubic-bezier;
}
}
}