@darksnow-ui/node-tree-react
Version:
Ready-to-use React component for node-tree-headless
352 lines • 6.75 kB
CSS
/* src/styles/node-tree.css */
:root {
--background: 30 30 30;
--foreground: 204 204 204;
--popover: 37 37 38;
--popover-foreground: 204 204 204;
--primary: 77 156 238;
--primary-foreground: 255 255 255;
--secondary: 70 70 70;
--secondary-foreground: 204 204 204;
--muted: 70 70 70;
--muted-foreground: 153 153 153;
--accent: 9 71 113;
--accent-foreground: 255 255 255;
--destructive: 244 135 113;
--destructive-foreground: 255 255 255;
--border: 70 70 71;
--input: 70 70 71;
--ring: 77 156 238;
--radius: 0.25rem;
}
.node-tree-container {
height: 100%;
overflow: auto;
background-color: #1e1e1e;
color: #cccccc;
font-family:
-apple-system,
BlinkMacSystemFont,
"Segoe UI",
Roboto,
sans-serif;
font-size: 13px;
border: 1px solid #464647;
}
.text-vscode-accent {
color: #4d9cee;
}
.text-vscode-text {
color: #cccccc;
}
.hover\:bg-vscode-border\/50:hover {
background-color: rgba(70, 70, 70, 0.5);
}
.w-3 {
width: 0.75rem;
}
.h-3 {
height: 0.75rem;
}
.w-4 {
width: 1rem;
}
.h-4 {
height: 1rem;
}
.w-5 {
width: 1.25rem;
}
.h-5 {
height: 1.25rem;
}
.mr-2 {
margin-right: 0.5rem;
}
.flex {
display: flex;
}
.flex-1 {
flex: 1 1 0%;
}
.flex-shrink-0 {
flex-shrink: 0;
}
.items-center {
align-items: center;
}
.justify-center {
justify-content: center;
}
.truncate {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.rounded {
border-radius: 0.25rem;
}
.transition-colors {
transition-property:
color,
background-color,
border-color,
text-decoration-color,
fill,
stroke;
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
transition-duration: 150ms;
}
.text-sm {
font-size: 0.875rem;
line-height: 1.25rem;
}
.text-white {
color: #ffffff;
}
.group {
}
.cursor-pointer {
cursor: pointer;
}
.relative {
position: relative;
}
.px-2 {
padding-left: 0.5rem;
padding-right: 0.5rem;
}
.node-tree-container:focus {
outline: none;
}
.node-tree-container.has-focus {
outline: 1px solid #007acc;
outline-offset: -1px;
}
.node-tree-container.has-focus:focus-visible {
outline: 2px solid #007acc;
outline-offset: -2px;
box-shadow: inset 0 0 0 1px #007acc;
}
.node-tree-content {
padding: 0;
}
.node-wrapper {
height: 22px;
font-size: 13px;
transition: background-color 0.1s ease;
user-select: none;
}
.node-wrapper:hover {
background-color: rgba(255, 255, 255, 0.04);
}
.node-wrapper.selected {
background-color: rgba(70, 79, 105, 0.44);
}
.node-wrapper.selected.cursor {
background-color: rgba(70, 79, 105, 0.44);
outline: 1px solid rgba(71, 141, 255, 0.72);
outline-offset: -1px;
}
.node-tree-container.has-focus .node-wrapper.selected {
background-color: #094771;
}
.node-tree-container.has-focus .node-wrapper.selected.cursor {
background-color: #094771;
outline-color: #007acc;
}
.node-wrapper.cursor {
outline: 1px solid rgba(71, 141, 255, 0.72);
outline-offset: -1px;
background-color: rgba(255, 255, 255, 0.02);
}
.node-tree-container.has-focus .node-wrapper.cursor {
outline-color: #007acc;
background-color: rgba(255, 255, 255, 0.03);
}
.node-wrapper.drag-over {
background-color: rgba(31, 112, 204, 0.29);
}
.node-wrapper.dragging {
opacity: 0.5;
}
.opacity-50 {
opacity: 0.5;
}
.node-wrapper .expander-icon {
transition: transform 0.08s ease;
}
.context-menu {
position: fixed;
background-color: #252526;
border: 1px solid #464647;
border-radius: 4px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
padding: 4px 0;
min-width: 200px;
z-index: 1000;
font-size: 13px;
}
.context-menu-item {
display: flex;
align-items: center;
gap: 8px;
width: 100%;
padding: 4px 20px;
background: none;
border: none;
cursor: pointer;
text-align: left;
color: #cccccc;
transition: background-color 0.1s ease;
}
.context-menu-item:hover {
background-color: #094771;
}
.context-menu-item.danger {
color: #f48771;
}
.context-menu-item.danger:hover {
background-color: rgba(244, 135, 113, 0.1);
}
.context-menu-divider {
height: 1px;
background-color: #464647;
margin: 4px 0;
}
.node-tree-container::-webkit-scrollbar {
width: 14px;
height: 14px;
}
.node-tree-container::-webkit-scrollbar-track {
background: transparent;
}
.node-tree-container::-webkit-scrollbar-thumb {
background-color: rgba(121, 121, 121, 0.4);
border: 3px solid transparent;
border-radius: 7px;
background-clip: content-box;
}
.node-tree-container::-webkit-scrollbar-thumb:hover {
background-color: rgba(100, 100, 100, 0.7);
}
.node-tree-container::-webkit-scrollbar-corner {
background: transparent;
}
.node-tree-root-drop-area {
}
.bg-popover {
background-color: rgb(var(--popover));
}
.text-popover-foreground {
color: rgb(var(--popover-foreground));
}
.border {
border-width: 1px;
border-color: rgb(var(--border));
}
.bg-accent {
background-color: rgb(var(--accent));
}
.text-accent-foreground {
color: rgb(var(--accent-foreground));
}
.text-destructive {
color: rgb(var(--destructive));
}
.bg-destructive {
background-color: rgb(var(--destructive));
}
.text-destructive-foreground {
color: rgb(var(--destructive-foreground));
}
.text-muted-foreground {
color: rgb(var(--muted-foreground));
}
.bg-border {
background-color: rgb(var(--border));
}
.hover\:bg-accent:hover {
background-color: rgb(var(--accent));
}
.hover\:text-accent-foreground:hover {
color: rgb(var(--accent-foreground));
}
.hover\:bg-destructive:hover {
background-color: rgb(var(--destructive));
}
.hover\:text-destructive-foreground:hover {
color: rgb(var(--destructive-foreground));
}
.focus\:bg-accent:focus {
background-color: rgb(var(--accent));
}
.focus\:text-accent-foreground:focus {
color: rgb(var(--accent-foreground));
}
.focus\:bg-destructive:focus {
background-color: rgb(var(--destructive));
}
.focus\:text-destructive-foreground:focus {
color: rgb(var(--destructive-foreground));
}
.p-1 {
padding: 0.25rem;
}
.pl-8 {
padding-left: 2rem;
}
.pr-2 {
padding-right: 0.5rem;
}
.py-1\.5 {
padding-top: 0.375rem;
padding-bottom: 0.375rem;
}
.absolute {
position: absolute;
}
.left-2 {
left: 0.5rem;
}
.h-3\.5 {
height: 0.875rem;
}
.w-3\.5 {
width: 0.875rem;
}
.fill-current {
fill: currentColor;
}
.text-\[13px\] {
font-size: 13px;
}
.text-\[11px\] {
font-size: 11px;
}
.font-normal {
font-weight: 400;
}
.text-vscode-textDim {
color: #999999;
}
.h-\[22px\] {
height: 22px;
}
.h-\[26px\] {
height: 26px;
}
.rounded-sm {
border-radius: 0.125rem;
}
.shadow-lg {
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.min-w-\[220px\] {
min-width: 220px;
}
.outline-none {
outline: 2px solid transparent;
outline-offset: 2px;
}
/*# sourceMappingURL=index.css.map */