HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/SBogers10/otium.komma.nl/resources/sass/5-Components/_components.select.scss
/**
 * Select styled without extra containing elements
 * ------------------------------------
 * Based on this article:
 * https://www.filamentgroup.com/lab/select-css.html
 */


$c-select-border-size: 2px;


.c-select {
	@include border-radius(s);
	@include font-size(14,16);
	font-family: $font-system; // for firefox
	display: block;
	padding-top: #{space(1) - $c-select-border-size};
	padding-bottom: #{space(1) - $c-select-border-size};
	padding-left: space(2);
	padding-right: space(4);
	height: space(5);
	width: 100%;
	//max-width: 100%;
	max-width: 500px;
	box-sizing: border-box;
	margin: 0;
	appearance: none;
	color: palette(neutral, 900);
	background-color: palette(neutral, 0);
	background-image: url('/img/select-arrow.svg'), linear-gradient(to bottom, palette(neutral, 0) 0%,palette(neutral, 0) 100%);
	background-repeat: no-repeat, repeat;
	background-position: right 13px top 50%, 0 0;
	background-size: 12px auto, 100%;
	border: $c-select-border-size solid palette(neutral, 300);
	transition: border 150ms linear;

	&:hover {
		border-color: palette(neutral, 500);
		background-color: palette(neutral, 100);
	}

	&:focus {
		border-color: palette(feedback, focus);
		box-shadow: 0 0 7px -3px rgba(palette(neutral, 900), 0.7);
		box-shadow: 0 0 0 1px -moz-mac-focusring;
		color: palette(neutral, 900);
		outline: none;
	}

	& option {
		font-weight: normal;
	}
}


.c-select::-ms-expand {
	display: none;
}