
@st-namespace 'Image-deprecated-st-css';
:import {
  -st-from: "../../common/formatters.st";
  -st-named: color, fallback;
}

:import {
  -st-from: "../WowImage/WowImage.deprecated.st.css";
  -st-default: WowImage;
  -st-named: overrideStyleParams as overrideStyleParamsWowImage, defaultBorderWidth, defaultBorderRadius, defaultImageOpacity;
}

/* Overrides */
:vars {
  /*
    A background color by a color from the palette for the container
  */
  BackgroundColor: --overridable;
  /*
    A border color by a color from the palette for the container
  */
  BorderColor: --overridable;
  /*
    A border width in pixels for the container
    @default 0px
  */
  BorderWidth: --overridable;
  /*
    A border radius in pixels for the container
    @default 0px
  */
  BorderRadius: --overridable;
  /*
    An opacity between 0 to 100 for the image
    @default 100%
  */
  ImageOpacity: --overridable;
}
/*
 * A background color by a color from the palette for the container
 * @type color
 */
@property st-global(--wix-ui-tpa-image-background-color);
/*
 * A border color by a color from the palette for the container
 * @type color
 */
@property st-global(--wix-ui-tpa-image-border-color);
/*
 * A border width in pixels for the container
 * @type size
 * @default 0px
 */
@property st-global(--wix-ui-tpa-image-border-width);
/*
 * A border radius in pixels for the container
 * @type size
 * @default 0px
 */
@property st-global(--wix-ui-tpa-image-border-radius);
/*
 * An opacity between 0 to 100 for the image
 * @type size
 * @default 100%
 */
@property st-global(--wix-ui-tpa-image-image-opacity);

:vars {
  backgroundColor: color(value(BackgroundColor));
  borderColor: color(value(BorderColor));
  borderWidth: fallback(value(BorderWidth), value(defaultBorderWidth));
  borderRadius: fallback(value(BorderRadius), value(defaultBorderRadius));
  imageOpacity: fallback(value(ImageOpacity), value(defaultImageOpacity));
}

.root.overrideStyleParams {
  -st-mixin: overrideStyleParamsWowImage(
    BackgroundColor value(backgroundColor),
    BorderColor value(borderColor),
    BorderWidth value(borderWidth),
    BorderRadius value(borderRadius),
    ImageOpacity value(imageOpacity)
  );
}

/* st-namespace-reference="../../../../src/components/Image/Image.deprecated.st.css" */
    