@import "bootstrap-sass/assets/stylesheets/bootstrap/labels";
@import "variables";

// Base ------------------------------------------------------------------------

.label {
	border-radius: 4px;
	display: inline-block;
	font-family: $font-family-secondary-semibold;
	font-size: 14px;
	padding: 0 12px;
	position: relative;
	font-weight: 400;
	line-height: 36px;

	&.label-sm {
		padding: 0 12px;
		font-size: 12px;
		line-height: 24px;
	}
}

// Colors ----------------------------------------------------------------------

.label-accent {
	background: $accent;
	color: $white;
}

.label-inverse-accent {
	background: rgba($accent, .1);
	color: $accent;
}

.label-default {
	background: rgba($primary, .1);
	color: rgba($primary, .8);
}

.label-danger {
	background: rgba($brand-danger, .2);
	color: $brand-danger;
}

.label-primary {
	background: rgba($primary, .8);
	color: $white;
}

.label-success {
	background: rgba($brand-success, .2);
	color: $brand-success;
}

.label-warning {
	background: rgba($brand-warning, .2);
	color: $brand-warning;
}

// Text ------------------------------------------------------------------------

.label-text {
	font-weight: 400;
}

// Icon ------------------------------------------------------------------------

.label .label-icon {
	margin-right: 6px;
	position: relative;
	top: 2px;
	color: inherit;
}

// Clickable -------------------------------------------------------------------

.label-clickable {
	display: inline;
	overflow: hidden;
	position: relative;

	.label-action {
		@include anim(top, 0.2s);
		left: 50%;
		position: absolute;
		top: -100%;
		transform: translateX(-50%);
	}

	.label-icon {
		@include anim(top, 0.2s);
		position: relative;
	}

	.label-content {
		@include anim(top, 0.2s);
		position: relative;
		top: 0;
	}

	&:hover {
		.label-action {
			top: 50%;
			transform: translateX(-50%) translateY(-50%);
		}

		.label-icon {
			top: 26px;
		}

		.label-content {
			top: 26px;
		}
	}
}
