Sha256: b59a1dd91288c8bbf4a9e93282f0cc28546b156b609f10129e4f8ee883133001

Contents?: true

Size: 1.75 KB

Versions: 25

Compression:

Stored size: 1.75 KB

Contents

# frozen_string_literal: true

# rubocop:disable Metrics/MethodLength
module Phlex
  module Icons
    module Flag
      class Ps < 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: 'ps-a') do
                s.path(fill_opacity: '.7', d: 'M237.1 0h493.5v493.5H237.1z')
              end
            end
            s.g(clip_path: 'url(#ps-a)', transform: 'translate(-246)scale(1.0375)') do
              s.g(fill_rule: 'evenodd', stroke_width: '1pt') do
                s.path(fill: '#000001', d: 'M0 0h987v164.5H0z')
                s.path(fill: '#fff', d: 'M0 164.5h987V329H0z')
                s.path(fill: '#090', d: 'M0 329h987v164.5H0z')
                s.path(fill: 'red', d: 'm0 493.5 493.5-246.8L0 0z')
              end
            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: 'ps-a') do
                s.path(fill_opacity: '.7', d: 'M-118 0h682.7v512H-118z')
              end
            end
            s.g(clip_path: 'url(#ps-a)', transform: 'translate(110.6)scale(.9375)') do
              s.g(fill_rule: 'evenodd', stroke_width: '1pt') do
                s.path(fill: '#000001', d: 'M-246 0H778v170.7H-246z')
                s.path(fill: '#fff', d: 'M-246 170.7H778v170.6H-246z')
                s.path(fill: '#090', d: 'M-246 341.3H778V512H-246z')
                s.path(fill: 'red', d: 'm-246 512 512-256L-246 0z')
              end
            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/ps.rb
phlex-icons-0.17.0 lib/phlex/icons/flag/ps.rb
phlex-icons-flag-0.16.0 lib/phlex/icons/flag/ps.rb
phlex-icons-0.16.0 lib/phlex/icons/flag/ps.rb
phlex-icons-flag-0.15.0 lib/phlex/icons/flag/ps.rb
phlex-icons-0.15.0 lib/phlex/icons/flag/ps.rb
phlex-icons-flag-0.14.0 lib/phlex/icons/flag/ps.rb
phlex-icons-0.14.0 lib/phlex/icons/flag/ps.rb
phlex-icons-flag-0.13.0 lib/phlex/icons/flag/ps.rb
phlex-icons-0.13.0 lib/phlex/icons/flag/ps.rb
phlex-icons-0.12.0 lib/phlex/icons/flag/ps.rb
phlex-icons-flag-0.12.0 lib/phlex/icons/flag/ps.rb
phlex-icons-flag-0.11.0 lib/phlex/icons/flag/ps.rb
phlex-icons-0.11.0 lib/phlex/icons/flag/ps.rb
phlex-icons-0.10.0 lib/phlex/icons/flag/ps.rb
phlex-icons-flag-0.9.0 lib/phlex/icons/flag/ps.rb
phlex-icons-0.9.0 lib/phlex/icons/flag/ps.rb
phlex-icons-0.8.0 lib/phlex/icons/flag/ps.rb
phlex-icons-0.7.0 lib/phlex/icons/flag/ps.rb
phlex-icons-0.6.0 lib/phlex/icons/flag/ps.rb