/*
 * CloudBeaver - Cloud Database Manager
 * Copyright (C) 2020-2024 DBeaver Corp and others
 *
 * Licensed under the Apache License, Version 2.0.
 * you may not use this file except in compliance with the License.
 */

@mixin stripes-background($color, $important: false) {
  // background-image: linear-gradient(
  //   45deg,
  //   transparent 37.5%,
  //   $color 37.5%,
  //   $color 50%,
  //   transparent 50%,
  //   transparent 87.5%,
  //   $color 87.5%,
  //   $color 100%
  // );
  // background-size: 8px 8px;
  background-color: $color #{if($important, '!important', '')};
}

@mixin delimiter($color) {
  hr {
    border-color: $color;
    border-style: solid;
    border-bottom: none;
  }
}

@mixin branding-overflow() {
  .branding-overflow {
    background-image: linear-gradient(to top, $mdc-theme-surface, rgba($mdc-theme-surface, 0));
  }
  .branding-overflow-inverse {
    background-image: linear-gradient(to bottom, $mdc-theme-surface, rgba($mdc-theme-surface, 0));
  }
}
