/*
 * 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.
 */

@_padding: 10px;
@_main-grid-min-width: 700px;
@_sidebar-min-width: 320px;

.home-row {
  display: flex;
  flex: 1;
  min-height: 0; // is needed to not allow children flow over browser edge
}

.main-grid-column {
  min-width: @_main-grid-min-width;
  flex-grow: 1; // should grow if there any available space
  display: flex;
  padding: 0 @_padding;
}

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

.sidebar-column {
  composes: sidebar-border;
  width: @_sidebar-min-width;
  min-width: @_sidebar-min-width;
}

// export for js
:export {
  grid-min-width: @_main-grid-min-width;
  sidebar-min-width: @_sidebar-min-width;
}
