-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGNB.css.ts
More file actions
73 lines (65 loc) · 1.52 KB
/
GNB.css.ts
File metadata and controls
73 lines (65 loc) · 1.52 KB
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
import { style } from "@vanilla-extract/css";
import { recipe } from "@vanilla-extract/recipes";
import { semantic, typography } from "@/styles";
import { zIndex } from "@/styles/zIndex.css";
export const wrapper = recipe({
base: {
display: "flex",
alignItems: "center",
justifyContent: "space-between",
position: "relative",
width: "100%",
height: "5.6rem",
padding: "1.4rem 2rem",
zIndex: zIndex.gnb,
},
variants: {
background: {
white: { backgroundColor: semantic.background.white },
transparent: { backgroundColor: "transparent" },
},
},
defaultVariants: {
background: "white",
},
});
export const leftWrapper = style({
minWidth: "2.4rem",
display: "flex",
alignItems: "center",
justifyContent: "flex-start",
});
export const leftWrapperWithMargin = style({
marginRight: "0.8rem",
});
export const titleWrapperAbsoluteCenter = style({
position: "absolute",
top: 0,
left: "50%",
transform: "translateX(-50%)",
height: "100%",
display: "flex",
alignItems: "center",
justifyContent: "center",
});
export const titleWrapperLeft = style({
display: "flex",
justifyContent: "flex-start",
alignItems: "center",
flex: 1,
});
export const title = style({
...typography.title2Sb,
fontWeight: 600,
whiteSpace: "nowrap",
color: semantic.text.normal,
display: "flex",
alignItems: "center",
});
export const rightWrapper = style({
minWidth: "2.4em",
display: "flex",
alignItems: "center",
justifyContent: "flex-end",
gap: "1.6rem",
});