Sha256: ed33c357639ac4dea9ca048abf6718628774fbdadc78622d60fbb971af154679

Contents?: true

Size: 1.69 KB

Versions: 18

Compression:

Stored size: 1.69 KB

Contents

# frozen_string_literal: true

# rubocop:disable Metrics/MethodLength
module Phlex
  module Icons
    module Flag
      class Sd < 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: 'sd-a') { s.path(fill_opacity: '.7', d: 'M0 0h496v496H0z') }
            end
            s.g(
              fill_rule: 'evenodd',
              stroke_width: '1pt',
              clip_path: 'url(#sd-a)',
              transform: 'scale(1.0321)'
            ) do
              s.path(fill: '#000001', d: 'M0 330.7h992.1v165.4H0z')
              s.path(fill: '#fff', d: 'M0 165.3h992.1v165.4H0z')
              s.path(fill: 'red', d: 'M0 0h992.9v165.4H0z')
              s.path(fill: '#009a00', d: 'M0 0v496l330.7-248z')
            end
          end
        end

        def rectangle
          svg(
            **attrs, xmlns: 'http://www.w3.org/2000/svg', viewbox: '0 0 640 480'
          ) do |s|
            s.defs do
              s.clipPath(id: 'sd-a') do
                s.path(fill_opacity: '.7', d: 'M0 0h682.7v512H0z')
              end
            end
            s.g(
              fill_rule: 'evenodd',
              stroke_width: '1pt',
              clip_path: 'url(#sd-a)',
              transform: 'scale(.9375)'
            ) do
              s.path(fill: '#000001', d: 'M0 341.3h1024V512H0z')
              s.path(fill: '#fff', d: 'M0 170.6h1024v170.7H0z')
              s.path(fill: 'red', d: 'M0 0h1024.8v170.7H0z')
              s.path(fill: '#009a00', d: 'M0 0v512l341.3-256z')
            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/sd.rb
phlex-icons-1.8.0 lib/phlex/icons/flag/sd.rb
phlex-icons-1.7.0 lib/phlex/icons/flag/sd.rb
phlex-icons-flag-1.7.0 lib/phlex/icons/flag/sd.rb
phlex-icons-flag-1.6.0 lib/phlex/icons/flag/sd.rb
phlex-icons-1.6.0 lib/phlex/icons/flag/sd.rb
phlex-icons-flag-1.5.0 lib/phlex/icons/flag/sd.rb
phlex-icons-1.5.0 lib/phlex/icons/flag/sd.rb
phlex-icons-flag-1.4.0 lib/phlex/icons/flag/sd.rb
phlex-icons-1.4.0 lib/phlex/icons/flag/sd.rb
phlex-icons-1.3.0 lib/phlex/icons/flag/sd.rb
phlex-icons-flag-1.3.0 lib/phlex/icons/flag/sd.rb
phlex-icons-1.2.0 lib/phlex/icons/flag/sd.rb
phlex-icons-flag-1.2.0 lib/phlex/icons/flag/sd.rb
phlex-icons-flag-1.1.0 lib/phlex/icons/flag/sd.rb
phlex-icons-1.1.0 lib/phlex/icons/flag/sd.rb
phlex-icons-flag-1.0.0 lib/phlex/icons/flag/sd.rb
phlex-icons-1.0.0 lib/phlex/icons/flag/sd.rb