This is FAR from done, but I guess you don't need a lot of explanations to undertand the screenshot below (click to enlarge, as usual)...

1st code completion in the CSS Source editor