Skip to content

Sync-in · Sovereign platform for file storage, sharing, synchronization, and collaboration.

2.0 KB
Raw Blame
@mixin box-solid-variant($color, $text-color: #fff, $border-darken: false) {
  @if $border-darken {
    border: .5px solid darken($color, 5%);
  } @else {
    border: .5px solid $color;
  }
  border-radius: 2px;
  > .box-header {
    color: $text-color;
    background-color: $color;

    a,
    .btn {
      color: $text-color;
    }
  }
}

@mixin app-menu-surface-structure($radius: $btn-border-radius, $padding: .25rem, $important: false) {
  @if $important {
    border-radius: $radius !important;
    line-height: normal !important;
    box-shadow: none !important;
    padding: $padding !important;
  } @else {
    border-radius: $radius;
    line-height: normal;
    box-shadow: none;
    padding: $padding;
  }
}

@mixin app-menu-item-structure($radius: $btn-border-radius, $margin-y: 1px, $important: false) {
  @if $important {
    border-radius: $radius !important;
    margin: $margin-y 0 !important;
  } @else {
    border-radius: $radius;
    margin: $margin-y 0;
  }
}

@mixin app-menu-divider-structure($margin: .2rem 0, $width: .5px, $important: false) {
  @if $important {
    border-top-width: $width !important;
    border-top-style: solid !important;
    margin: $margin !important;
  } @else {
    border-top-width: $width;
    border-top-style: solid;
    margin: $margin;
  }
}

@mixin text-truncate-utility {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@mixin no-select-utility {
  cursor: default;
  user-select: none;
}

@mixin no-select-pointer-utility {
  @include no-select-utility;
  cursor: pointer;
}

@mixin circle-icon-utility {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  flex-shrink: 0;
  min-width: 32px;
  min-height: 32px;
  border: 1px solid var(--circle-icon-border, transparent);
  background-color: var(--circle-icon-bg, transparent);
  color: var(--circle-icon-fg, inherit);
  font-size: 1rem;
  line-height: 1;
  vertical-align: middle;
  border-radius: 50%;
}

@mixin circle-icon-sm-utility {
  min-width: 26px;
  min-height: 26px;
  font-size: $font-size-sm;
}