Sha256: cd615576f47ccfd5122ada0ecaeb9885223407a5e10b8fae8aa0dcb32e237a47

Contents?: true

Size: 641 Bytes

Versions: 3

Compression:

Stored size: 641 Bytes

Contents

@mixin flag-icon-background {
  background-size: contain;
  background-position: 50%;
  background-repeat: no-repeat;
}

.flag-icon {
  @include flag-icon-background();
  position: relative;
  display: inline-block;
  width: (4 / 3) * 1em;
  line-height: 1em;
  &:before {
    content: '\00a0';
  }
  &.flag-icon-squared {
    width: 1em;
  }
}

@mixin flag-icon($country) {
  .flag-icon-#{$country} {

    background-image: image-url("#{$flag-icon-css-path}#{$flag-icon-rect-path}/#{$country}.svg");
    &.flag-icon-squared {
      background-image: image-url("#{$flag-icon-css-path}#{$flag-icon-square-path}/#{$country}.svg");
    }
  }
}

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
flag-icons-rails-1.1.2 app/assets/stylesheets/flag-icon-sass/flag-icon-base.scss
flag-icon-sass-1.1.3 app/assets/stylesheets/flag-icon-sass/flag-icon-base.scss
flag-icons-rails-1.1.1 app/assets/stylesheets/flag-icon-sass/flag-icon-base.scss