
/* Size console based on content, allowing it to wrap */
.vnc-console {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
}

/* Console menu should stretch to fill available space */
.vnc-console > .console-menu {
    flex: auto;
}

/* Vertical align the label and dropdown */
.vnc-console .console-menu .form-table-ct td {
    vertical-align: middle;
}

/* Use flex to size the send key and disconnect button */
.vnc-console > .toolbar-pf-action-right > div:not([class]) {
    display: flex;
}

/* Space action buttons apart */
label[for=console-type-select],
.console-menu > :not(:last-child),
.vnc-console > .toolbar-pf-action-right .dropdown {
    margin-right: 0.5rem;
}

/* Size the VNC & terminal area appropriately */
.vnc-console > .console-menu ~ .toolbar-pf-results,
.terminal-control ~ .vm-terminal {
    margin: 0.5rem auto 0;
    width: 100%;
}

/* VNC console really shouldn't be a col-sm-12 */
/* but we inherit the code from PF3/react/console */
.vnc-console > .toolbar-pf-results .col-sm-12 {
    margin: 0;
    padding: 0;
    float: none;
}

/* Make the VNC canvas scale down to available width */
.vnc-console canvas {
    max-width: 100%;
    height: auto !important;
}

.terminal-control {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    width: 100%;
}

.terminal-control > .btn {
    min-height: 2.25rem;
}

.terminal-control > :not(:last-child) {
    margin-right: 0.5rem;
}

.terminal-control > :last-child {
    margin-left: auto;
}

/* Hide send key button - there is not way to do that from the JS
 * https://github.com/patternfly/patternfly-react/issues/3689
 */
#console-send-shortcut {
    display: none;
}