adamhajari/spyre — pull request #1 by eric-czech (2014-11-06 22:00:40+00:00)
Title: adding css styles passed from spyre server to be set on doc ready

yao @adamhajari , I made a small change to be able to set generic css properties from the spyre server class.

I also worked with Mike to change some default styles so that relative sizing works better when you adjust the size of the input control box (things got wonky originally when you tried to make it bigger).

Anyways, given these changes you can pass something like this in the server definition to set arbitrary properties:

```
{
"title" : "Log Entry Frequency",
"styles" : {
'.left-panel' : {
'max-width' : '500px'
},
'.text_input' : {
'color' : '#4183c4'
}
},
"inputs": [
{ "input_type":'text',
"label": 'Log Path',
"value" : '/home/nbs/logs/java/T8_CRA_Artists-ARTIST_CRAWLER/production.log',
"variable_name": 'log_path',
"action_id" : "plot",
},
..........
```

Cool?