Sha256: 7a105e0f72ee21d2e8c22f4e809cad47184f58fbe80a0e34ec884a747e017890

Contents?: true

Size: 1.94 KB

Versions: 25

Compression:

Stored size: 1.94 KB

Contents

# frozen_string_literal: true

# rubocop:disable Metrics/MethodLength
module Phlex
  module Icons
    module Flag
      class Cl < Base
        def square
          svg(
            class: classes, xmlns: 'http://www.w3.org/2000/svg', viewbox: '0 0 512 512'
          ) do |s|
            s.defs do
              s.clipPath(id: 'cl-a') do
                s.path(fill_opacity: '.7', d: 'M0 0h708.7v708.7H0z')
              end
            end
            s.g(
              fill_rule: 'evenodd',
              clip_path: 'url(#cl-a)',
              transform: 'scale(.722)'
            ) do
              s.path(fill: '#fff', d: 'M354.3 0H1063v354.3H354.3z')
              s.path(fill: '#0039a6', d: 'M0 0h354.3v354.3H0z')
              s.path(
                fill: '#fff',
                d:
                  'm232.3 265.3-55-41.1-54.5 41.5 20.3-67.5-54.5-41.7 67.4-.6 21-67.3 21.3 67.2h67.5L211.4 198z'
              )
              s.path(fill: '#d52b1e', d: 'M0 354.3h1063v354.4H0z')
            end
          end
        end

        def rectangle
          svg(
            class: classes, xmlns: 'http://www.w3.org/2000/svg', viewbox: '0 0 640 480'
          ) do |s|
            s.defs do
              s.clipPath(id: 'cl-a') do
                s.path(fill_opacity: '.7', d: 'M0 0h682.7v512H0z')
              end
            end
            s.g(
              fill_rule: 'evenodd',
              clip_path: 'url(#cl-a)',
              transform: 'scale(.9375)'
            ) do
              s.path(fill: '#fff', d: 'M256 0h512v256H256z')
              s.path(fill: '#0039a6', d: 'M0 0h256v256H0z')
              s.path(
                fill: '#fff',
                d:
                  'M167.8 191.7 128.2 162l-39.5 30 14.7-48.8L64 113.1l48.7-.5L127.8 64l15.5 48.5 48.7.1-39.2 30.4z'
              )
              s.path(fill: '#d52b1e', d: 'M0 256h768v256H0z')
            end
          end
        end
      end
    end
  end
end
# rubocop:enable Metrics/MethodLength

Version data entries

25 entries across 25 versions & 2 rubygems

Version Path
phlex-icons-flag-0.17.0 lib/phlex/icons/flag/cl.rb
phlex-icons-0.17.0 lib/phlex/icons/flag/cl.rb
phlex-icons-flag-0.16.0 lib/phlex/icons/flag/cl.rb
phlex-icons-0.16.0 lib/phlex/icons/flag/cl.rb
phlex-icons-flag-0.15.0 lib/phlex/icons/flag/cl.rb
phlex-icons-0.15.0 lib/phlex/icons/flag/cl.rb
phlex-icons-flag-0.14.0 lib/phlex/icons/flag/cl.rb
phlex-icons-0.14.0 lib/phlex/icons/flag/cl.rb
phlex-icons-flag-0.13.0 lib/phlex/icons/flag/cl.rb
phlex-icons-0.13.0 lib/phlex/icons/flag/cl.rb
phlex-icons-0.12.0 lib/phlex/icons/flag/cl.rb
phlex-icons-flag-0.12.0 lib/phlex/icons/flag/cl.rb
phlex-icons-flag-0.11.0 lib/phlex/icons/flag/cl.rb
phlex-icons-0.11.0 lib/phlex/icons/flag/cl.rb
phlex-icons-0.10.0 lib/phlex/icons/flag/cl.rb
phlex-icons-flag-0.9.0 lib/phlex/icons/flag/cl.rb
phlex-icons-0.9.0 lib/phlex/icons/flag/cl.rb
phlex-icons-0.8.0 lib/phlex/icons/flag/cl.rb
phlex-icons-0.7.0 lib/phlex/icons/flag/cl.rb
phlex-icons-0.6.0 lib/phlex/icons/flag/cl.rb