-
-
Notifications
You must be signed in to change notification settings - Fork 285
/
_TransitionsAndColor.svelte
59 lines (51 loc) · 1.08 KB
/
_TransitionsAndColor.svelte
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
<!--
You need to use `@material/elevation` mixins in SCSS for
these to work. Check out "_TransitionsAndColor.scss"
-->
<FormField>
<Checkbox bind:checked={liftMeUp} />
<span slot="label">You raise me up, so I can stand on mountains!</span>
</FormField>
<br /><br />
<div class="flexy-dad">
<div
class="mdc-elevation-transition rounded flexy-boy"
class:mdc-elevation--z4={liftMeUp}
>
Standard
</div>
<div
class="my-primary mdc-elevation-transition rounded flexy-boy"
class:elevated={liftMeUp}
>
Primary
</div>
<div
class="my-secondary mdc-elevation-transition rounded flexy-boy"
class:elevated={liftMeUp}
>
Secondary
</div>
</div>
<script lang="ts">
import Checkbox from '@smui/checkbox';
import FormField from '@smui/form-field';
let liftMeUp = false;
</script>
<style>
.flexy-dad {
display: flex;
flex-wrap: wrap;
}
.flexy-boy {
display: flex;
justify-content: center;
align-items: center;
width: 120px;
height: 120px;
margin: 0 36px 36px 0;
}
.rounded {
border-radius: 4px;
}
</style>