1
- import { StyledToggle } from "@/components/Shared/Switch.styled" ;
2
1
import { Wrapper as WorkTypeWrapper } from "@/components/Facets/WorkType/WorkType.styled" ;
3
2
import { styled } from "@/stitches.config" ;
4
3
@@ -7,23 +6,28 @@ import { styled } from "@/stitches.config";
7
6
const StyledFacets = styled ( "div" , {
8
7
display : "flex" ,
9
8
justifyContent : "space-between" ,
10
- margin : "1.618rem 0" ,
11
9
position : "relative" ,
10
+ margin : "$gr4 0" ,
12
11
left : "0" ,
13
- transition : "$dcAll " ,
12
+ transition : "$dcScrollLeft " ,
14
13
zIndex : "1" ,
15
14
16
15
[ `& ${ WorkTypeWrapper } ` ] : {
17
16
borderRight : "1px solid $black10" ,
18
17
paddingRight : "$gr2" ,
19
18
transition : "$dcWidth" ,
19
+
20
+ "@sm" : {
21
+ marginTop : "$gr3" ,
22
+ borderRight : "none" ,
23
+ paddingRight : "0" ,
24
+ } ,
20
25
} ,
21
26
22
27
"@sm" : {
23
- [ `& ${ WorkTypeWrapper } ` ] : {
24
- width : "0" ,
25
- opacity : "0" ,
26
- } ,
28
+ padding : "$gr4 0" ,
29
+ flexDirection : "column" ,
30
+ alignItems : "center" ,
27
31
} ,
28
32
} ) ;
29
33
@@ -32,41 +36,61 @@ const Width = styled("span", {
32
36
width : "100%" ,
33
37
} ) ;
34
38
39
+ const FacetExtras = styled ( "div" , {
40
+ display : "flex" ,
41
+
42
+ "@sm" : {
43
+ marginTop : "$gr4" ,
44
+ flexDirection : "column-reverse" ,
45
+ alignItems : "center" ,
46
+ } ,
47
+ } ) ;
48
+
35
49
const Wrapper = styled ( "div" , {
50
+ height : "38px" ,
51
+ transition : "$dcScrollHeight" ,
52
+ margin : "$gr4 0" ,
53
+
54
+ "@sm" : {
55
+ margin : "-$gr4 0 $gr4" ,
56
+ backgroundColor : "$gray6" ,
57
+ height : "225px" ,
58
+ } ,
59
+
36
60
".facets-ui-container" : {
37
61
transition : "$dcAll" ,
38
62
} ,
39
63
40
64
"&[data-filter-fixed='true']" : {
41
- margin : "1.618rem 0" ,
42
65
flexGrow : "0" ,
43
66
flexShrink : "1" ,
44
67
height : "38px" ,
45
68
46
- [ `& ${ WorkTypeWrapper } ` ] : {
69
+ "@sm" : {
70
+ backgroundColor : "transparent" ,
71
+ margin : "0" ,
72
+ } ,
73
+
74
+ [ `& ${ FacetExtras } ` ] : {
47
75
width : "0" ,
48
76
opacity : "0" ,
49
77
} ,
50
78
51
79
[ `& ${ StyledFacets } ` ] : {
52
80
position : "fixed" ,
53
- top : "50px" ,
81
+ margin : "0" ,
82
+ top : "$gr6" ,
54
83
left : "50%" ,
55
84
zIndex : "1" ,
56
85
transform : "translate(-50%)" ,
57
86
backfaceVisibility : "hidden" ,
58
87
webkitFontSmoothing : "subpixel-antialiased" ,
59
- } ,
60
88
61
- [ `& ${ StyledToggle } ` ] : {
62
- width : "0 " ,
63
- opacity : "0" ,
89
+ "@sm" : {
90
+ top : "$gr5 " ,
91
+ } ,
64
92
} ,
65
93
} ,
66
94
} ) ;
67
95
68
- const FacetExtras = styled ( "div" , {
69
- display : "flex" ,
70
- } ) ;
71
-
72
96
export { FacetExtras , StyledFacets , Width , Wrapper } ;
0 commit comments