Skip to content

Instantly share code, notes, and snippets.

@lisacatalano
Created October 24, 2015 15:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lisacatalano/9c8158dcda4cc6f2a264 to your computer and use it in GitHub Desktop.
Save lisacatalano/9c8158dcda4cc6f2a264 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
<div class="branding">
<div class="logo"></div>
<h1>Sass Demo</h1>
</div>
<p>
Sass is a CSS extension language. You can write your CSS with the extra tools and functionality that Sass gives you, and your code is tranlated into plain CSS for the browser.
</p>
<div class="reasons">
<h2>Reasons to love Sass: </h2>
<ul>
<li>It is easy to learn and start using right away.</li>
<li>You can break your CSS up into multiple files but still only have one HTTP request. More files allows for more organized and maintainable code.</li>
<li>You can use variables. It is easy to change a color or a value in multiple places.</li>
<li>You have access to helper functions provided by Sass and you can write your own functions to do exactly what you want.</li>
<li>It makes CSS more fun.</li>
</ul>
</div>
<button>Click Me!</button>
<button>No Click Me!</button>
// ----
// Sass (v3.4.14)
// Compass (v1.0.3)
// ----
$primary: #8787aa;
body {
background-color: #ccc;
color: #444;
font-family: sans-serif;
font-size: .9em;
line-height: 1.5;
padding: 0 1em;
}
.logo {
background-color: $primary;
height: 60px;
width: 60px;
border-radius: 30px 0;
float: left;
margin: 0 15px 15px 0;
}
h1 {
line-height: 60px;
}
p {
clear: both;
}
.reasons {
background-color: #fff;
padding: .25em 1em;
border-radius: 10px;
box-shadow:inset 0px 0px 7px rgba(0,0,0,.7);
margin-bottom: 1em;
max-width: 50em;
h2 {
color: $primary;
margin: .2em;
}
ul {
padding-left: 20px;
}
}
button {
background-color: $primary;
color: #fff;
border: 0;
border-radius: 10px;
padding: 10px;
font-size: 1em;
&:hover, &:focus {
background-color: darken($primary, 10%);
}
&:active {
background-color: lighten($primary, 10%);
}
}
body {
background-color: #ccc;
color: #444;
font-family: sans-serif;
font-size: .9em;
line-height: 1.5;
padding: 0 1em;
}
.logo {
background-color: #8787aa;
height: 60px;
width: 60px;
border-radius: 30px 0;
float: left;
margin: 0 15px 15px 0;
}
h1 {
line-height: 60px;
}
p {
clear: both;
}
.reasons {
background-color: #fff;
padding: .25em 1em;
border-radius: 10px;
box-shadow: inset 0px 0px 7px rgba(0, 0, 0, 0.7);
margin-bottom: 1em;
max-width: 50em;
}
.reasons h2 {
color: #8787aa;
margin: .2em;
}
.reasons ul {
padding-left: 20px;
}
button {
background-color: #8787aa;
color: #fff;
border: 0;
border-radius: 10px;
padding: 10px;
font-size: 1em;
}
button:hover, button:focus {
background-color: #696995;
}
button:active {
background-color: #a5a5bf;
}
<div class="branding">
<div class="logo"></div>
<h1>Sass Demo</h1>
</div>
<p>
Sass is a CSS extension language. You can write your CSS with the extra tools and functionality that Sass gives you, and your code is tranlated into plain CSS for the browser.
</p>
<div class="reasons">
<h2>Reasons to love Sass: </h2>
<ul>
<li>It is easy to learn and start using right away.</li>
<li>You can break your CSS up into multiple files but still only have one HTTP request. More files allows for more organized and maintainable code.</li>
<li>You can use variables. It is easy to change a color or a value in multiple places.</li>
<li>You have access to helper functions provided by Sass and you can write your own functions to do exactly what you want.</li>
<li>It makes CSS more fun.</li>
</ul>
</div>
<button>Click Me!</button>
<button>No Click Me!</button>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment