Skip to main content

A simple Sass example

Here is a Sass example. Sass is a good productivity booster or just a passing folly.

We need a border. It’s simple:

.edit_container {
  border: 1px solid #a77;
}

.editable_div {
  border: 1px solid black;
}

.gallery_preview {
  border-top: 1px solid black;
  border-bottom: 1px solid black;
}

.gallery_preview_big {
  border-bottom: 1px solid #555;
}

It’s just 4 simple class definition. Where is the DRY rule? Nowhere.

(more…)

Related Posts: