infrahub-schema-visualizer 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,152 @@
1
+ /*
2
+ * Schema Visualizer - Self-contained styles
3
+ * This CSS file includes all necessary styles for the schema visualizer
4
+ * to work independently without any external style dependencies.
5
+ */
6
+
7
+ /* Import Tailwind CSS v4 - this generates all utility classes */
8
+ @import "tailwindcss";
9
+
10
+ /* Import ReactFlow styles */
11
+ @import "@xyflow/react/dist/style.css";
12
+
13
+ /* Base styles for the visualizer container */
14
+ .schema-visualizer-root {
15
+ font-family:
16
+ ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
17
+ "Segoe UI Symbol", "Noto Color Emoji";
18
+ font-size: 14px;
19
+ line-height: 1.5;
20
+ color: #1e293b;
21
+ background-color: #f8fafc;
22
+ -webkit-font-smoothing: antialiased;
23
+ -moz-osx-font-smoothing: grayscale;
24
+ }
25
+
26
+ /* Ensure the visualizer takes full height */
27
+ .schema-visualizer-root,
28
+ .schema-visualizer-root > div {
29
+ width: 100%;
30
+ height: 100%;
31
+ }
32
+
33
+ /* Custom scrollbar styles for panels */
34
+ .schema-visualizer-root ::-webkit-scrollbar {
35
+ width: 6px;
36
+ height: 6px;
37
+ }
38
+
39
+ .schema-visualizer-root ::-webkit-scrollbar-track {
40
+ background: #f1f5f9;
41
+ border-radius: 3px;
42
+ }
43
+
44
+ .schema-visualizer-root ::-webkit-scrollbar-thumb {
45
+ background: #cbd5e1;
46
+ border-radius: 3px;
47
+ }
48
+
49
+ .schema-visualizer-root ::-webkit-scrollbar-thumb:hover {
50
+ background: #94a3b8;
51
+ }
52
+
53
+ /* Ensure buttons have proper cursor */
54
+ .schema-visualizer-root button {
55
+ cursor: pointer;
56
+ }
57
+
58
+ /* Focus styles for accessibility */
59
+ .schema-visualizer-root button:focus-visible,
60
+ .schema-visualizer-root input:focus-visible {
61
+ outline: 2px solid #6366f1;
62
+ outline-offset: 2px;
63
+ }
64
+
65
+ /* Transition utilities that might not be in the Tailwind scan */
66
+ .schema-visualizer-root .transition-all {
67
+ transition-property: all;
68
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
69
+ transition-duration: 150ms;
70
+ }
71
+
72
+ .schema-visualizer-root .duration-200 {
73
+ transition-duration: 200ms;
74
+ }
75
+
76
+ /* Shadow utilities */
77
+ .schema-visualizer-root .shadow-lg {
78
+ box-shadow:
79
+ 0 10px 15px -3px rgb(0 0 0 / 0.1),
80
+ 0 4px 6px -4px rgb(0 0 0 / 0.1);
81
+ }
82
+
83
+ .schema-visualizer-root .shadow-xl {
84
+ box-shadow:
85
+ 0 20px 25px -5px rgb(0 0 0 / 0.1),
86
+ 0 8px 10px -6px rgb(0 0 0 / 0.1);
87
+ }
88
+
89
+ .schema-visualizer-root .shadow-md {
90
+ box-shadow:
91
+ 0 4px 6px -1px rgb(0 0 0 / 0.1),
92
+ 0 2px 4px -2px rgb(0 0 0 / 0.1);
93
+ }
94
+
95
+ /* Hover states for interactive elements */
96
+ .schema-visualizer-root .hover\:bg-gray-100:hover {
97
+ background-color: #f3f4f6;
98
+ }
99
+
100
+ .schema-visualizer-root .hover\:bg-indigo-600:hover {
101
+ background-color: #4f46e5;
102
+ }
103
+
104
+ .schema-visualizer-root .hover\:text-gray-600:hover {
105
+ color: #4b5563;
106
+ }
107
+
108
+ .schema-visualizer-root .hover\:text-indigo-600:hover {
109
+ color: #4f46e5;
110
+ }
111
+
112
+ .schema-visualizer-root .hover\:shadow-xl:hover {
113
+ box-shadow:
114
+ 0 20px 25px -5px rgb(0 0 0 / 0.1),
115
+ 0 8px 10px -6px rgb(0 0 0 / 0.1);
116
+ }
117
+
118
+ /* Last child border removal */
119
+ .schema-visualizer-root .last\:border-0:last-child {
120
+ border-width: 0;
121
+ }
122
+
123
+ /* Placeholder styles */
124
+ .schema-visualizer-root .placeholder\:text-gray-400::placeholder {
125
+ color: #9ca3af;
126
+ }
127
+
128
+ /* Ring focus styles */
129
+ .schema-visualizer-root .focus\:ring-1:focus {
130
+ box-shadow: 0 0 0 1px #6366f1;
131
+ }
132
+
133
+ .schema-visualizer-root .focus\:border-indigo-500:focus {
134
+ border-color: #6366f1;
135
+ }
136
+
137
+ .schema-visualizer-root .focus\:outline-none:focus {
138
+ outline: none;
139
+ }
140
+
141
+ /* Opacity utilities */
142
+ .schema-visualizer-root .opacity-50 {
143
+ opacity: 0.5;
144
+ }
145
+
146
+ .schema-visualizer-root .opacity-70 {
147
+ opacity: 0.7;
148
+ }
149
+
150
+ .schema-visualizer-root .opacity-90 {
151
+ opacity: 0.9;
152
+ }