/***********
 * Sidebar *
 ***********/
.sidebar {
  border-style: none;
  border-width: 0;
  background-color: $sidebar_bg_color;

  @at-root %sidebar_left,
  &:dir(ltr),
  &.left,
  &.left:dir(rtl) {
    border-right: none;
    border-left-style: none;
  }

  @at-root %sidebar_right
  &:dir(rtl),
  &.right {
    border-left: 1px solid $borders_color;
    border-right-style: none;
  }

  &:backdrop {
    background-color: $backdrop_sidebar_bg_color;
    border-color: $backdrop_borders_color;
    transition: $backdrop_transition;
  }

  row { padding: 8px 12px; }

    //elementary os file manager
    &.source-list{
      background: $base_color;
      padding: 4px 0px;
      &.view{
        transition: all .12s ease-in;
        &:selected {
          padding-left: 4px;
          background: transparentize(#eee, 0.5);
          color: #ACACAC;
          border-left: 4px solid $selected_bg_color;
          &:active { box-shadow: inset 0 2px 3px -1px transparentize(black, 0.5); }
    
          &.has-open-popup,
          &:hover { background-color: transparentize($selected_bg_color, 0.1); }
    
          &:backdrop { background-color: $backdrop_selected_bg_color; }
        }
        &:hover, iconview.source-list:hover { 
            background-color: if(variant == light, transparentize($bg_color, 0.6), transparentize($bg_color, 0.6)); 
        }
      }
    }
    

  paned & { &.left, &.right, &.left:dir(rtl), &:dir(rtl), &:dir(ltr), & {
    border-style: none;
    border-color: $borders_color;
  }
}
}

stacksidebar {
  &.sidebar {
    &:dir(ltr),
    &.left,
    &.left:dir(rtl) { list { @extend %sidebar_left; }}

    &:dir(rtl),
    &.right { list { @extend %sidebar_right; }}
  }

  row {
    //padding: 10px 4px;

    > label {
      padding-left: 6px;
      padding-right: 6px;
    }

    &.needs-attention > label {
      @extend %needs_attention;

      background-size: 6px 6px, 0 0;
    }
  }
}

.navigation-sidebar, placessidebar {
  &, &:backdrop { background: $sidebar_bg_color; }
  list { &, &:backdrop { background-color: $sidebar_bg_color; } }
}

placessidebar {
  > viewport.frame { border-style: solid; }

  row {
    padding: 2px 11px;
    .sidebar-icon {
      margin-left:-14px;
      margin-right: 7px;
      padding-left: 14px;
      padding-right: 7px;
    }
    &.sidebar-row:selected {
      &, &:hover, &:backdrop { background-color: $btn_bg; }
    }
    label { padding-left: 8px; }

    &.sidebar-new-bookmark-row { color: $yellow; }

    &:drop(active):not(:disabled) {
      &, label, image { color: $drop_target_color; }

      box-shadow: inset 0 1px $drop_target_color,
                  inset 0 -1px $drop_target_color;

      &:selected {
        &, label, image { color: $selected_fg_color; }
        background-color: $drop_target_color;
      }
    }
  }
} 

// Gnome 46: File operations status bar at the bottom of sidebar
.sidebar-pane .bottom-bar  {
  background-color: $_sidebar_color;
  button.toggle:not(.image-button) {
    background-color: transparent;
    border-radius: 0px;
    border: none;
    .view { background-color: transparent; }
  }
}