From fab910523e1dff8f7d519fe5e4f061c617fd80ea 2015-02-25 22:48:02 From: Jonathan Frederic Date: 2015-02-25 22:48:02 Subject: [PATCH] Pad interact widgets. --- diff --git a/IPython/html/static/widgets/less/widgets.less b/IPython/html/static/widgets/less/widgets.less index 08a920e..42f3853 100644 --- a/IPython/html/static/widgets/less/widgets.less +++ b/IPython/html/static/widgets/less/widgets.less @@ -1,6 +1,13 @@ @widget-width: 350px; @widget-width-short: 150px; +// Pad interact widgets by default. +.widget-interact { + div, input { + padding: 2.5px; + } +} + .widget-area { /* LESS file that styles IPython notebook widgets and the area they sit in. diff --git a/IPython/html/widgets/interaction.py b/IPython/html/widgets/interaction.py index 76d63f5..b9e37de 100644 --- a/IPython/html/widgets/interaction.py +++ b/IPython/html/widgets/interaction.py @@ -181,7 +181,7 @@ def interactive(__interact_f, **kwargs): co = kwargs.pop('clear_output', True) manual = kwargs.pop('__manual', False) kwargs_widgets = [] - container = Box() + container = Box(_dom_classes=['widget-interact']) container.result = None container.args = [] container.kwargs = dict()