Render dynamic style for commits vs. references