Blob Blame Raw
/* -----------------------------------------------------------------------------
   Component: Tabs
----------------------------------------------------------------------------- */

// Container
// -----------------------------------------------------------------------------

.tab-container {
  background-color: transparent; // Allows below qproperty to show
  qproperty-BottomAboveLineColor: @tabbar-bg-color;
  qproperty-BottomBelowLineColor: @accent;
}

// Flat Tabs
// -----------------------------------------------------------------------------
// these are flat tabs with no top border ideal for palette widget etc

.tab-flat {
  @horizontal-padding: 4;
  background-color: @tab-bg-color;
  border-right: 1 solid @accent;
  border-bottom: 1 solid @accent;
  color: @tab-text-color;
  padding: 3 @horizontal-padding 3 @horizontal-padding;
  &:hover {
    background-color: @tab-bg-color-hover;
    color: @tab-text-color-hover;
  }
  &:selected {
    background-color: @tab-bg-color-selected;
    color: @tab-text-color-selected;
    border-bottom-color: @tab-bg-color-selected;
  }
  &:only-one {
    margin: 0;
  }
}

// Rounded Tabs
// -----------------------------------------------------------------------------
// these are rounded tabs with top border ideal for fx panels etc

.tab-round {
  @horizontal-padding: 7;
  background-color: @tab-bg-color;
  border-top: 1 solid @accent;
  border-right: 1 solid @accent;
  border-left: 1 solid @accent;
  border-bottom: 1 solid @accent;
  color: @tab-text-color;
  margin: 3 -1 0 0;
  padding: 2 @horizontal-padding 1 @horizontal-padding;
  &:hover {
    background-color: @tab-bg-color-hover;
    color: @tab-text-color-hover;
  }
  &:selected {
    background-color: @tab-bg-color-selected;
    border-top-right-radius: 2;
    border-top-left-radius: 2;
    border-bottom-color: @tab-bg-color-selected;
    color: @tab-text-color-selected;
    margin: 1 -1 -1 0;
    padding: 2 @horizontal-padding 2 @horizontal-padding;
  }
  &:only-one {
    margin: 1 0 0 0;
    padding: 3 @horizontal-padding 3 @horizontal-padding;
  }
  &:last {
    margin-right: 0;
    border-top-right-radius: 2;
  }
  &:first {
    border-top-left-radius: 2;
  }
}