Learning Sass - Generated by SassMeister.com
<html>
<head>
<title>Test Page</title>
</head>
<body>
<p>First P</p>
<div id="main">
<p>Hi, Phill</p>
<p class="purple">Hi, Phill</p>
</div>
</body>
</html>
* {
margin: 0px;
padding: 0px;
outline: none;
}
p {
color: red;
}
#main {
width: 90%;
}
#main p {
color: blue;
}
#main p .purple {
color: purple;
}
#main p.purple {
color: purple;
}
// ----
// Sass (v3.3.7)
// Compass (v1.0.0.alpha.18)
// ----
*{
margin: 0px;
padding: 0px;
outline: none;
}
p{
color: red;
}
#main{
width: 90%;
p{
color: blue;
.purple{
color: purple;
}
}
p.purple{
color: purple;
}
}
<html>
<head>
<title>Test Page</title>
</head>
<body>
<p>First P</p>
<div id="main">
<p>Hi, Phill</p>
<p class="purple">Hi, Phill</p>
</div>
</body>
</html>