//
// @file
// Styles for menus and navigation markup.
//

/**
 * Markup generated by theme_menu_tree().
 */
.menu {
  border: none;
  list-style: none;
  text-align: left; /* LTR */

  .expanded {
    list-style-image: image-url("menu-expanded.png");
    list-style-type: circle;
  }

  .collapsed {
    list-style-image: image-url("menu-collapsed.png"); /* LTR */
    list-style-type: disc;
  }

  .leaf {
    list-style-image: image-url("menu-leaf.png");
    list-style-type: square;
  }

  .active {
    color: $color-link-alternate;
  }
}

td {
  &.menu-disabled {
    background: #ccc;
  }
}

/**
 * Markup generated by theme_links().
 */
.inline {
  display: inline-block;
  margin: 0;

  [dir="ltr"] &,
  [dir="rtl"] & {
    padding: 0;
  }

  li {
    display: inline-block;
    margin: 0;
    list-style-type: none;

    [dir="ltr"] & {
      margin-right: $rhythm-space-short;

      &:last-child {
        margin-right: 0;
      }
    }

    [dir="rtl"] & {
      margin-left: $rhythm-space-short;

      &:last-child {
        margin-left: 0;
      }
    }
  }
}

/**
 * Markup generated by theme_breadcrumb().
 */
.breadcrumb {
  margin: $base-rhythm-unit 0;
}

/**
 * Markup generated by theme_menu_local_tasks().
 */
// Style the primary and secondary tabs as invisible classes so that they are
// easier to target with an %extend.
.primary {
  @extend %tabs-primary;
}

.secondary {
  @extend %tabs-secondary;
}
