/*!
 * SPDX-License-Identifier: Apache-2.0
 *
 * The OpenSearch Contributors require contributions made to
 * this file be licensed under the Apache-2.0 license or a
 * compatible open source license.
 *
 * Modifications Copyright OpenSearch Contributors. See
 * GitHub history for details.
 */

.ouiPageContent {
  width: 100%;
  min-width: 0; // Make sure that inner flex layouts don't get larger than this container

  // Assumes that in the default theme, the borders are touching the edge of the OuiPage so remove them.
  &.ouiPageContent--borderRadiusNone { // Nested for specificity
    border-left-width: 0;
    border-right-width: 0;
    border-bottom-width: 0;
  }

  &.ouiPageContent--verticalCenter {
    align-self: center;
    margin-top: auto;
    margin-bottom: auto;
    flex-grow: 0;
  }

  &.ouiPageContent--horizontalCenter {
    width: auto;
    max-width: 100%; // Fixes IE
    margin-left: auto;
    margin-right: auto;
    flex-grow: 0; // Offsets the properties of .ouiPanel within flexboxes
  }
}
