Class: TodoMvc
- Inherits:
-
Object
- Object
- TodoMvc
- Includes:
- Glimmer::Web::Component
- Defined in:
- lib/glimmer-dsl-web/samples/regular/todo_mvc.rb
Instance Attribute Summary
Attributes included from Glimmer::Web::Component
#args, #markup_root, #options, #parent
Instance Method Summary collapse
Methods included from Glimmer::Web::Component
add_component_namespaces_for, #add_observer, #attribute_setter, #can_add_observer?, #can_handle_observation_request?, component_namespaces, #content, for, #get_attribute, #handle_observation_request, #has_attribute?, #has_instance_method?, included, #initialize, interpretation_stack, #local_respond_to?, #method_missing, namespaces_for_class, #observer_registrations, #post_add_content, #post_initialize_child, #remove, #render, reset_component_namespaces, #respond_to_missing?, #set_attribute
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Glimmer::Web::Component
Instance Method Details
#todo_mvc_styles ⇒ Object
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 |
# File 'lib/glimmer-dsl-web/samples/regular/todo_mvc.rb', line 43 def todo_mvc_styles rule('body, button, html') { margin '0' padding '0' } rule('button') { _webkit_font_smoothing 'antialiased' _webkit_appearance 'none' appearance 'none' background 'none' border '0' color 'inherit' font_family 'inherit' font_size '100%' font_weight 'inherit' vertical_align 'baseline' } rule('.todoapp') { background '#fff' margin '130px 0 40px 0' position 'relative' box_shadow '0 2px 4px 0 rgba(0, 0, 0, 0.2), 0 25px 50px 0 rgba(0, 0, 0, 0.1)' } media('screen and (-webkit-min-device-pixel-ratio:0)') { rule('body') { font "14px 'Helvetica Neue', Helvetica, Arial, sans-serif" line_height '1.4em' background '#f5f5f5' color '#111111' min_width '230px' max_width '550px' margin '0 auto' _webkit_font_smoothing 'antialiased' font_weight '300' } } end |