<style>
	.match > * ~ * {
		margin-left: 4px;
	}
	.not-match > * ~ * {
		margin-left: 4px;
	}
</style>

<div class="not-match">
	<div />
</div>

<div class="match">
	<div />
	<div />
</div>