droboticflow/src/index.css

102 lines
2.2 KiB
CSS

@import "tailwindcss";
@import "./styles/capture-workspace.css";
/* Keep the reviewer controls usable inside a narrow workbench, not merely a
wide viewport. Never hide overflowing buttons behind the page scroller. */
.capture-workbench footer > div {
min-width: 0;
flex-wrap: wrap;
}
.capture-workbench input:not([type="checkbox"]):not([type="range"]),
.capture-workbench textarea {
min-width: 0;
max-width: 100%;
}
@media (max-width: 767px) {
.capture-workbench header,
.capture-workbench footer {
padding-inline: 0.75rem;
}
.capture-workbench header > div {
min-width: 0;
flex-wrap: wrap;
}
}
/* Grid/flex form descendants must shrink before native inputs' intrinsic size
can push their ancestors outside the available application viewport. */
.responsive-storage :is(section, .grid > *, input, textarea, select),
.responsive-settings :is(.grid > *, .flex > *, input, textarea, select) {
min-width: 0;
max-width: 100%;
}
@custom-variant dark (&:where(.dark, .dark *));
html {
color-scheme: light;
--app-panel: #ffffff;
--app-canvas: #f3f7f8;
--app-sidebar: #f7fafb;
--app-inset: #f8fafc;
--app-text: #0f172a;
--app-border: #e2e8f0;
}
html.dark {
color-scheme: dark;
--app-panel: #151619;
--app-canvas: #0a0a0a;
--app-sidebar: #151619;
--app-inset: #0a0a0a;
--app-text: #f1f5f9;
--app-border: #34363b;
}
body {
background-color: #f3f7f8;
color: #0f172a;
}
html.dark body {
background-color: #0a0a0a;
color: #f8fafc;
}
@keyframes node-flash {
0%,
100% {
border-color: #3b82f6;
box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
}
50% {
border-color: #60a5fa;
box-shadow: 0 0 20px 5px rgba(59, 130, 246, 0.5);
}
}
.animate-node-flash {
animation: node-flash 1s infinite;
}
html:not(.dark) .annotation-operations-page {
color: #0f172a;
}
.capture-media-controls {
position: relative;
z-index: 10;
}
/* Native graph controls follow the same theme as their surrounding panels. */
.dark .workflow-editor-page .react-flow__controls-button {
background: #151619;
border-color: #34363b;
color: #e2e8f0;
fill: #e2e8f0;
}
.workflow-editor-page button svg,
.project-detail-page button svg {
flex-shrink: 0;
}