Blame jquery/sass/_round-corners-last-item.scss

Packit Service 50c9f2
// Generate rules to round the corners of the last collapsible item
Packit Service 50c9f2
Packit Service 50c9f2
@mixin sm-dox__round-corners-last-item($amount, $chainable: 'ul > li:last-child > ', $level: 4, $chain_prefix: '> li:last-child > ', $chain: '', $selector: '') {
Packit Service 50c9f2
	$chain: $chain_prefix;
Packit Service 50c9f2
	$selector: $chain + 'a, ' + $chain + '*:not(ul) a, ' + $chain + 'ul';
Packit Service 50c9f2
	@for $i from 1 through $level {
Packit Service 50c9f2
		$chain: $chain + $chainable;
Packit Service 50c9f2
		$selector: $selector + ', ' + $chain + ' a, ' + $chain + '*:not(ul) a, ' + $chain + ' ul';
Packit Service 50c9f2
	}
Packit Service 50c9f2
	#{$selector} {
Packit Service 50c9f2
		@include border-radius(0 0 $amount $amount);
Packit Service 50c9f2
	}
Packit Service 50c9f2
	// highlighted items, don't need rounding since their sub is open
Packit Service 50c9f2
	$chain: $chain_prefix;
Packit Service 50c9f2
	$selector: $chain + 'a.highlighted, ' + $chain + '*:not(ul) a.highlighted';
Packit Service 50c9f2
	@for $i from 1 through $level {
Packit Service 50c9f2
		$chain: $chain + $chainable;
Packit Service 50c9f2
		$selector: $selector + ', ' + $chain + ' a.highlighted, ' + $chain + '*:not(ul) a.highlighted';
Packit Service 50c9f2
	}
Packit Service 50c9f2
	#{$selector} {
Packit Service 50c9f2
		@include border-radius(0);
Packit Service 50c9f2
	}
Packit Service 50c9f2
}