Sha256: 26e19c7450df63a3d20b4cf0af159acd01755bdafd4fc9649f38a08f99af937a

Contents?: true

Size: 1.27 KB

Versions: 18

Compression:

Stored size: 1.27 KB

Contents

# frozen_string_literal: true

# rubocop:disable Metrics/MethodLength
module Phlex
  module Icons
    module Flag
      class Sl < Base
        def square
          svg(
            **attrs, xmlns: 'http://www.w3.org/2000/svg', viewbox: '0 0 512 512'
          ) do |s|
            s.defs do
              s.clipPath(id: 'sl-a') do
                s.rect(width: '384', height: '512', rx: '4.6', ry: '7.6')
              end
            end
            s.g(
              fill_rule: 'evenodd',
              clip_path: 'url(#sl-a)',
              transform: 'scale(1.33333 1)'
            ) do
              s.path(fill: '#0000cd', d: 'M0 341.7h512V512H0z')
              s.path(fill: '#fff', d: 'M0 171.4h512v170.3H0z')
              s.path(fill: '#00cd00', d: 'M0 0h512v171.4H0z')
            end
          end
        end

        def rectangle
          svg(
            **attrs, xmlns: 'http://www.w3.org/2000/svg', viewbox: '0 0 640 480'
          ) do |s|
            s.g(fill_rule: 'evenodd') do
              s.path(fill: '#0000cd', d: 'M0 320.3h640V480H0z')
              s.path(fill: '#fff', d: 'M0 160.7h640v159.6H0z')
              s.path(fill: '#00cd00', d: 'M0 0h640v160.7H0z')
            end
          end
        end
      end
    end
  end
end
# rubocop:enable Metrics/MethodLength

Version data entries

18 entries across 18 versions & 2 rubygems

Version Path
phlex-icons-flag-1.8.0 lib/phlex/icons/flag/sl.rb
phlex-icons-1.8.0 lib/phlex/icons/flag/sl.rb
phlex-icons-1.7.0 lib/phlex/icons/flag/sl.rb
phlex-icons-flag-1.7.0 lib/phlex/icons/flag/sl.rb
phlex-icons-flag-1.6.0 lib/phlex/icons/flag/sl.rb
phlex-icons-1.6.0 lib/phlex/icons/flag/sl.rb
phlex-icons-flag-1.5.0 lib/phlex/icons/flag/sl.rb
phlex-icons-1.5.0 lib/phlex/icons/flag/sl.rb
phlex-icons-flag-1.4.0 lib/phlex/icons/flag/sl.rb
phlex-icons-1.4.0 lib/phlex/icons/flag/sl.rb
phlex-icons-1.3.0 lib/phlex/icons/flag/sl.rb
phlex-icons-flag-1.3.0 lib/phlex/icons/flag/sl.rb
phlex-icons-1.2.0 lib/phlex/icons/flag/sl.rb
phlex-icons-flag-1.2.0 lib/phlex/icons/flag/sl.rb
phlex-icons-flag-1.1.0 lib/phlex/icons/flag/sl.rb
phlex-icons-1.1.0 lib/phlex/icons/flag/sl.rb
phlex-icons-flag-1.0.0 lib/phlex/icons/flag/sl.rb
phlex-icons-1.0.0 lib/phlex/icons/flag/sl.rb