Sha256: cba8feb2207d70f5fe82d7cebde11a46b2f0935166cbbae8c59a78a930a3cc07

Contents?: true

Size: 652 Bytes

Versions: 3

Compression:

Stored size: 652 Bytes

Contents

# frozen_string_literal: true

require_relative 'icon'

module Fatcow
  module Helpers
    def fci(name, status = nil)
      Fatcow::Icon.new(self, name, status)
    end

    def fatcow_style_tag
      content_tag :style do <<~CSS
          .fatcow-icon {
              display: inline-block;
              position: relative;
          }
          
          .fatcow-icon__bullet {
            position: absolute;
            top: 0;
            left: 0;
            transform: translate(25%, 25%);
          }
            
          .fatcow-icon__bullet--pre-aligned {
            transform: none;
          }
        CSS
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fatcow-0.1.2 lib/fatcow/helpers.rb
fatcow-0.1.1 lib/fatcow/helpers.rb
fatcow-0.1.0 lib/fatcow/helpers.rb