@import './lib/page.scss';
@import './lib/ct-card.scss';

#app .pf-l-gallery {
    --pf-l-gallery--GridTemplateColumns: 1fr;
}
#app .pf-c-card.containers-containers, #app .pf-c-card.containers-images {
    @extend .ct-card;
}

.container-block {
    display: flex;
    flex-direction: column;
}

.container-block small {
    flex-basis: calc(var(--pf-global--LineHeight--sm) * 1rem);
    line-height: var(--pf-global--LineHeight--sm);
    opacity: 0.7;
    overflow: hidden;
}

.container-name {
    font-size: var(--pf-global--FontSize--lg);
    font-weight: 400;
}

.containers-run-inline .form-inline {
    background: #f4f4f4;
    border-width: 0 1px 1px 1px;
    border-style: solid;
    border-color: #bababa;
    padding: 4px;
    margin-left: 0px;
}

.containers-run-inline .form-inline:first-of-type {
    border-top: 1px solid #bababa;
}

.containers-run-onbuildvarclaim input {
    max-width: 15em;
}

.pf-c-alert__description {
    overflow-wrap: anywhere;
}

.listing-action {
    width: 100%;
    display: flex;
    justify-content: space-around;
}

 // PF4 does not yet support multiple form fields for the same label
 // Use InputGroup component to achieve this - and just customize it with some extra spacing
.ct-input-group-spacer-sm.pf-c-input-group {
    // Add space between the input group elements
    gap: var(--pf-global--spacer--sm);
    // Allow input fields to wrap if needed
    flex-wrap: wrap;
    padding-bottom: var(--pf-global--spacer--sm);

    // Limit width for select entries and inputs in the input groups otherwise they take up the whole space
    > .pf-c-select, .pf-c-form-control:not(.pf-c-select__toggle-typeahead) {
      max-width: 40%;
    }

    // Right align the buttons in the input groups - used for adding/removing entries
    > button:first-of-type {
      margin-left: auto;
    }

    > input.pf-c-select__toggle-typeahead {
      min-width: min-content;
    }

    // Container port protocol selection does not need the full 40% width
    > select.container-port-protocol {
      max-width: 6rem;
    }

    > .btn-add, .btn-close {
      max-width: 3rem;
    }
}

input.pf-c-form-control[type=number] {
  max-width: 20%;
}

.invisible {
  visibility: hidden;
}
