@import '../less/variables/colors.less';

// Avoid alignment issues with the Quill styles
mfly\:font-weight-selector {
	display: block;
	float: left;
	height: 24px;
}

.ql-snow.ql-toolbar button.c-font-weight-selector__select {
	padding: 1px;
}

.c-font-weight-selector__select__icon {
	padding-top: 0;
}

.c-font-weight-selector__dropdown {
	background-color: #fff;
	border: 1px solid @color-gray-x-light;
	border-radius: 4px;
	box-shadow: @dropdown-box-shadow;
	display: none;
	max-height: 300px;
	position: absolute;
	top: 36px;
	width: 140px;
	z-index: 2;

	&.is-visible {
		display: block;
	}
}

.c-font-weight-selector__dropdown__matches {
	max-height: 250px;
	overflow-y: auto;
}

.c-font-weight-selector__match-row {
	cursor: pointer;
	padding: 5px 10px;

	&.with-mouse:hover,
	&.with-keyboard.is-selected {
		background-color: @color-gray-xx-light;
	}

	&.is-current-value {
		background-color: @color-gray-xxx-light;
	}
}
