css extend logic

css extend logic