So I am trying to use LESS on a site I'm making for a friend. When I create a .less stylesheet and link it into my html and try to see it locally on my browser it doesn't show any of the styles I created. But when I upload the site to my local MAMP server and view it it works. It's not a huge deal, I can always just edit it on my local server, I just want to know why it's not working when browsing the test.html file on my desktop. Code is...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Untitled Document</title>
<link rel="stylesheet/less" href="styles.less" type="text/css"/>
<script type="text/javascript" src="less-1.5.0.min.js"></script>
</head>
<body>
<div>
<header>
<h1>First LESS Examples</h1>
</header>
<div>
<p>This is some content in the web page.</p>
</div>
</div>
</body>
</html>
style.less
@baseColor: #535353;
header {
font-family: Arial, Helvetica, sans-serif;
background-color: lighten(@baseColor, 50%);
border: 1px solid darken(@baseColor, 10%);
color: @baseColor;
}