Edit in JSFiddle


.section-1 {
	$green: #bada55;
	$gray: rgba(0, 0, 0, 0.25);
	& h1 {
		color: $green;
		background: $gray;
	}
}


.section-2 {
	$green: #04b500;
	& h1 {
		color: $green;
	}
	// background: $gray; // undefined variable $gray
}


.section-3 {
	$green: #06ff00;
	color: $green;
}