zu 0.3.3

Yew web components, implementing Material Design
Documentation
// Copyright (c) 2024 Xu Shaohua <shaohua@biofan.org>. All rights reserved.
// Use of this source is governed by Lesser General Public License
// that can be found in the LICENSE file.


/* Styles for Breadcrumb */

// Styles applied to the root element.
.ZuBreadcrumb-root {
  color: $zu-palette-text-secondary;
}

// Styles applied to the ol element.
.ZuBreadcrumb-ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 0;
  margin: 0;

  list-style: none;
}

// Styles applied to the li element.
.ZuBreadcrumb-li {
  display: flex;
  margin-left: 8px;
  margin-right: 8px;

  user-select: none;
}

// Styles applied to the separator element.
.ZuBreadcrumb-separator {
  display: flex;
  margin-left: 8px;
  margin-right: 8px;

  user-select: none;
}

.ZuBreadcrumbCollapsed-button {
  display: flex;
  margin-left: calc($zu-spacing-unit * 0.5);
  margin-right: calc($zu-spacing-unit * 0.5);

  border-radius: 2px;

  background-color: $zu-colors-grey-100;
  color: $zu-colors-grey-700;

  &:hover, &:focus {
    background-color: $zu-colors-grey-200;
  }

  &:active {
    box-shadow: $zu-shadow-0;
    // TODO(Shaohua): Fix emphasize() error.
    //background-color: emphasize(#{$zu-colors-grey-200}, 0.12);
    background-color: $zu-colors-grey-200;
  }

  // TODO(Shaohua): Add dark theme support.
}

.ZuBreadcrumbCollapsed-icon {
  width: 24px;
  height: 16px;
}