Skip to content

Instantly share code, notes, and snippets.

@SandyLudosky
Last active August 29, 2015 14:09
Show Gist options
  • Save SandyLudosky/3567fddf6b9bbd3a0da8 to your computer and use it in GitHub Desktop.
Save SandyLudosky/3567fddf6b9bbd3a0da8 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
<div class='container'>
<h1>Hello <span>World</span></h1>
<h2>Getting Started with SASS</h2>
<p id='mypara'>Lorem ipsum dolor sit amet, consectetur
adipiscing elit, sed do eiusmod tempor <br>
incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis
nostrud exercitation ullamco laboris nisi</p>
</div>
// ----
// Sass (v3.4.7)
// Compass (v1.0.1)
// ----
/*
* LESS Variables are defined with an @ character
* and can have different kinds of data types:
* color, string, boolean, multi-value
*/
$Color1: navy; // named color value
$Color2: #333333; // hex color value
$StringVar: ". It's awesome"; // string variable
$FontSize: 18px; // numeric value
$border: 1px solid $Color1; // multi-value variable
$padding: 15px 15px 15px 15px; // multi-value variable
.container {
font-size: $FontSize;
border: $border;
padding: $padding;
h1 {
color: $Color1;
span {
font-style: italic;
}
}
h2 {
color: $Color2;
&:after {
content: $StringVar;
text-decoration: underline;
}
}
}
/*
* LESS Variables are defined with an @ character
* and can have different kinds of data types:
* color, string, boolean, multi-value
*/
.container {
font-size: 18px;
border: 1px solid navy;
padding: 15px 15px 15px 15px;
}
.container h1 {
color: navy;
}
.container h1 span {
font-style: italic;
}
.container h2 {
color: #333333;
}
.container h2:after {
content: ". It's awesome";
text-decoration: underline;
}
<div class='container'>
<h1>Hello <span>World</span></h1>
<h2>Getting Started with SASS</h2>
<p id='mypara'>Lorem ipsum dolor sit amet, consectetur
adipiscing elit, sed do eiusmod tempor <br>
incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis
nostrud exercitation ullamco laboris nisi</p>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment