/*
 * Copyright (C) 2013 - present Instructure, Inc.
 *
 * This file is part of Canvas.
 *
 * Canvas is free software: you can redistribute it and/or modify it under
 * the terms of the GNU Affero General Public License as published by the Free
 * Software Foundation, version 3 of the License.
 *
 * Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
 * A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
 * details.
 *
 * You should have received a copy of the GNU Affero General Public License along
 * with this program. If not, see <http://www.gnu.org/licenses/>.
 */

.header-bar {
  @include clearfix;
  border-bottom: 1px solid $ic-border-light;
  background-color: #fff;
  min-height: 33px;
  padding-bottom: $ic-sp;

  &.pinned {
    position: fixed;
    top: 0;
    width: 1071px;
    background-color: white;
    box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.5);
    margin-#{direction(left)}: -12px;
    padding: 15px;
    z-index: 100;
  }
  // for a sticky header-bar
  &.sticky {
    position: fixed;
    top: 0;
    #{direction(left)}: 0;
    #{direction(right)}: 0;
    margin-#{direction(left)}: $left_side_width + 1;
    margin-#{direction(right)}: $right_side_width + 1;
    z-index: 3;
    background: white;
    height: 33px;
    min-width: 623px;
    border-color: #c1c7cf;
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
  }
  // helpers for alignment, use .row-fluid and .span classes to align where possible instead of these
  .header-bar-right {
    float: direction(right);
    padding-bottom: 5px;
  }
  .header-bar-left {
    float: direction(left);
    padding-bottom: 5px;
  }
  &.no-line {
    border: none;
  }
}

// classes for grouping buttons on the right
.header-group-left{
  margin-#{direction(right)}: 10px;
}
.header-group-left, .header-group-right{
  float: direction(left);
}

#searchTerm {
  width: 225px;
}
