Define CSS rules and selectors using vectors
masterGarden uses vectors to represent CSS rules.
- Multiple Selectors: The first n non-collection elements of a vector are the selectors. For example,
[:h1 :h2 ...]targets bothh1andh2elements. - Nesting and Child Selectors: Nested vectors create descendant selectors. For example,
[:h1 [:a ...]]compiles toh1 a. - Parent Selector (
&): Similar to Sass/Less, you can use the&character in a nested selector to reference the parent selector.