Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shadows #3

Merged
merged 2 commits into from
Sep 24, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
103 changes: 97 additions & 6 deletions css/materialize.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions sass/components/_mixins.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@mixin box-shadow-2($args1, $args2) {
-webkit-box-shadow: $args1, $args2;
-moz-box-shadow: $args1, $args2;
box-shadow: $args1, $args2;
}
15 changes: 15 additions & 0 deletions sass/components/_shadow.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
.z-depth-1{
@include box-shadow-2(0px 0px 2px 0px lighten(#000000, 88%), 0px 1.5px 2px 0px lighten(#000000, 76%));
}
.z-depth-2{
@include box-shadow-2(0px 1px 3px 0px lighten(#000000, 75%), 0px 4px 7px 0px lighten(#000000, 75%));
}
.z-depth-3{
@include box-shadow-2(0px 6px 12px 2px lighten(#000000, 68%), 0px 3px 4px 0px lighten(#000000, 68%));
}
.z-depth-4{
@include box-shadow-2(0px 4px 22px -2px lighten(#000000, 60%), 0px 11px 20px -2px lighten(#000000, 60%));
}
.z-depth-5{
@include box-shadow-2(0px 10px 30px -3px lighten(#000000, 60%), 0px 17px 40px -3px lighten(#000000, 60%));
}
2 changes: 2 additions & 0 deletions sass/materialize.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
@charset "UTF-8";

@import "components/prefixer";
@import "components/mixins";

@import "components/global";
@import "components/grid";
@import "components/typography";
@import "components/shadow";