UNPKG

kui-shell

Version:

This is the monorepo for Kui, the hybrid command-line/GUI electron-based Kubernetes tool

378 lines (363 loc) 10.9 kB
/* * Copyright 2017-19 IBM Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ break { flex-basis: 100%; } #wskflowContainer { display: flex; flex-direction: column; margin: 0 auto; flex: 1; font-weight: 400; position: relative; overflow: hidden; /* we will do pan and zoom ourselves */ -webkit-app-region: no-drag; } #wskflowDiv { display: flex; flex: 1; } #wskflowSVG { flex: 1; } #wskflowSVG .edge-label { font-size: 5px; font-weight: bold; } #wskflowSVG .node[data-deployed="not-deployed"]:hover, #wskflowSVG .node.clickable:hover .edge-label, #wskflowSVG .node[data-deployed="not-deployed"]:hover .atom:not(.has-onclick) { /* no hover effects for not-deployed actions */ text-decoration: none; cursor: inherit !important; } #wskflowSVG[data-is-session-flow="true"] .node.leaf[data-status="not-run"] .atom { /* not-run nodes in a session flow */ mask: url(#mask-stripe); } #wskflowSVG[data-is-session-flow="true"] .edge-label:not(.edge-was-traversed) { fill: var(--color-text-02) !important; opacity: 0.8; } #wskflowSVG[data-is-session-flow="true"] .node.leaf[data-status="not-run"] .atom, #wskflowSVG[data-is-session-flow="true"] .node.leaf[data-status="not-run"] text { /* deemphasize not-visited nodes in session flow */ opacity: 0.8; } #wskflowSVG .node .atom.atom { /* wskflow node effect */ transition: fill 150ms ease-in-out, opacity 150ms ease-in-out, stroke 150ms ease-in-out; /* vector-effect: non-scaling-stroke; not supported by IE or Edge */ } #wskflowSVG path { /* path effects */ transition: fill 150ms ease-in-out, opacity 150ms ease-in-out, stroke 150ms ease-in-out; /*vector-effect: non-scaling-stroke; not supported by IE or Edge */ stroke-width: 0.5; /* 1.5 with non-scaling stroke */ stroke: var(--color-text-02) !important; stroke-opacity: 0.8; } #wskflowSVG path.link { fill: transparent; } #wskflowSVG #retryIconNormal path { /* the retry loop doesn't need a stroke */ stroke: none !important; fill: var(--color-base09); } #wskflowSVG path.forwardingLink { stroke: var(--color-base0D) !important; stroke-width: 1; /* 2 with support for non-scaling stroke */ pointer-events: all; } #wskflowSVG marker#forwardingEnd { fill: var(--color-base0D); } #wskflowSVG marker#greenEnd { fill: var(--color-green); } #wskflowSVG marker#trueEnd, #wskflowSVG .node .edge-label.true-branch { fill: orange; } #wskflowSVG marker#falseEnd, #wskflowSVG .node .edge-label.false-branch { fill: #dc7633; } #wskflowSVG marker > path { /* for marker paths, we want just a faint shadow */ stroke: rgba(0, 0, 0, 0.25) !important; } #wskflowSVG path.hover, #wskflowSVG path:hover { stroke-width: 1; } #wskflowSVG path.true-branch.hover, #wskflowSVG path.true-branch:hover { stroke: orange !important; marker-end: url(#trueEnd); } #wskflowSVG path.false-branch.hover, #wskflowSVG path.false-branch:hover { stroke: #dc7633 !important; marker-end: url(#falseEnd); } #wskflowSVG path.forwarding-edge.hover { marker-end: url(#forwardingEnd); } #wskflowSVG .node.leaf.Entry .atom, #wskflowSVG .node.leaf.Exit .atom { fill: var(--color-text-01); } body[kui-theme-style="dark"] #wskflowSVG .node.leaf.Entry .atom, body[kui-theme-style="dark"] #wskflowSVG .node.leaf.Exit .atom { fill: var(--color-ui-01); stroke: var(--color-ui-03) !important; } #wskflowSVG .node.leaf.Entry text, #wskflowSVG .node.leaf.Exit text { fill: var(--color-ui-02) !important; font-weight: 300; font-variant: small-caps; } body[kui-theme-style="dark"] #wskflowSVG .node.leaf.Entry text, body[kui-theme-style="dark"] #wskflowSVG .node.leaf.Exit text { fill: var(--color-text-02) !important; } #wskflowSVG .node .atom { fill: var(--color-base02); } body[kui-theme-style="dark"] #wskflowSVG .node .atom { fill: var(--color-base03); } body[kui-theme-style="dark"] #wskflowSVG .node.leaf .atom { stroke: var(--color-base02) !important; } body[kui-theme-style="dark"] #wskflowSVG .node[data-deployed="not-deployed"] .atom { opacity: 0.7; } #wskflowSVG .node .atom ~ text { fill: var(--color-text-01); } #wskflowSVG path[data-visited="true"] { /* visited edges */ stroke: var(--color-base0D) !important; stroke-width: 1.1; marker-end: url(#edgeTraversedEnd); } #wskflowSVG path[data-visited="false"] { /* not-visited edges */ stroke-dasharray: 1; opacity: 0.8; } #wskflowSVG .node.leaf.function .atom { /* function nodes are yellow in app graph*/ fill: var(--color-support-03); stroke: var(--color-ui-05) !important; } #wskflowSVG .node.leaf.function .atom, #wskflowSVG .node.leaf.Dummy .atom, #wskflowSVG .node.leaf.retain .atom { /* these are represented as smaller boxes, so use a lighter stroke */ stroke-width: 0.5; /* 1.25; with non-scaling stroke */ } #wskflowSVG marker#end { fill: var(--color-text-02); } /* #wskflowSVG .node.compound:not(.root)[data-status="success"] .atom { stroke: var(--color-ok) !important; } #wskflowSVG .node.compound:not(.root)[data-status="failed"] .atom { stroke: var(--color-support-01) !important; } */ #wskflowSVG .node.leaf[data-status="success"] .atom { /* visited nodes with success outcome */ /* fill: var(--color-base0D) !important; */ stroke: var(--color-text-01) !important; } body[kui-theme-style="dark"] #wskflowSVG .node.leaf[data-status="success"] .atom { mask: url(#mask-stripe-heavy); } #wskflowSVG marker#edgeTraversedEnd { fill: var(--color-base0D); } #wskflowSVG .node.leaf[data-status="failed"] .atom { /* visited nodes with failure outcome */ fill: var(--color-support-01) !important; } #wskflowSVG .node.leaf.Exit[data-status="failed"] text:not(.edge-label), #wskflowSVG .node.leaf[data-status="failed"] text:not(.edge-label) { /* visited node text for session flow */ fill: var(--color-ui-01) !important; } #wskflowSVG .node.leaf.function[data-status="success"] text, #wskflowSVG .node.leaf.function[data-status="failed"] text { -webkit-font-smoothing: antialiased; } #wskflowSVG .node.leaf .atom { stroke: var(--color-text-01) !important; stroke-width: 0.5; /* 2 with vector-effects: non-scaling stroke support */ } #wskflowSVG .node.leaf .atom { stroke: var(--color-text-01) !important; } #wskflowSVG .action[data-deployed="deployed"] .atom { fill: var(--color-ui-03) !important; } #wskflowSVG .action[data-deployed="deployed"] text:not(.edge-label) { fill: var(--color-text-01) !important; } #wskflowSVG .action[data-deployed="deployed"] rec.atom:hover, #wskflowSVG .action[data-deployed="deployed"] .atom.hover, #wskflowSVG .node .atom.has-onclick:hover, #wskflowSVG .node .atom.has-onclick.hover { fill: var(--color-base0D) !important; } #wskflowSVG .node.leaf.function .atom:hover, #wskflowSVG .node.leaf.function .atom.hover { fill-opacity: 0.75; } #wskflowSVG .node[data-deployed="not-deployed"] .atom { mask: url(#mask-stripe); fill: var(--color-base03) !important; } #wskflowSVG .node.leaf.let .atom, #wskflowSVG .node.leaf.literal .atom { /*fill: var(--color-brand-03); stroke: var(--color-text-01) !important;*/ fill: transparent; stroke: transparent !important; } #wskflowSVG .node.leaf.let text, #wskflowSVG .node.leaf.literal text { /*fill: var(--color-ui-01) !important;*/ fill: var(--color-brand-03) !important; font-size: 12px; font-weight: bold; letter-spacing: 2px; } #wskflowSVG .node.leaf.function text:not(.edge-label) { /* function nodes; use code font */ fill: var(--color-text-01) !important; font-family: var(--font-monospace); font-size: 5px; } body[kui-theme-style="dark"] #wskflowSVG .node.leaf.function text:not(.edge-label) { fill: var(--color-ui-01) !important; } #wskflowSVG .node.compound:not(.root) .atom.has-onclick:hover, #wskflowSVG .node.compound:not(.root) .atom.has-onclick.hover { /* stroke-dasharray: 0.5,1; */ stroke: var(--color-base0D) !important; } #wskflowSVG .node.compound:not(.root) .atom { /* stroke-dasharray: 0.25,0.25; */ stroke-width: 0.5; stroke: var(--color-ui-04) !important; fill: var(--color-base03) !important; fill-opacity: 0.05; rx: 4px; } #wskflowSVG .node.try .atom, #wskflowSVG .node.handler .atom { } #wskflowSVG .node.compound text { /* e.g. Try and Catch labels */ font-weight: 500; fill: var(--color-base09); } #wskflowSVG .node.compound.try_catch.no-parents .atom { stroke: none !important; } #wskflowSVG .node.compound.try_catch .atom { stroke: var(--color-ui-05) !important; fill: var(--color-ui-04) !important; } #wskflowSVG .node.compound.try_catch text { display: none; } /* render dummy nodes a bit specially */ #wskflowSVG .node.Dummy[data-name="/_/Execute Tasks in Parallel"] .atom, #wskflowSVG .node.Dummy[data-name="/_/Map over Array"] .atom, #wskflowSVG .node.Dummy[data-name="/_/Wait for Completion"] .atom { fill: var(--color-ui-05); /*fill: var(--color-brand-01);*/ } #wskflowSVG .node.Dummy text { fill: var(--color-text-01) !important; /*fill: var(--color-ui-02) !important;*/ font-size: 5px; letter-spacing: 0.1px; } /* qtip rules */ #qtip { transition: opacity 150ms ease-in-out; transition-delay: 100ms; display: flex; align-items: center; opacity: 0; z-index: 10; position: absolute; pointer-events: none; /* see shell issue #906 */ top: 0; left: 0; } #qtipArrow { position: relative; left: 3px; top: 1px; color: var(--color-stripe-02); } #qtipContent { background-color: var(--color-stripe-02); box-shadow: 0 0 0.5ex var(--color-base03); color: var(--color-text-against-dark-bg); font-size: 0.75em; padding: 1ex; /*display: flex; flex-wrap: wrap;*/ margin: 0px; margin-right: 1ex; /* don't get all squished up against the right-end edge of the window */ word-wrap: break-word; } #qtip.visible { opacity: 0.975; } #qtip.qtip-pre #qtipContent { overflow: hidden; white-space: pre; text-overflow: ellipsis; display: initial !important; /* override display: flex */ } #qtip .qtip-prefix { font-weight: bold; } #qtip .qtip-prefix.red-text { filter: brightness(1.5); /* make it more legible against the qtip background */ padding-right: 5px; } #qtip .qtip-prefix.action { color: var(--color-support-04); /* match hover color of action nodes */ } #qtip .qtip-prefix.function { color: var(--color-base0C); } #qtip .qtip-prefix.let, #qtip .qtip-prefix.literal { color: var(--color-brand-02); filter: brightness(2); /* too dim against the qtip background */ }