Le code LESS NOW
@my-color: #111;
#banner {
  h1 {
    color: @my-color;
    font-weight: bold;
  }
  p {
    font-size: .9em;
    a {
      text-decoration: none;
      &:hover { border-width: 1px }
    }
  }
}

Une fois compilé, ce code est transformé en règles CSS standards :


#banner h1 {
  color: #111111;
  font-weight: bold;
}
#banner p {
  font-size: .9em;
}
#banner p a {
  text-decoration: none;
}
#banner p a:hover {
  border-width: 1px;
}