/* This is a highlight component. Looks very similar to the .highlights one we already have
 * however this one works in a very different way and can be used for multi-line text.
 */

/* Base config. */
:root {
	--highlight-color: #CED4F5;
	--highlight-width: 100%;
	--highlight-height: 0.4em;
	--highlight-position-y: 87%;
}

span.text-highlight,
a.text-highlight {
	display: inline;
	background-image: linear-gradient(var(--highlight-color), var(--highlight-color));
	background-size: var(--highlight-width) var(--highlight-height);
	background-position: 0 var(--highlight-position-y);
	background-repeat: no-repeat;
}

/* Color variations */
.text-highlight.highlight-gold {
	--highlight-color: #FCE8B3;
}

.text-highlight.highlight-yellow {
	--highlight-color: #FCE8B3;
}

.text-highlight.highlight-pink {
	--highlight-color: #FDCCC2;
}

.text-highlight.highlight-salmon {
	--highlight-color: #F5CECE;
}

.text-highlight.highlight-silk {
	--highlight-color: #ffdbcb;
}

.text-highlight.highlight-teal {
	--highlight-color: #89DAD5;
}

.text-highlight.highlight-green {
	--highlight-color: #D4E4B0;
}

.text-highlight.highlight-champagne {
	--highlight-color: #F5EFCE;
}

.text-highlight.highlight-orange {
	--highlight-color: #FAD4A9;
}

.text-highlight.highlight-purple {
	--highlight-color: #D9C2FF;
}

.text-highlight.highlight-deep-purple {
	--highlight-color: #CED4F5;
}

.text-highlight.highlight-blue {
	--highlight-color: #DEF;
}

.text-highlight.highlight-bright-green {
	--highlight-color: #CEF5D9;
}

.text-highlight.highlight-grey {
	--highlight-color: #EBEBEB;
}

.text-highlight.highlight-white {
	--highlight-color: #fff;
}