Automatically adjust css for cards containing child cards