Skip to content

Commit

Permalink
container: fixed border and margin
Browse files Browse the repository at this point in the history
  • Loading branch information
Albert Gasset committed Jul 19, 2013
1 parent 32dc99f commit 96f2896
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions scripts/container.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,17 @@ define -> ->
element = jQuery '<div>'

do ->
properties = [
'font-family', 'font-size', 'line-height',
text_properties = ['font-family', 'font-size', 'line-height']
box_properties = [
'border', 'border-color', 'border-style', 'border-width'
'border-top', 'border-top-color', 'border-top-style', 'border-top-width'
'border-right', 'border-right-color', 'border-right-style', 'border-right-width'
'border-bottom', 'border-bottom-color', 'border-bottom-style', 'border-bottom-width'
'border-left', 'border-left-color', 'border-left-style', 'border-left-width'
'margin', 'margin-top', 'margin-right', 'margin-bottom', 'margin-left'
]
element.css prop, textarea.css prop for prop in properties
element.css prop, textarea.css prop for prop in text_properties
wrapper.css prop, textarea.css prop for prop in box_properties
wrapper.append(element).insertAfter(textarea).hide()

element: -> element.get 0
Expand Down

0 comments on commit 96f2896

Please sign in to comment.