Skip to content

Open-source event management and ticket selling platform — perfect for concerts, conferences, and everything in between 🎟️ If you find this project helpful, please consider giving us a star ⭐️

3.2 KB
Raw Blame
@use "../../../../styles/mixins";

.topBar {
  grid-area: topbar;
  background: var(--hi-ink);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s ease;
  position: sticky;
  top: 0;
  z-index: 10;

  .topBarMain {
    display: flex;
    align-items: center;
    padding: 0 16px;
    height: 60px;

    @include mixins.respond-below(md) {
      padding: 0 12px;
    }
  }

  .breadcrumbsRow {
    padding: 10px 20px;
    background-color: var(--hi-color-white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top-left-radius: var(--hi-radius-lg);
    border-bottom: 1px solid var(--hi-color-border);
    position: relative;
    z-index: 5;
    min-height: 44px;

    @include mixins.respond-below(md) {
      border-top-left-radius: 0;
      padding: 10px 16px;
    }
  }

  .breadcrumbContentRight {
    flex-shrink: 0;

    @include mixins.respond-below(sm) {
      :global(.mantine-Button-label) {
        display: none;
      }

      :global(.mantine-Button-section) {
        margin: 0;
      }
    }
  }

  .breadcrumbs {
    font-weight: 500;
    display: flex;
    align-items: center;
    font-size: 0.8125rem;
    color: var(--hi-color-text-muted);
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;

    &::-webkit-scrollbar {
      display: none;
    }

    :global(.mantine-Breadcrumbs-root) {
      flex-wrap: nowrap;
      min-width: 0;
    }

    :global(.mantine-Breadcrumbs-breadcrumb) {
      @include mixins.ellipsis();
      max-width: 200px;

      @include mixins.respond-below(md) {
        max-width: 120px;
      }

      @include mixins.respond-below(sm) {
        max-width: 80px;
      }

      &:last-child {
        max-width: none;
        flex-shrink: 0;
      }
    }

    a {
      color: var(--hi-color-text-muted);
      transition: color 0.2s ease;
      position: relative;
      @include mixins.ellipsis();

      &:hover {
        color: var(--hi-text);
      }

      &:last-child {
        color: var(--hi-text);
        font-weight: 600;
      }

      &::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 0;
        height: 1px;
        background-color: var(--hi-primary);
        transition: width 0.2s ease;
      }

      &:hover::after {
        width: 100%;
      }
    }
  }

  .actionGroup {
    display: flex;
    align-items: center;
    margin-left: auto;
    flex-shrink: 0;
  }

  &.withShadow {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  }

  .burger {
    --burger-color: var(--hi-color-white);
    flex-shrink: 0;
    @include mixins.respond-above(md) {
      display: none;
    }
  }

  .logo {
    color: var(--hi-color-white);
    font-weight: bold;
    font-size: 1.2em;
    display: flex;
    justify-content: center;
    padding-inline: 5px;
    min-width: 0;

    a {
      display: flex;
      min-width: 0;
    }

    img {
      max-width: min(120px, 100%);

      @include mixins.respond-below(sm) {
        max-width: min(100px, 100%);
      }
    }

    @include mixins.respond-above(md) {
      display: none;
    }
  }

  .menu {
    display: flex;
    align-items: center;
    color: var(--hi-color-white);
  }
}