Skip to content

The SVG-only release contains references to PNG #20

@kieraneglin

Description

@kieraneglin

Using the most recent 0.0.12 version without PNG, you see this in flag-list.scss:

@mixin flag($alpha3, $alpha2, $numeric, $ioc: null, $fifa: null) {
  @if $ioc == null and $fifa == null {
    .flag-#{$alpha3}, .flag-#{$alpha2}, .flag-#{$numeric} {
      background-image: unquote("url(#{$flag-css-png-path}/#{$alpha3}.png)");
      background-image: unquote("url(#{$flag-css-path}/#{$alpha3}.svg)");
    }
  }
  @else if $ioc != null and $fifa == null {
    .flag-#{$alpha3}, .flag-#{$alpha2}, .flag-#{$numeric}, .flag-ioc-#{$ioc} {
      background-image: unquote("url(#{$flag-css-png-path}/#{$alpha3}.png)");
      background-image: unquote("url(#{$flag-css-path}/#{$alpha3}.svg)");
    }
  } @else if $ioc == null and $fifa == null {
    .flag-#{$alpha3}, .flag-#{$alpha2}, .flag-#{$numeric}, .flag-fifa-#{$fifa} {
      background-image: unquote("url(#{$flag-css-png-path}/#{$alpha3}.png)");
      background-image: unquote("url(#{$flag-css-path}/#{$alpha3}.svg)");
    }
  } @else {
    .flag-#{$alpha3}, .flag-#{$alpha2}, .flag-#{$numeric}, .flag-ioc-#{$ioc}, .flag-fifa-#{$fifa} {
      background-image: unquote("url(#{$flag-css-png-path}/#{$alpha3}.png)");
      background-image: unquote("url(#{$flag-css-path}/#{$alpha3}.svg)");
    }
  }
}

As you can see, the mixin references the PNG flags as well as the SVG ones. This is also seen in the "Exceptions" section.

Thank you for the great library!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions