a { &:hover { color: green; } }
<html>
<head><meta charset="UTF-8"> <title>& in SassScript - www.tw511.com</title>
<link rel="stylesheet" type="text/css" href="style.css" />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
<h2>Example using & in SassScript</h2>
<a href="https://www.tw511.com/"> www.tw511.com </a>
</div>
</body>
</html>
a { font-size: 20px; &:hover { background-color: yellow;} }
sass --watch C:\ruby\lib\sass\style.scss:style.css
a { font-size: 20px; } a:hover { background-color: yellow; }