// nvue下hover-class无效
$s-button-before-top:50% !default;
$s-button-before-left:50% !default;
$s-button-before-width:100% !default;
$s-button-before-height:100% !default;
$s-button-before-transform:translate(-50%, -50%) !default;
$s-button-before-opacity:0 !default;
$s-button-before-background-color:#000 !default;
$s-button-before-border-color:#000 !default;
$s-button-active-before-opacity:.15 !default;
$s-button-icon-margin-left:4px !default;
$s-button-plain-s-button-info-color:#597EF7;
$s-button-plain-s-button-success-color:#55BB5A;
$s-button-plain-s-button-error-color:#D81307;
$s-button-plain-s-button-warning-color:#FF8F00;

.s-button {
	width: 100%;
	
	&__text {
		white-space: nowrap;
		//line-height: 1;
	}
	
	&:before {
		position: absolute;
		top:$s-button-before-top;
		left:$s-button-before-left;
		width:$s-button-before-width;
		height:$s-button-before-height;
		border: inherit;
		border-radius: inherit;
		transform:$s-button-before-transform;
		opacity:$s-button-before-opacity;
		content: " ";
		background-color:$s-button-before-background-color;
		border-color:$s-button-before-border-color;
	}
	
	&--active {
		&:before {
			opacity: .15
		}
	}
	
	&__icon+&__text:not(:empty),
	&__loading-text {
		margin-left:$s-button-icon-margin-left;
	}
	
	&--plain {
		&.s-button--primary {
			color: $s-primary;
		}
	}
	
	&--plain {
		&.s-button--info {
			color:$s-button-plain-s-button-info-color;
		}
	}
	
	&--plain {
		&.s-button--success {
			color:$s-button-plain-s-button-success-color;
		}
	}
	
	&--plain {
		&.s-button--error {
			color:$s-button-plain-s-button-error-color;
		}
	}
	
	&--plain {
		&.s-button--warning {
			color:$s-button-plain-s-button-warning-color;
		}
	}
}
