kui-shell
Version:
This is the monorepo for Kui, the hybrid command-line/GUI electron-based Kubernetes tool
145 lines (125 loc) • 2.9 kB
CSS
/* mostly an example of an alternate top tab stripe UI */
.kui-alternate .kui-header__title {
display: none;
}
.kui-header__title,
.kui-tab,
.kui-new-tab {
color: var(--tab-gray-text-color);
display: inline-flex;
justify-content: center;
align-items: center;
cursor: pointer;
}
.kui-header {
width: 100%;
height: 48px;
flex-basis: 48px;
display: flex;
background-color: var(--color-stripe-01);
padding: 0 1em 0 3em;
font-weight: 600;
box-shadow: 0 1px 10px 0 rgba(21, 41, 53, 0.1);
z-index: 1;
}
.kui-header__title {
padding-right: 28px;
}
.kui-tab {
position: relative;
border: none;
background: transparent;
}
.kui-tab--label {
text-align: left;
font-size: 0.875rem;
font-weight: 600;
padding: 0.5em 0 0;
border: none ;
}
body.kui-alternate .left-tab-stripe-buttons .left-tab-stripe-button-closer {
transform: translateY(calc(-50% + 0.25em));
}
.left-tab-stripe-button.processing .kui-tab--label {
color: var(--active-tab-color);
}
.kui-tab--label-index:before {
content: counter(tab-index);
}
.kui-tab--active {
color: var(--active-tab-color);
}
.kui-tab.left-tab-stripe-button-selected {
margin-top: 0;
}
.kui-tab::after {
display: block;
content: "";
position: absolute;
width: 100%;
height: 2px;
background-color: transparent;
bottom: 0;
transition: all 0.2s;
pointer-events: none;
}
.kui-tab:hover:after,
.kui-tab--active:after {
background-color: currentColor;
}
#new-tab-button.kui-new-tab {
padding-top: 0.5em;
}
.kui-header a.kui--tab-navigatable {
padding: 0.5em;
}
.kui-new-tab__text {
color: var(--tab-gray-text-color);
}
body.kui-alternate .kui--input-stripe {
flex-basis: 90px;
box-shadow: 0 -3px 10px 0 rgba(60, 60, 60, 0.1);
}
body.kui-alternate .repl .repl-input {
padding-left: 2em;
padding-right: 2em;
}
body.kui-alternate .repl-output {
padding: 0 2em;
}
body.kui-alternate .repl-prompt {
border: none;
}
body.kui-alternate .repl-prompt-righty {
color: var(--color-text-01);
}
body.kui-alternate .repl-prompt-righty svg path {
fill: var(--color-text-01);
}
/* status indicators */
body.kui-alternate .repl-block .repl-prompt-right-element-status-icon svg {
transform: scale(0.875);
filter: none;
}
body.kui-alternate .repl-block.valid-response .repl-prompt-right-element-status-icon svg.kui--icon-ok {
display: none;
}
body.kui-alternate .repl .repl-prompt-right-element-status-icon.deemphasize {
order: -1;
margin-right: 0.5em;
margin-left: 0;
}
body.kui-alternate .kui--repl-prompt-buttons {
order: -2;
}
body.kui-alternate .repl-block.processing .repl-prompt-right-element-status-icon .kui--icon-processing svg circle {
stroke: var(--color-brand-03);
}
body.kui-alternate
.repl-block.processing
.repl-prompt-right-element-status-icon
.kui--icon-processing
svg
circle.bx--loading__stroke-kui {
stroke-dashoffset: 170;
}