Skip to content

Instantly share code, notes, and snippets.

@lucasan
Created March 25, 2014 22:01
Show Gist options
  • Save lucasan/9772390 to your computer and use it in GitHub Desktop.
Save lucasan/9772390 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
<html>
<head>
<title>A title</title>
</head>
<body>
<div class="content">
<h1>A heading</h1>
<p>A text</p>
</div>
</body>
</html>
// ----
// Sass (v3.3.4)
// Compass (v1.0.0.alpha.18)
// ----
//Define de Mixin properties
@mixin shaded-box( $blur, $opacity ) {
-webkit-box-shadow: 2px 2px $blur rgba(0, 0, 0, $opacity);
-moz-box-shadow: 2px 2px $blur rgba(0, 0, 0, $opacity);
box-shadow: 2px 2px $blur rgba(0, 0, 0, $opacity);
padding: 5px;
}
//Apply the Mixin
.content {
background-color: #F6F6F6;
@include shaded-box( 2px, 0.75 );
}
.content {
background-color: #F6F6F6;
-webkit-box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.75);
-moz-box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.75);
box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.75);
padding: 5px;
}
<html>
<head>
<title>A title</title>
</head>
<body>
<div class="content">
<h1>A heading</h1>
<p>A text</p>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment