Sha256: 1c6b67311f26088d2cba7e76fe7e80b6f08ce8d8228515e35d966eecfa2b4ecb

Contents?: true

Size: 821 Bytes

Versions: 4

Compression:

Stored size: 821 Bytes

Contents

# Superclass for NewTodoInput and EditTodoInput with common styles
class TodoInput
  include Glimmer::Web::Component
  
  class << self
    def todo_input_styles
      r(component_element_selector) {
        position :relative
        margin 0
        width '100%'
        font_size 24
        font_family :inherit
        font_weight :inherit
        line_height 1.4.em
        color :inherit
        padding 6
        border '1px solid #999'
        box_shadow 'inset 0 -1px 5px 0 rgba(0, 0, 0, 0.2)'
        box_sizing 'border-box'
        _webkit_font_smoothing :antialiased
      }
      
      r("#{component_element_selector}::selection") {
        background :red
      }
      
      r("#{component_element_selector}:focus") {
        box_shadow '0 0 2px 2px #cf7d7d'
        outline 0
      }
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
glimmer-dsl-web-0.6.0 lib/glimmer-dsl-web/samples/regular/todo_mvc/views/todo_input.rb
glimmer-dsl-web-0.5.0 lib/glimmer-dsl-web/samples/regular/todo_mvc/views/todo_input.rb
glimmer-dsl-web-0.4.4 lib/glimmer-dsl-web/samples/regular/todo_mvc/views/todo_input.rb
glimmer-dsl-web-0.4.3 lib/glimmer-dsl-web/samples/regular/todo_mvc/views/todo_input.rb