blob: 18212a289ed14324ff1ddda07462dfbef5f685c0 (
plain)
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
@use "@styles/abstracts/functions" as fun;
@use "@styles/abstracts/mixins" as mix;
.wrapper {
--toolbar-size: #{fun.convert-px(60)};
--btn-size: #{fun.convert-px(50)};
display: flex;
flex-flow: row wrap;
align-items: center;
justify-content: space-around;
width: 100%;
height: var(--toolbar-size);
position: fixed;
bottom: 0;
left: 0;
z-index: 5;
background: var(--color-bg);
box-shadow: 0 fun.convert-px(-2) fun.convert-px(3) fun.convert-px(-1)
var(--color-shadow);
@include mix.media("screen") {
@include mix.dimensions(null, "2xs", "height") {
--toolbar-size: #{fun.convert-px(52)};
--btn-size: #{fun.convert-px(42)};
}
@include mix.dimensions("sm") {
justify-content: flex-end;
gap: var(--spacing-md);
width: auto;
background: inherit;
box-shadow: none;
position: relative;
left: unset;
margin-right: unset;
transform: unset;
}
}
}
.search {
padding: var(--spacing-md);
position: absolute;
bottom: 100%;
left: 0;
right: 0;
background: var(--color-bg);
box-shadow: fun.convert-px(2) fun.convert-px(-2) fun.convert-px(3)
fun.convert-px(-1) var(--color-shadow);
transition: all 0.7s ease-in-out 0s;
&--closed {
transform: translateX(-100%);
visibility: hidden;
}
&--opened {
transform: translateX(0);
visibility: visible;
}
@include mix.media("screen") {
@include mix.dimensions("sm") {
width: fun.convert-px(500);
left: unset;
right: unset;
top: 200%;
bottom: unset;
background: var(--color-bg-opacity);
box-shadow: fun.convert-px(2) fun.convert-px(2) fun.convert-px(3)
fun.convert-px(1) var(--color-shadow);
transform-origin: 100% -200%;
transition: all 0.8s ease-in-out 0s;
&--closed {
opacity: 0;
transform: perspective(20rem) translate3d(0, 100%, -20rem);
visibility: hidden;
}
&--opened {
opacity: 1;
transform: none;
}
}
}
}
|