/*
 * Copyright (C) 2017-2019 Dremio 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.
 */
@import "~#oss/uiTheme/less/variables.less";
@import "~#oss/uiTheme/less/mixins.less";

.align-left {
  text-align: left;
}

.section-margin {
  margin-top: @section-margin;
}

.background1 {
  background-color: var(--color--brand--50);
}

.border-default {
  border: 1px solid var(--border--neutral);
}

.horizontal-content-padding {
  padding-left: @content-padding;
  padding-right: @content-padding;
}

.top-content-padding {
  padding-top: @section-margin;
}

.flex-container {
  display: flex;
}

.flex-stretch-items {
  align-items: stretch;
}

.inline-flex-container {
  display: inline-flex;
}

.flex-align-center {
  align-items: center;
}

.flex-justify-center {
  justify-content: center;
}

.flex-justify-between {
  justify-content: space-between;
}

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

.flex-auto {
  flex: auto;
}

.flex-element-auto {
  flex: 1 1 auto;
  // the style below are needed to prevent child to overflow a parent
  min-width: 0;
  min-height: 0;
}

.tab-label {
  display: flex;
  align-items: center;
}

.scroll-right-container-with-header {
  overflow-y: auto;
  // right container should take the full available width to show scroll bar on the right
  width: 100%;
  // container header width is smaller than container width, thus the under line requires absolute position for a child
  position: relative;
}

.border-radius-default {
  border-radius: 2px;
}

.clear-fix {
  .clear-fix-mixin();
}

.full-height {
  height: 100%;
}

.overflow-hidden {
  overflow: hidden;
}

.no-margin {
  margin: 0;
}
