-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path_mixins.scss
71 lines (61 loc) · 1.36 KB
/
_mixins.scss
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
66
67
68
69
70
71
@use "sass:map";
@use "sass:math";
@use "@pepabo-inhouse/adapter/functions" as adapter;
@use "@pepabo-inhouse/header/mixins" as header;
@use "@pepabo-inhouse/scrim/mixins" as scrim;
@use "./variables";
@mixin style($option: variables.$default-option) {
$option: map.merge(variables.$default-option, $option);
display: none;
& > ._scrim {
@include scrim.style((
appearance: hollow,
layer: map.get($option, layer)
));
}
& > ._content {
position: fixed;
bottom: 0;
left: 0;
z-index:
adapter.get-major-stack-z-index(
$layer: map.get($option, layer)
);
width: 100vw;
height: 50vh;
background-color: adapter.get-primitive-color(white, 1000);
}
& > * > ._header {
@include header.style;
}
& > * > ._body {
width: 100%;
height: calc(100% - adapter.get-header-height());
padding-top: adapter.get-header-height();
overflow-y: scroll;
}
&.--activated {
display: block;
}
@each $level in adapter.get-layer-levels() {
&.-layer-#{$level} {
& > ._scrim {
@include scrim.style((
appearance: hollow,
layer: $level
));
}
& > ._content {
z-index:
adapter.get-major-stack-z-index(
$layer: $level
);
}
}
}
}
@mixin export {
.in-navigation-drawer {
@include style;
}
}