aboutsummaryrefslogtreecommitdiff
path: root/packages/memory-graph/src/components/node-detail-panel.css.ts
blob: a3c30e06a66ac9f1747d8072afd5a75b865129b2 (plain) (blame)
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
import { style } from "@vanilla-extract/css";
import { themeContract } from "../styles/theme.css";

/**
 * Main container (positioned absolutely)
 * Highest z-index so it appears above everything when open
 */
export const container = style({
	position: "absolute",
	width: "20rem", // w-80 = 320px = 20rem
	borderRadius: themeContract.radii.xl,
	overflow: "hidden",
	zIndex: 40, // Highest priority - always on top when open
	maxHeight: "calc(100vh - 2rem)", // Leave some breathing room
	top: themeContract.space[4],
	right: themeContract.space[4],

	// Add shadow for depth
	boxShadow: "0 20px 25px -5px rgb(0 0 0 / 0.3), 0 8px 10px -6px rgb(0 0 0 / 0.3)",
});

/**
 * Content wrapper with scrolling
 */
export const content = style({
	position: "relative",
	zIndex: 10,
	padding: themeContract.space[4],
	overflowY: "auto",
	maxHeight: "80vh",
});

/**
 * Header section
 */
export const header = style({
	display: "flex",
	alignItems: "center",
	justifyContent: "space-between",
	marginBottom: themeContract.space[3],
});

export const headerLeft = style({
	display: "flex",
	alignItems: "center",
	gap: themeContract.space[2],
});

export const headerIcon = style({
	width: "1.25rem",
	height: "1.25rem",
	color: themeContract.colors.text.secondary,
});

export const headerIconMemory = style({
	width: "1.25rem",
	height: "1.25rem",
	color: "rgb(96, 165, 250)", // blue-400
});

export const closeButton = style({
	height: "32px",
	width: "32px",
	padding: 0,
	color: themeContract.colors.text.secondary,

	selectors: {
		"&:hover": {
			color: themeContract.colors.text.primary,
		},
	},
});

export const closeIcon = style({
	width: "1rem",
	height: "1rem",
});

/**
 * Content sections
 */
export const sections = style({
	display: "flex",
	flexDirection: "column",
	gap: themeContract.space[3],
});

export const section = style({});

export const sectionLabel = style({
	fontSize: themeContract.typography.fontSize.xs,
	color: themeContract.colors.text.muted,
	textTransform: "uppercase",
	letterSpacing: "0.05em",
});

export const sectionValue = style({
	fontSize: themeContract.typography.fontSize.sm,
	color: themeContract.colors.text.secondary,
	marginTop: themeContract.space[1],
});

export const sectionValueTruncated = style({
	fontSize: themeContract.typography.fontSize.sm,
	color: themeContract.colors.text.secondary,
	marginTop: themeContract.space[1],
	overflow: "hidden",
	display: "-webkit-box",
	WebkitLineClamp: 3,
	WebkitBoxOrient: "vertical",
});

export const link = style({
	fontSize: themeContract.typography.fontSize.sm,
	color: "rgb(129, 140, 248)", // indigo-400
	marginTop: themeContract.space[1],
	display: "flex",
	alignItems: "center",
	gap: themeContract.space[1],
	textDecoration: "none",
	transition: themeContract.transitions.normal,

	selectors: {
		"&:hover": {
			color: "rgb(165, 180, 252)", // indigo-300
		},
	},
});

export const linkIcon = style({
	width: "0.75rem",
	height: "0.75rem",
});

export const badge = style({
	marginTop: themeContract.space[2],
});

export const expiryText = style({
	fontSize: themeContract.typography.fontSize.xs,
	color: themeContract.colors.text.muted,
	marginTop: themeContract.space[1],
});

/**
 * Footer section (metadata)
 */
export const footer = style({
	paddingTop: themeContract.space[2],
	borderTop: "1px solid rgba(71, 85, 105, 0.5)", // slate-700/50
});

export const metadata = style({
	display: "flex",
	alignItems: "center",
	gap: themeContract.space[4],
	fontSize: themeContract.typography.fontSize.xs,
	color: themeContract.colors.text.muted,
});

export const metadataItem = style({
	display: "flex",
	alignItems: "center",
	gap: themeContract.space[1],
});

export const metadataIcon = style({
	width: "0.75rem",
	height: "0.75rem",
});