thank you for taking your time reading this.
I'm trying to get started with the LESS CSS pre-compiler and I've got my environment up and running but when I compile this code:
Code: Select all
@fontColor: green;
h1{
color: $fontColor;
}
Code: Select all
h1{
color: $fontColor;
}
I used this command:
Code: Select all
lessc styles.less styles.css
Code: Select all
<!DOCTYPE html>
<html>
<head>
<title></title>
<link href="styles.css" rel="stylesheet">
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/less.js/2.7.1/less.min.js"></script>
</head>
<body>
<h1>This is a test, and the color is Green</h1>
</body>
</html>
Code: Select all
Less has finished and no sheets were loaded.
Any help is much appreciated.