Elffuss BraidHub

kikocis/continue public

e31fcddb0dec · 2.6 KiBRawPermalink
1@tailwind base;
2@tailwind components;
3@tailwind utilities;
4
5@font-face {
6 font-family: "Inter";
7 src: url("/fonts/Inter/InterDisplay-Light.woff2") format("woff2");
8 font-weight: 300;
9 font-style: normal;
10}
11
12@font-face {
13 font-family: "JetBrains Mono";
14 src: url("/fonts/JetBrainsMono/JetBrainsMono-Light.woff2") format("woff2");
15 font-weight: 300;
16 font-style: normal;
17}
18
19:root {
20 --example-var: rgb(30, 30, 30);
21}
22
23html,
24body,
25#root {
26 height: 100%;
27 line-height: 1.3;
28 background-color: var(--vscode-editor-background);
29 font-family:
30 system-ui,
31 -apple-system,
32 BlinkMacSystemFont,
33 "Segoe UI",
34 Roboto,
35 Oxygen,
36 Ubuntu,
37 Cantarell,
38 "Open Sans",
39 "Helvetica Neue",
40 sans-serif;
41}
42
43body {
44 padding: 0;
45 color: var(--vscode-editor-foreground);
46 padding: 0px;
47 margin: 0px;
48 height: 100%;
49}
50
51/* To override the default `-webkit-focus-ring-color` that is an ugly orange */
52*:focus {
53 outline: none;
54}
55
56@keyframes fadeIn {
57 from {
58 opacity: 0;
59 }
60 to {
61 opacity: 1;
62 }
63}
64
65.fade-in-span {
66 animation: fadeIn 0.3s ease-in-out;
67}
68
69.thin-scrollbar {
70 scrollbar-width: thin;
71}
72
73/* Hide scrollbar for Chrome, Safari and Opera */
74.no-scrollbar::-webkit-scrollbar {
75 display: none;
76}
77
78/* Hide scrollbar for IE, Edge and Firefox */
79.no-scrollbar {
80 -ms-overflow-style: none; /* IE and Edge */
81 scrollbar-width: none; /* Firefox */
82}
83
84.truncate-start {
85 display: inline-block;
86 vertical-align: middle;
87 overflow: hidden;
88 white-space: nowrap;
89 text-overflow: ellipsis;
90 direction: rtl;
91 width: 100%;
92}
93
94.scroll-container {
95 overflow-y: auto; /* Enable vertical scrolling only if needed */
96 scrollbar-width: thin; /* Firefox */
97 padding-right: 4px;
98}
99
100.scroll-container::-webkit-scrollbar {
101 width: 8px;
102}
103
104.scroll-container::-webkit-scrollbar-track {
105 background: #f1f1f1;
106 border-radius: 4px;
107}
108
109.scroll-container::-webkit-scrollbar-thumb {
110 background-color: #888;
111 border-radius: 4px;
112 transition: background-color 0.3s ease;
113}
114
115.scroll-container::-webkit-scrollbar-thumb:hover {
116 background-color: #555;
117}
118
119.scroll-container:is(:hover, :focus)::-webkit-scrollbar {
120 display: block; /* Show scrollbar only on hover or focus */
121}
122
123/* Debug: visible flash when component re-renders */
124@keyframes rerenderFlash {
125 0% {
126 box-shadow: 0 0 0 2px rgba(255, 0, 0, 0.9) inset;
127 }
128 100% {
129 box-shadow: 0 0 0 0 rgba(255, 0, 0, 0) inset;
130 }
131}
132
133.rerender-flash {
134 animation: rerenderFlash 180ms ease-out;
135}
136
137.render-count {
138 display: inline-block;
139 margin-right: 6px;
140 padding: 0 4px;
141 border-radius: 3px;
142 background: rgba(255, 0, 0, 0.15);
143 color: rgba(255, 0, 0, 0.9);
144 font-weight: 600;
145 letter-spacing: 0.02em;
146}