-
Notifications
You must be signed in to change notification settings - Fork 46
/
css_shadow.html
65 lines (59 loc) · 2.03 KB
/
css_shadow.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
---
layout: admin
title: CSS - Shadow
section: css
module: css_shadow
header:
icon: gradient
title: Shadow
description: In material design, everything should have a certain z-depth that determines how far raised or close to the page the element is.
stylesheets:
- css/pages/css_shadow.css
---
<section id="css_shadow">
<div class="row">
<div class="col s12">
<p>You can easily apply this shadow effect by adding a <code class="language-markup">class="z-depth-2"</code> to an HTML tag. Alternatively you can extend any of these shadows with Sass using <code class="language-scss">@extend .z-depth-2</code>.</p>
<p>A <code class="language-scss">z-depth-0</code> can be used to remove shadows from elements that have z-depths by default.</p>
<div class="row no-gutter margin-top-25">
<div class="col s12 m4 l2">
<p class="z-depth-0 shadow-demo main lighten-2"></p>
</div>
<div class="col s12 m4 l2">
<p class="z-depth-1 shadow-demo main lighten-2"></p>
</div>
<div class="col s12 m4 l2">
<p class="z-depth-2 shadow-demo main lighten-2"></p>
</div>
<div class="col s12 m4 l2">
<p class="z-depth-3 shadow-demo main lighten-2"></p>
</div>
<div class="col s12 m4 l2">
<p class="z-depth-4 shadow-demo main lighten-2"></p>
</div>
<div class="col s12 m4 l2">
<p class="z-depth-5 shadow-demo main lighten-2"></p>
</div>
</div>
<pre class="margin-top-25">
<code class="language-markup">
<div class="col s12 m2">
<p class="z-depth-1">z-depth-1</p>
</div>
<div class="col s12 m2">
<p class="z-depth-2">z-depth-2</p>
</div>
<div class="col s12 m2">
<p class="z-depth-3">z-depth-3</p>
</div>
<div class="col s12 m2">
<p class="z-depth-4">z-depth-4</p>
</div>
<div class="col s12 m2">
<p class="z-depth-5">z-depth-5</p>
</div>
</code>
</pre>
</div>
</div>
</section>