@import "ui-variables";
@import "octicon-mixins";

status-bar {
  display: block;
  font-size: 11px;
  line-height: @component-line-height - 3px;
  height: @component-line-height + 1px;
  position: relative;
  -webkit-user-select: none;
  cursor: default;
  overflow: hidden;
  white-space: nowrap;
  min-width: -webkit-min-content;

  .flexbox-repaint-hack {
    padding: 0 @component-line-height/2;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    justify-content: space-between;
  }

  // Use 1/3 of space -> will get cut-off first when narrow
  .status-bar-left {
    flex: 1 1 33%;
    overflow-x: auto;
  }

  // Use 2/3 of space
  .status-bar-right {
    padding-left: @component-padding;
    overflow-x: auto;
  }

  // Limit inline-blocks from getting too long
  .inline-block {
    max-width: 20vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  // No width limit for file-info -> will get cut off if too long
  .inline-block.file-info {
    max-width: none;
  }

  // All icons are smaller than normal (normal is 16px)
  .icon:before {
    .icon-size(14px);
    position: relative;
    top: 1px;
    margin-right: 0px;
  }

  .icon-diff-ignored:before,
  .commits-ahead-label:before,
  .commits-behind-label:before {
    margin-right: -1px;
  }

  .buffer-modified:empty,
  .current-path:empty,
  .cursor-position:empty,
  .selection-count:empty {
    display: none;
  }

  .git-view {
    display: inline-block;
  }
}
