Created
October 17, 2015 17:03
-
-
Save lisacatalano/dc34f403b9072797cfa8 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// libsass (v3.2.5) | |
// ---- | |
$primary: #8877aa; | |
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%); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { | |
background-color: #ccc; | |
color: #444; | |
font-family: sans-serif; | |
font-size: .9em; | |
line-height: 1.5; | |
padding: 0 1em; | |
} | |
.logo { | |
background-color: #8877aa; | |
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: 0.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: #8877aa; | |
margin: .2em; | |
} | |
.reasons ul { | |
padding-left: 20px; | |
} | |
button { | |
background-color: #8877aa; | |
color: #fff; | |
border: 0; | |
border-radius: 10px; | |
padding: 10px; | |
font-size: 1em; | |
} | |
button:hover, button:focus { | |
background-color: #6e5c92; | |
} | |
button:active { | |
background-color: #a396be; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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