/*
 * SPDX-FileCopyrightText: 2023 Siemens AG
 *
 * SPDX-License-Identifier: MIT
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

@mixin size($size) {
  height: $size;
  width: $size;
  min-height: $size;
  min-width: $size;
}

:host {
  display: inline-flex;
  @include size(1.5rem);
  color: inherit;

  .svg-container {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;

    svg {
      display: block;
      position: relative;
      height: 100%;
      width: 100%;
    }

    svg,
    svg[fill],
    svg [fill] {
      fill: currentColor !important;
    }
  }
}

:host(.size-12) {
  @include size(0.75rem);
}

:host(.size-16) {
  @include size(1rem);
}

:host(.size-32) {
  @include size(2rem);
}
