Sha256: cebe3b909555bd0de17057f5a8b5d9e10970d25934698df57e87250c50ee209d

Contents?: true

Size: 633 Bytes

Versions: 1

Compression:

Stored size: 633 Bytes

Contents

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

.flag-icon {
  @extend .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

1 entries across 1 versions & 1 rubygems

Version Path
flag-icons-rails-2.5.0 app/assets/stylesheets/flag-icon-sass/flag-icon-base.scss