d4tocchini
9/5/2014 - 1:11 PM

VFL to CCSS

VFL to CCSS

#container[left] + [gap] == .box:first[left];

.box {
  &[right] + 10 == &:next[left];
}

.box:last[right] + [gap] == #box2[left];

#box2[right] == #box3[left];

#box3[right] + [gap] == #container[right];

.box, #box2, #box3 {
 
  &[width] == &:next[width];
  
  &[top] == ::window[top];
}
@h |- (.box)-10-... - (#box2) (#box3)-| gap([gap]) in(#container) {

  width: == &:next[width]; // replacement for chain-width()
 
  top: == ::window[top]; // replacement for chain-top(::window[top])
}