diff --git a/packages/controls/css/lumino.css b/packages/controls/css/lumino.css index 1831b12e25..1cfd1194ce 100644 --- a/packages/controls/css/lumino.css +++ b/packages/controls/css/lumino.css @@ -64,8 +64,9 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* */ -.jupyter-widgets.widget-tab > .p-TabBar, /* */ -.jupyter-widgets.jupyter-widget-tab > .p-TabBar { +.jupyter-widgets.widget-tab > .p-TabBar, /* */ +/* */.jupyter-widgets.jupyter-widget-tab > .p-TabBar, /* */ +.jupyter-widgets.jupyter-widget-tab > .lm-TabBar { display: flex; -webkit-user-select: none; -moz-user-select: none; @@ -74,20 +75,23 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. } /* */ -.jupyter-widgets.widget-tab > .p-TabBar[data-orientation='horizontal'], /* */ -.jupyter-widgets.jupyter-widget-tab > .p-TabBar[data-orientation='horizontal'] { +.jupyter-widgets.widget-tab > .p-TabBar[data-orientation='horizontal'], /* */ +/* */.jupyter-widgets.jupyter-widget-tab > .p-TabBar[data-orientation='horizontal'], /* */ +.jupyter-widgets.jupyter-widget-tab > .lm-TabBar[data-orientation='horizontal'] { flex-direction: row; } /* */ -.jupyter-widgets.widget-tab > .p-TabBar[data-orientation='vertical'], /* */ -.jupyter-widgets.jupyter-widget-tab > .p-TabBar[data-orientation='vertical'] { +.jupyter-widgets.widget-tab > .p-TabBar[data-orientation='vertical'], /* */ +/* */.jupyter-widgets.jupyter-widget-tab > .p-TabBar[data-orientation='vertical'], /* */ +.jupyter-widgets.jupyter-widget-tab > .lm-TabBar[data-orientation='vertical'] { flex-direction: column; } /* */ -.jupyter-widgets.widget-tab > .p-TabBar > .p-TabBar-content, /* */ -.jupyter-widgets.jupyter-widget-tab > .p-TabBar > .p-TabBar-content { +.jupyter-widgets.widget-tab > .p-TabBar > .p-TabBar-content, /* */ +/* */.jupyter-widgets.jupyter-widget-tab > .p-TabBar > .p-TabBar-content, /* */ +.jupyter-widgets.jupyter-widget-tab > .lm-TabBar > .lm-TabBar-content { margin: 0; padding: 0; display: flex; @@ -99,10 +103,15 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .jupyter-widgets.widget-tab > .p-TabBar[data-orientation='horizontal'] > .p-TabBar-content, +/* */ /* */ .jupyter-widgets.jupyter-widget-tab - > .p-TabBar[data-orientation='horizontal'] - > .p-TabBar-content { +> .p-TabBar[data-orientation='horizontal'] +> .p-TabBar-content, +/* */ +.jupyter-widgets.jupyter-widget-tab + > .lm-TabBar[data-orientation='horizontal'] + > .lm-TabBar-content { flex-direction: row; } @@ -110,16 +119,22 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .jupyter-widgets.widget-tab > .p-TabBar[data-orientation='vertical'] > .p-TabBar-content, +/* */ /* */ .jupyter-widgets.jupyter-widget-tab - > .p-TabBar[data-orientation='vertical'] - > .p-TabBar-content { +> .p-TabBar[data-orientation='vertical'] +> .p-TabBar-content, +/* */ +.jupyter-widgets.jupyter-widget-tab + > .lm-TabBar[data-orientation='vertical'] + > .lm-TabBar-content { flex-direction: column; } /* */ -.jupyter-widgets.widget-tab > .p-TabBar .p-TabBar-tab, /* */ -.jupyter-widgets.jupyter-widget-tab > .p-TabBar .p-TabBar-tab { +.jupyter-widgets.widget-tab > .p-TabBar .p-TabBar-tab, /* */ +/* */.jupyter-widgets.jupyter-widget-tab > .p-TabBar .p-TabBar-tab, /* */ +.jupyter-widgets.jupyter-widget-tab > .lm-TabBar .lm-TabBar-tab { display: flex; flex-direction: row; box-sizing: border-box; @@ -127,30 +142,35 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. } /* */ -.jupyter-widgets.widget-tab > .p-TabBar .p-TabBar-tabIcon, /* */ -/* */ .jupyter-widgets.widget-tab > .p-TabBar .p-TabBar-tabCloseIcon, /* */ -.jupyter-widgets.jupyter-widget-tab > .p-TabBar .p-TabBar-tabIcon, -.jupyter-widgets.jupyter-widget-tab > .p-TabBar .p-TabBar-tabCloseIcon { +.jupyter-widgets.widget-tab > .p-TabBar .p-TabBar-tabIcon, /* */ +/* */ .jupyter-widgets.widget-tab > .p-TabBar .p-TabBar-tabCloseIcon, /* */ +/* */.jupyter-widgets.jupyter-widget-tab > .p-TabBar .p-TabBar-tabIcon, /* */ +/* */ .jupyter-widgets.jupyter-widget-tab > .p-TabBar .p-TabBar-tabCloseIcon, /* */ +.jupyter-widgets.jupyter-widget-tab > .lm-TabBar .lm-TabBar-tabIcon, +.jupyter-widgets.jupyter-widget-tab > .lm-TabBar .lm-TabBar-tabCloseIcon { flex: 0 0 auto; } /* */ -.jupyter-widgets.widget-tab > .p-TabBar .p-TabBar-tabLabel, /* */ -.jupyter-widgets.jupyter-widget-tab > .p-TabBar .p-TabBar-tabLabel { +.jupyter-widgets.widget-tab > .p-TabBar .p-TabBar-tabLabel, /* */ +/* */.jupyter-widgets.jupyter-widget-tab > .p-TabBar .p-TabBar-tabLabel, /* */ +.jupyter-widgets.jupyter-widget-tab > .lm-TabBar .lm-TabBar-tabLabel { flex: 1 1 auto; overflow: hidden; white-space: nowrap; } /* */ -.jupyter-widgets.widget-tab > .p-TabBar .p-TabBar-tab.p-mod-hidden, /* */ -.jupyter-widgets.jupyter-widget-tab > .p-TabBar .p-TabBar-tab.p-mod-hidden { +.jupyter-widgets.widget-tab > .p-TabBar .p-TabBar-tab.p-mod-hidden, /* */ +/* */.jupyter-widgets.jupyter-widget-tab > .p-TabBar .p-TabBar-tab.p-mod-hidden, /* */ +.jupyter-widgets.jupyter-widget-tab > .lm-TabBar .lm-TabBar-tab.lm-mod-hidden { display: none !important; } /* */ -.jupyter-widgets.widget-tab > .p-TabBar.p-mod-dragging .p-TabBar-tab, /* */ -.jupyter-widgets.jupyter-widget-tab > .p-TabBar.p-mod-dragging .p-TabBar-tab { +.jupyter-widgets.widget-tab > .p-TabBar.p-mod-dragging .p-TabBar-tab, /* */ +/* */.jupyter-widgets.jupyter-widget-tab > .p-TabBar.p-mod-dragging .p-TabBar-tab, /* */ +.jupyter-widgets.jupyter-widget-tab > .lm-TabBar.lm-mod-dragging .lm-TabBar-tab { position: relative; } @@ -158,10 +178,15 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .jupyter-widgets.widget-tab > .p-TabBar.p-mod-dragging[data-orientation='horizontal'] .p-TabBar-tab, +/* */ /* */ .jupyter-widgets.jupyter-widget-tab > .p-TabBar.p-mod-dragging[data-orientation='horizontal'] - .p-TabBar-tab { + .p-TabBar-tab, +/* */ +.jupyter-widgets.jupyter-widget-tab + > .lm-TabBar.lm-mod-dragging[data-orientation='horizontal'] + .lm-TabBar-tab { left: 0; transition: left 150ms ease; } @@ -170,10 +195,15 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .jupyter-widgets.widget-tab > .p-TabBar.p-mod-dragging[data-orientation='vertical'] .p-TabBar-tab, +/* */ /* */ .jupyter-widgets.jupyter-widget-tab - > .p-TabBar.p-mod-dragging[data-orientation='vertical'] - .p-TabBar-tab { +> .p-TabBar.p-mod-dragging[data-orientation='vertical'] +.p-TabBar-tab, +/* */ +.jupyter-widgets.jupyter-widget-tab + > .lm-TabBar.lm-mod-dragging[data-orientation='vertical'] + .lm-TabBar-tab { top: 0; transition: top 150ms ease; } @@ -182,10 +212,15 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .jupyter-widgets.widget-tab > .p-TabBar.p-mod-dragging .p-TabBar-tab.p-mod-dragging, - /* */ +/* */ +/* */ .jupyter-widgets.jupyter-widget-tab - > .p-TabBar.p-mod-dragging - .p-TabBar-tab.p-mod-dragging { +> .p-TabBar.p-mod-dragging +.p-TabBar-tab.p-mod-dragging, +/* */ +.jupyter-widgets.jupyter-widget-tab + > .lm-TabBar.lm-mod-dragging + .lm-TabBar-tab.lm-mod-dragging { transition: none; } diff --git a/packages/controls/css/widgets-base.css b/packages/controls/css/widgets-base.css index 45fdfb1240..79bc024695 100644 --- a/packages/controls/css/widgets-base.css +++ b/packages/controls/css/widgets-base.css @@ -81,7 +81,7 @@ /* vbox and hbox */ /* */ -.widget-inline-hbox, /* */ +.widget-inline-hbox, /* */ .jupyter-widget-inline-hbox { /* Horizontal widgets */ box-sizing: border-box; @@ -91,7 +91,7 @@ } /* */ -.widget-inline-vbox, /* */ +.widget-inline-vbox, /* */ .jupyter-widget-inline-vbox { /* Vertical Widgets */ box-sizing: border-box; @@ -101,7 +101,7 @@ } /* */ -.widget-box, /* */ +.widget-box, /* */ .jupyter-widget-box { box-sizing: border-box; display: flex; @@ -110,7 +110,7 @@ } /* */ -.widget-gridbox, /* */ +.widget-gridbox, /* */ .jupyter-widget-gridbox { box-sizing: border-box; display: grid; @@ -119,13 +119,13 @@ } /* */ -.widget-hbox, /* */ +.widget-hbox, /* */ .jupyter-widget-hbox { flex-direction: row; } /* */ -.widget-vbox, /* */ +.widget-vbox, /* */ .jupyter-widget-vbox { flex-direction: column; } @@ -422,9 +422,9 @@ /* Widget Button, Widget Toggle Button, Widget Upload */ /* */ -.widget-button, /* */ -/* */ .widget-toggle-button, /* */ -/* */ .widget-upload, /* */ +.widget-button, /* */ +/* */ .widget-toggle-button, /* */ +/* */ .widget-upload, /* */ .jupyter-widget-button, .jupyter-widget-toggle-button, .jupyter-widget-upload { @@ -439,7 +439,7 @@ } /* */ -.widget-label-basic, /* */ +.widget-label-basic, /* */ .jupyter-widget-label-basic { /* Basic Label */ color: var(--jp-widgets-label-color); @@ -451,7 +451,7 @@ } /* */ -.widget-label, /* */ +.widget-label, /* */ .jupyter-widget-label { /* Label */ color: var(--jp-widgets-label-color); @@ -463,7 +463,7 @@ } /* */ -.widget-inline-hbox .widget-label, /* */ +.widget-inline-hbox .widget-label, /* */ .jupyter-widget-inline-hbox .jupyter-widget-label { /* Horizontal Widget Label */ color: var(--jp-widgets-label-color); @@ -474,7 +474,7 @@ } /* */ -.widget-inline-vbox .widget-label, /* */ +.widget-inline-vbox .widget-label, /* */ .jupyter-widget-inline-vbox .jupyter-widget-label { /* Vertical Widget Label */ color: var(--jp-widgets-label-color); @@ -485,7 +485,7 @@ /* Widget Readout Styling */ /* */ -.widget-readout, /* */ +.widget-readout, /* */ .jupyter-widget-readout { color: var(--jp-widgets-readout-color); font-size: var(--jp-widgets-font-size); @@ -497,7 +497,7 @@ } /* */ -.widget-readout.overflow, /* */ +.widget-readout.overflow, /* */ .jupyter-widget-readout.overflow { /* Overflowing Readout */ @@ -517,7 +517,7 @@ } /* */ -.widget-inline-hbox .widget-readout, /* */ +.widget-inline-hbox .widget-readout, /* */ .jupyter-widget-inline-hbox .jupyter-widget-readout { /* Horizontal Readout */ text-align: center; @@ -527,7 +527,7 @@ } /* */ -.widget-inline-vbox .widget-readout, /* */ +.widget-inline-vbox .widget-readout, /* */ .jupyter-widget-inline-vbox .jupyter-widget-readout { /* Vertical Readout */ margin-top: var(--jp-widgets-inline-margin); @@ -538,7 +538,7 @@ /* Widget Checkbox Styling */ /* */ -.widget-checkbox, /* */ +.widget-checkbox, /* */ .jupyter-widget-checkbox { width: var(--jp-widgets-inline-width); height: var(--jp-widgets-inline-height); @@ -546,7 +546,7 @@ } /* */ -.widget-checkbox input[type='checkbox'], /* */ +.widget-checkbox input[type='checkbox'], /* */ .jupyter-widget-checkbox input[type='checkbox'] { margin: 0px calc(var(--jp-widgets-inline-margin) * 2) 0px 0px; line-height: var(--jp-widgets-inline-height); @@ -559,7 +559,7 @@ /* Widget Valid Styling */ /* */ -.widget-valid, /* */ +.widget-valid, /* */ .jupyter-widget-valid { height: var(--jp-widgets-inline-height); line-height: var(--jp-widgets-inline-height); @@ -568,7 +568,7 @@ } /* */ -.widget-valid i, /* */ +.widget-valid i, /* */ .jupyter-widget-valid i { line-height: var(--jp-widgets-inline-height); margin-right: var(--jp-widgets-inline-margin); @@ -576,19 +576,19 @@ } /* */ -.widget-valid.mod-valid i, /* */ +.widget-valid.mod-valid i, /* */ .jupyter-widget-valid.mod-valid i { color: green; } /* */ -.widget-valid.mod-invalid i, /* */ +.widget-valid.mod-invalid i, /* */ .jupyter-widget-valid.mod-invalid i { color: red; } /* */ -.widget-valid.mod-valid .widget-valid-readout, /* */ +.widget-valid.mod-valid .widget-valid-readout, /* */ .jupyter-widget-valid.mod-valid .jupyter-widget-valid-readout { display: none; } @@ -596,17 +596,17 @@ /* Widget Text and TextArea Styling */ /* */ -.widget-textarea, /* */ -/* */ .widget-text, /* */ +.widget-textarea, /* */ +/* */ .widget-text, /* */ .jupyter-widget-textarea, .jupyter-widget-text { width: var(--jp-widgets-inline-width); } /* */ -.widget-text input[type='text'], /* */ -/* */ .widget-text input[type='number'], /* */ -/* */ .widget-text input[type='password'], /* */ +.widget-text input[type='text'], /* */ +/* */ .widget-text input[type='number'], /* */ +/* */ .widget-text input[type='password'], /* */ .jupyter-widget-text input[type='text'], .jupyter-widget-text input[type='number'], .jupyter-widget-text input[type='password'] { @@ -615,10 +615,10 @@ } /* */ -.widget-text input[type='text']:disabled, /* */ -/* */ .widget-text input[type='number']:disabled, /* */ -/* */ .widget-text input[type='password']:disabled, /* */ -/* */ .widget-textarea textarea:disabled, /* */ +.widget-text input[type='text']:disabled, /* */ +/* */ .widget-text input[type='number']:disabled, /* */ +/* */ .widget-text input[type='password']:disabled, /* */ +/* */ .widget-textarea textarea:disabled, /* */ .jupyter-widget-text input[type='text']:disabled, .jupyter-widget-text input[type='number']:disabled, .jupyter-widget-text input[type='password']:disabled, @@ -627,10 +627,10 @@ } /* */ -.widget-text input[type='text'], /* */ -/* */ .widget-text input[type='number'], /* */ -/* */ .widget-text input[type='password'], /* */ -/* */ .widget-textarea textarea, /* */ +.widget-text input[type='text'], /* */ +/* */ .widget-text input[type='number'], /* */ +/* */ .widget-text input[type='password'], /* */ +/* */ .widget-textarea textarea, /* */ .jupyter-widget-text input[type='text'], .jupyter-widget-text input[type='number'], .jupyter-widget-text input[type='password'], @@ -648,9 +648,9 @@ } /* */ -.widget-text input[type='text'], /* */ -/* */ .widget-text input[type='password'], /* */ -/* */ .widget-textarea textarea, /* */ +.widget-text input[type='text'], /* */ +/* */ .widget-text input[type='password'], /* */ +/* */ .widget-textarea textarea, /* */ .jupyter-widget-text input[type='text'], .jupyter-widget-text input[type='password'], .jupyter-widget-textarea textarea { @@ -659,22 +659,22 @@ } /* */ -.widget-text input[type='number'], /* */ +.widget-text input[type='number'], /* */ .jupyter-widget-text input[type='number'] { padding: var(--jp-widgets-input-padding) 0 var(--jp-widgets-input-padding) calc(var(--jp-widgets-input-padding) * 2); } /* */ -.widget-textarea textarea, /* */ +.widget-textarea textarea, /* */ .jupyter-widget-textarea textarea { height: inherit; width: inherit; } /* */ -.widget-text input:focus, /* */ -/* */ .widget-textarea textarea:focus, /* */ +.widget-text input:focus, /* */ +/* */ .widget-textarea textarea:focus, /* */ .jupyter-widget-text input:focus, .jupyter-widget-textarea textarea:focus { border-color: var(--jp-widgets-input-focus-border-color); @@ -682,7 +682,7 @@ /* Horizontal Slider */ /* */ -.widget-hslider, /* */ +.widget-hslider, /* */ .jupyter-widget-hslider { width: var(--jp-widgets-inline-width); height: var(--jp-widgets-inline-height); @@ -695,13 +695,13 @@ } /* */ -.widgets-slider .slider-container, /* */ +.widgets-slider .slider-container, /* */ .jupyter-widgets-slider .slider-container { overflow: visible; } /* */ -.widget-hslider .slider-container, /* */ +.widget-hslider .slider-container, /* */ .jupyter-widget-hslider .slider-container { margin-left: calc( var(--jp-widgets-slider-handle-size) / 2 - 2 * @@ -717,14 +717,14 @@ /* Vertical Slider */ /* */ -.widget-vbox .widget-label, /* */ +.widget-vbox .widget-label, /* */ .jupyter-widget-vbox .jupyter-widget-label { height: var(--jp-widgets-inline-height); line-height: var(--jp-widgets-inline-height); } /* */ -.widget-vslider, /* */ +.widget-vslider, /* */ .jupyter-widget-vslider { /* Vertical Slider */ height: var(--jp-widgets-vertical-height); @@ -732,7 +732,7 @@ } /* */ -.widget-vslider .slider-container, /* */ +.widget-vslider .slider-container, /* */ .jupyter-widget-vslider .slider-container { flex: 1 1 var(--jp-widgets-inline-width-short); margin-left: auto; @@ -792,7 +792,7 @@ /* Horisontal Progress */ /* */ -.widget-hprogress, /* */ +.widget-hprogress, /* */ .jupyter-widget-hprogress { /* Progress Bar */ height: var(--jp-widgets-inline-height); @@ -802,7 +802,7 @@ } /* */ -.widget-hprogress .progress, /* */ +.widget-hprogress .progress, /* */ .jupyter-widget-hprogress .progress { flex-grow: 1; margin-top: var(--jp-widgets-input-padding); @@ -815,14 +815,14 @@ /* Vertical Progress */ /* */ -.widget-vprogress, /* */ +.widget-vprogress, /* */ .jupyter-widget-vprogress { height: var(--jp-widgets-vertical-height); width: var(--jp-widgets-inline-width-tiny); } /* */ -.widget-vprogress .progress, /* */ +.widget-vprogress .progress, /* */ .jupyter-widget-vprogress .progress { flex-grow: 1; width: var(--jp-widgets-progress-thickness); @@ -834,7 +834,7 @@ /* Select Widget Styling */ /* */ -.widget-dropdown, /* */ +.widget-dropdown, /* */ .jupyter-widget-dropdown { height: var(--jp-widgets-inline-height); width: var(--jp-widgets-inline-width); @@ -842,7 +842,7 @@ } /* */ -.widget-dropdown > select, /* */ +.widget-dropdown > select, /* */ .jupyter-widget-dropdown > select { padding-right: 20px; border: var(--jp-widgets-input-border-width) solid @@ -868,13 +868,13 @@ background-image: var(--jp-widgets-dropdown-arrow); } /* */ -.widget-dropdown > select:focus, /* */ +.widget-dropdown > select:focus, /* */ .jupyter-widget-dropdown > select:focus { border-color: var(--jp-widgets-input-focus-border-color); } /* */ -.widget-dropdown > select:disabled, /* */ +.widget-dropdown > select:disabled, /* */ .jupyter-widget-dropdown > select:disabled { opacity: var(--jp-widgets-disabled-opacity); } @@ -882,7 +882,7 @@ /* To disable the dotted border in Firefox around select controls. See http://stackoverflow.com/a/18853002 */ /* */ -.widget-dropdown > select:-moz-focusring, /* */ +.widget-dropdown > select:-moz-focusring, /* */ .jupyter-widget-dropdown > select:-moz-focusring { color: transparent; text-shadow: 0 0 0 #000; @@ -891,7 +891,7 @@ /* Select and SelectMultiple */ /* */ -.widget-select, /* */ +.widget-select, /* */ .jupyter-widget-select { width: var(--jp-widgets-inline-width); line-height: var(--jp-widgets-inline-height); @@ -903,7 +903,7 @@ } /* */ -.widget-select > select, /* */ +.widget-select > select, /* */ .jupyter-widget-select > select { border: var(--jp-widgets-input-border-width) solid var(--jp-widgets-input-border-color); @@ -922,7 +922,7 @@ } /* */ -.widget-select > select:focus, /* */ +.widget-select > select:focus, /* */ .jupyter-widget-select > select:focus { border-color: var(--jp-widgets-input-focus-border-color); } @@ -943,20 +943,20 @@ /* Toggle Buttons Styling */ /* */ -.widget-toggle-buttons, /* */ +.widget-toggle-buttons, /* */ .jupyter-widget-toggle-buttons { line-height: var(--jp-widgets-inline-height); } /* */ -.widget-toggle-buttons .widget-toggle-button, /* */ +.widget-toggle-buttons .widget-toggle-button, /* */ .jupyter-widget-toggle-buttons .jupyter-widget-toggle-button { margin-left: var(--jp-widgets-margin); margin-right: var(--jp-widgets-margin); } /* */ -.widget-toggle-buttons .jupyter-button:disabled, /* */ +.widget-toggle-buttons .jupyter-button:disabled, /* */ .jupyter-widget-toggle-buttons .jupyter-button:disabled { opacity: var(--jp-widgets-disabled-opacity); } @@ -964,14 +964,14 @@ /* Radio Buttons Styling */ /* */ -.widget-radio, /* */ +.widget-radio, /* */ .jupyter-widget-radio { width: var(--jp-widgets-inline-width); line-height: var(--jp-widgets-inline-height); } /* */ -.widget-radio-box, /* */ +.widget-radio-box, /* */ .jupyter-widget-radio-box { display: flex; flex-direction: column; @@ -982,7 +982,7 @@ } /* */ -.widget-radio-box label, /* */ +.widget-radio-box label, /* */ .jupyter-widget-radio-box label { height: var(--jp-widgets-radio-item-height); line-height: var(--jp-widgets-radio-item-height); @@ -990,7 +990,7 @@ } /* */ -.widget-radio-box input, /* */ +.widget-radio-box input, /* */ .jupyter-widget-radio-box input { height: var(--jp-widgets-radio-item-height); line-height: var(--jp-widgets-radio-item-height); @@ -1001,7 +1001,7 @@ /* Color Picker Styling */ /* */ -.widget-colorpicker, /* */ +.widget-colorpicker, /* */ .jupyter-widget-colorpicker { width: var(--jp-widgets-inline-width); height: var(--jp-widgets-inline-height); @@ -1009,7 +1009,7 @@ } /* */ -.widget-colorpicker > .widget-colorpicker-input, /* */ +.widget-colorpicker > .widget-colorpicker-input, /* */ .jupyter-widget-colorpicker > .jupyter-widget-colorpicker-input { flex-grow: 1; flex-shrink: 1; @@ -1017,7 +1017,7 @@ } /* */ -.widget-colorpicker input[type='color'], /* */ +.widget-colorpicker input[type='color'], /* */ .jupyter-widget-colorpicker input[type='color'] { width: var(--jp-widgets-inline-height); height: var(--jp-widgets-inline-height); @@ -1035,22 +1035,22 @@ } /* */ -.widget-colorpicker.concise input[type='color'], /* */ +.widget-colorpicker.concise input[type='color'], /* */ .jupyter-widget-colorpicker.concise input[type='color'] { border-left: var(--jp-widgets-input-border-width) solid var(--jp-widgets-input-border-color); } /* */ -.widget-colorpicker input[type='color']:focus, /* */ -/* */ .widget-colorpicker input[type='text']:focus, /* */ +.widget-colorpicker input[type='color']:focus, /* */ +/* */ .widget-colorpicker input[type='text']:focus, /* */ .jupyter-widget-colorpicker input[type='color']:focus, .jupyter-widget-colorpicker input[type='text']:focus { border-color: var(--jp-widgets-input-focus-border-color); } /* */ -.widget-colorpicker input[type='text'], /* */ +.widget-colorpicker input[type='text'], /* */ .jupyter-widget-colorpicker input[type='text'] { flex-grow: 1; outline: none !important; @@ -1069,7 +1069,7 @@ } /* */ -.widget-colorpicker input[type='text']:disabled, /* */ +.widget-colorpicker input[type='text']:disabled, /* */ .jupyter-widget-colorpicker input[type='text']:disabled { opacity: var(--jp-widgets-disabled-opacity); } @@ -1077,7 +1077,7 @@ /* Date Picker Styling */ /* */ -.widget-datepicker, /* */ +.widget-datepicker, /* */ .jupyter-widget-datepicker { width: var(--jp-widgets-inline-width); height: var(--jp-widgets-inline-height); @@ -1085,7 +1085,7 @@ } /* */ -.widget-datepicker input[type='date'], /* */ +.widget-datepicker input[type='date'], /* */ .jupyter-widget-datepicker input[type='date'] { flex-grow: 1; flex-shrink: 1; @@ -1103,19 +1103,19 @@ } /* */ -.widget-datepicker input[type='date']:focus, /* */ +.widget-datepicker input[type='date']:focus, /* */ .jupyter-widget-datepicker input[type='date']:focus { border-color: var(--jp-widgets-input-focus-border-color); } /* */ -.widget-datepicker input[type='date']:invalid, /* */ +.widget-datepicker input[type='date']:invalid, /* */ .jupyter-widget-datepicker input[type='date']:invalid { border-color: var(--jp-warn-color1); } /* */ -.widget-datepicker input[type='date']:disabled, /* */ +.widget-datepicker input[type='date']:disabled, /* */ .jupyter-widget-datepicker input[type='date']:disabled { opacity: var(--jp-widgets-disabled-opacity); } @@ -1123,7 +1123,7 @@ /* Play Widget */ /* */ -.widget-play, /* */ +.widget-play, /* */ .jupyter-widget-play { width: var(--jp-widgets-inline-width-short); display: flex; @@ -1131,14 +1131,14 @@ } /* */ -.widget-play .jupyter-button, /* */ +.widget-play .jupyter-button, /* */ .jupyter-widget-play .jupyter-button { flex-grow: 1; height: auto; } /* */ -.widget-play .jupyter-button:disabled, /* */ +.widget-play .jupyter-button:disabled, /* */ .jupyter-widget-play .jupyter-button:disabled { opacity: var(--jp-widgets-disabled-opacity); } @@ -1146,23 +1146,25 @@ /* Tab Widget */ /* */ -.jupyter-widgets.widget-tab, /* */ +.jupyter-widgets.widget-tab, /* */ .jupyter-widgets.jupyter-widget-tab { display: flex; flex-direction: column; } /* */ -.jupyter-widgets.widget-tab > .p-TabBar, /* */ -.jupyter-widgets.jupyter-widget-tab > .p-TabBar { +.jupyter-widgets.widget-tab > .p-TabBar, /* */ +/* */.jupyter-widgets.jupyter-widget-tab > .p-TabBar, /* */ +.jupyter-widgets.jupyter-widget-tab > .lm-TabBar { /* Necessary so that a tab can be shifted down to overlay the border of the box below. */ overflow-x: visible; overflow-y: visible; } /* */ -.jupyter-widgets.widget-tab > .p-TabBar > .p-TabBar-content, /* */ -.jupyter-widgets.jupyter-widget-tab > .p-TabBar > .p-TabBar-content { +.jupyter-widgets.widget-tab > .p-TabBar > .p-TabBar-content, /* */ +/* */.jupyter-widgets.jupyter-widget-tab > .p-TabBar > .p-TabBar-content, /* */ +.jupyter-widgets.jupyter-widget-tab > .lm-TabBar > .lm-TabBar-content { /* Make sure that the tab grows from bottom up */ align-items: flex-end; min-width: 0; @@ -1170,7 +1172,7 @@ } /* */ -.jupyter-widgets.widget-tab > .widget-tab-contents, /* */ +.jupyter-widgets.widget-tab > .widget-tab-contents, /* */ .jupyter-widgets.jupyter-widget-tab > .widget-tab-contents { width: 100%; box-sizing: border-box; @@ -1184,8 +1186,9 @@ } /* */ -.jupyter-widgets.widget-tab > .p-TabBar, /* */ -.jupyter-widgets.jupyter-widget-tab > .p-TabBar { +.jupyter-widgets.widget-tab > .p-TabBar, /* */ +/* */.jupyter-widgets.jupyter-widget-tab > .p-TabBar, /* */ +.jupyter-widgets.jupyter-widget-tab > .lm-TabBar { font: var(--jp-widgets-font-size) Helvetica, Arial, sans-serif; min-height: calc( var(--jp-widgets-horizontal-tab-height) + var(--jp-border-width) @@ -1193,8 +1196,9 @@ } /* */ -.jupyter-widgets.widget-tab > .p-TabBar .p-TabBar-tab, /* */ -.jupyter-widgets.jupyter-widget-tab > .p-TabBar .p-TabBar-tab { +.jupyter-widgets.widget-tab > .p-TabBar .p-TabBar-tab, /* */ +/* */.jupyter-widgets.jupyter-widget-tab > .p-TabBar .p-TabBar-tab, /* */ +.jupyter-widgets.jupyter-widget-tab > .lm-TabBar .lm-TabBar-tab { flex: 0 1 var(--jp-widgets-horizontal-tab-width); min-width: 35px; min-height: calc( @@ -1211,8 +1215,9 @@ } /* */ -.jupyter-widgets.widget-tab > .p-TabBar .p-TabBar-tab.p-mod-current, /* */ -.jupyter-widgets.jupyter-widget-tab > .p-TabBar .p-TabBar-tab.p-mod-current { +.jupyter-widgets.widget-tab > .p-TabBar .p-TabBar-tab.p-mod-current, /* */ +/* */.jupyter-widgets.jupyter-widget-tab > .p-TabBar .p-TabBar-tab.p-mod-current, /* */ +.jupyter-widgets.jupyter-widget-tab > .lm-TabBar .lm-TabBar-tab.lm-mod-current { color: var(--jp-ui-font-color0); /* We want the background to match the tab content background */ background: var(--jp-layout-color1); @@ -1224,8 +1229,9 @@ } /* */ -.jupyter-widgets.widget-tab > .p-TabBar .p-TabBar-tab.p-mod-current:before, /* */ -.jupyter-widgets.jupyter-widget-tab > .p-TabBar .p-TabBar-tab.p-mod-current:before { +.jupyter-widgets.widget-tab > .p-TabBar .p-TabBar-tab.p-mod-current:before, /* */ +/* */.jupyter-widgets.jupyter-widget-tab > .p-TabBar .p-TabBar-tab.p-mod-current:before, /* */ +.jupyter-widgets.jupyter-widget-tab > .lm-TabBar .lm-TabBar-tab.lm-mod-current:before { position: absolute; top: calc(-1 * var(--jp-border-width)); left: calc(-1 * var(--jp-border-width)); @@ -1236,8 +1242,9 @@ } /* */ -.jupyter-widgets.widget-tab > .p-TabBar .p-TabBar-tab:first-child, /* */ -.jupyter-widgets.jupyter-widget-tab > .p-TabBar .p-TabBar-tab:first-child { +.jupyter-widgets.widget-tab > .p-TabBar .p-TabBar-tab:first-child, /* */ +/* */.jupyter-widgets.jupyter-widget-tab > .p-TabBar .p-TabBar-tab:first-child, /* */ +.jupyter-widgets.jupyter-widget-tab > .lm-TabBar .lm-TabBar-tab:first-child { margin-left: 0; } @@ -1245,10 +1252,15 @@ .jupyter-widgets.widget-tab > .p-TabBar .p-TabBar-tab:hover:not(.p-mod-current), +/* */ /* */ .jupyter-widgets.jupyter-widget-tab > .p-TabBar - .p-TabBar-tab:hover:not(.p-mod-current) { + .p-TabBar-tab:hover:not(.p-mod-current), +/* */ +.jupyter-widgets.jupyter-widget-tab + > .lm-TabBar + .lm-TabBar-tab:hover:not(.lm-mod-current) { background: var(--jp-layout-color1); color: var(--jp-ui-font-color1); } @@ -1258,11 +1270,17 @@ > .p-TabBar .p-mod-closable > .p-TabBar-tabCloseIcon, +/* */ /* */ .jupyter-widgets.jupyter-widget-tab - > .p-TabBar - .p-mod-closable - > .p-TabBar-tabCloseIcon { +> .p-TabBar +.p-mod-closable +> .p-TabBar-tabCloseIcon, +/* */ +.jupyter-widgets.jupyter-widget-tab + > .lm-TabBar + .lm-mod-closable + > .lm-TabBar-tabCloseIcon { margin-left: 4px; } @@ -1273,34 +1291,43 @@ actually support closable tabs, so it really doesn't matter */ > .p-TabBar .p-mod-closable > .p-TabBar-tabCloseIcon:before, +/* */ /* */ +.jupyter-widgets.jupyter-widget-widget-tab +> .p-TabBar +.p-mod-closable +> .p-TabBar-tabCloseIcon:before, +/* */ .jupyter-widgets.jupyter-widget-tab - > .p-TabBar - .p-mod-closable - > .p-TabBar-tabCloseIcon:before { + > .lm-TabBar + .lm-mod-closable + > .lm-TabBar-tabCloseIcon:before { font-family: FontAwesome; content: '\f00d'; /* close */ } /* */ -.jupyter-widgets.widget-tab > .p-TabBar .p-TabBar-tabIcon, /* */ -/* */ .jupyter-widgets.widget-tab > .p-TabBar .p-TabBar-tabLabel, /* */ -/* */ .jupyter-widgets.widget-tab > .p-TabBar .p-TabBar-tabCloseIcon, /* */ -.jupyter-widgets.jupyter-widget-tab > .p-TabBar .p-TabBar-tabIcon, -.jupyter-widgets.jupyter-widget-tab > .p-TabBar .p-TabBar-tabLabel, -.jupyter-widgets.jupyter-widget-tab > .p-TabBar .p-TabBar-tabCloseIcon { +.jupyter-widgets.widget-tab > .p-TabBar .p-TabBar-tabIcon, /* */ +/* */ .jupyter-widgets.widget-tab > .p-TabBar .p-TabBar-tabLabel, /* */ +/* */ .jupyter-widgets.widget-tab > .p-TabBar .p-TabBar-tabCloseIcon, /* */ +/* */ .jupyter-widgets.jupyter-widget-tab > .p-TabBar .p-TabBar-tabIcon, /* */ +/* */ .jupyter-widgets.jupyter-widget-tab > .p-TabBar .p-TabBar-tabLabel, /* */ +/* */ .jupyter-widgets.jupyter-widget-tab > .p-TabBar .p-TabBar-tabCloseIcon, /* */ +.jupyter-widgets.jupyter-widget-tab > .lm-TabBar .lm-TabBar-tabIcon, +.jupyter-widgets.jupyter-widget-tab > .lm-TabBar .lm-TabBar-tabLabel, +.jupyter-widgets.jupyter-widget-tab > .lm-TabBar .lm-TabBar-tabCloseIcon { line-height: var(--jp-widgets-horizontal-tab-height); } /* Accordion Widget */ -.p-Collapse { +.jupyter-widget-Collapse { display: flex; flex-direction: column; align-items: stretch; } -.p-Collapse-header { +.jupyter-widget-Collapse-header { padding: var(--jp-widgets-input-padding); cursor: pointer; color: var(--jp-ui-font-color2); @@ -1311,19 +1338,19 @@ actually support closable tabs, so it really doesn't matter */ font-weight: bold; } -.p-Collapse-header:hover { +.jupyter-widget-Collapse-header:hover { background-color: var(--jp-layout-color1); color: var(--jp-ui-font-color1); } -.p-Collapse-open > .p-Collapse-header { +.jupyter-widget-Collapse-open > .jupyter-widget-Collapse-header { background-color: var(--jp-layout-color1); color: var(--jp-ui-font-color0); cursor: default; border-bottom: none; } -.p-Collapse-contents { +.jupyter-widget-Collapse-contents { padding: var(--jp-widgets-container-padding); background-color: var(--jp-layout-color1); color: var(--jp-ui-font-color1); @@ -1333,33 +1360,33 @@ actually support closable tabs, so it really doesn't matter */ overflow: auto; } -.p-Accordion { +.jupyter-widget-Accordion { display: flex; flex-direction: column; align-items: stretch; } -.p-Accordion .p-Collapse { +.jupyter-widget-Accordion .jupyter-widget-Collapse { margin-bottom: 0; } -.p-Accordion .p-Collapse + .p-Collapse { +.jupyter-widget-Accordion .jupyter-widget-Collapse + .jupyter-widget-Collapse { margin-top: 4px; } /* HTML widget */ /* */ -.widget-html, /* */ -/* */ .widget-htmlmath, /* */ +.widget-html, /* */ +/* */ .widget-htmlmath, /* */ .jupyter-widget-html, .jupyter-widget-htmlmath { font-size: var(--jp-widgets-font-size); } /* */ -.widget-html > .widget-html-content, /* */ -/* */.widget-htmlmath > .widget-html-content, /* */ +.widget-html > .widget-html-content, /* */ +/* */.widget-htmlmath > .widget-html-content, /* */ .jupyter-widget-html > .jupyter-widget-html-content, .jupyter-widget-htmlmath > .jupyter-widget-html-content { /* Fill out the area in the HTML widget */ @@ -1375,7 +1402,7 @@ actually support closable tabs, so it really doesn't matter */ /* Image widget */ /* */ -.widget-image, /* */ +.widget-image, /* */ .jupyter-widget-image { max-width: 100%; height: auto; diff --git a/packages/controls/src/lumino/accordion.ts b/packages/controls/src/lumino/accordion.ts index 8875d84a1f..7b510dde19 100644 --- a/packages/controls/src/lumino/accordion.ts +++ b/packages/controls/src/lumino/accordion.ts @@ -12,22 +12,22 @@ import { Selection } from './currentselection'; /** * The class name added to Collapse instances. */ -const COLLAPSE_CLASS = 'p-Collapse'; +const COLLAPSE_CLASS = 'jupyter-widget-Collapse'; /** * The class name added to a Collapse's header. */ -const COLLAPSE_HEADER_CLASS = 'p-Collapse-header'; +const COLLAPSE_HEADER_CLASS = 'jupyter-widget-Collapse-header'; /** * The class name added to a Collapse's contents. */ -const COLLAPSE_CONTENTS_CLASS = 'p-Collapse-contents'; +const COLLAPSE_CONTENTS_CLASS = 'jupyter-widget-Collapse-contents'; /** * The class name added to a Collapse when it is opened */ -const COLLAPSE_CLASS_OPEN = 'p-Collapse-open'; +const COLLAPSE_CLASS_OPEN = 'jupyter-widget-Collapse-open'; /** * A panel that supports a collapsible header, made from the widget's title. @@ -186,14 +186,14 @@ export namespace Collapse { /** * The class name added to Accordion instances. */ -const ACCORDION_CLASS = 'p-Accordion'; +const ACCORDION_CLASS = 'jupyter-widget-Accordion'; /** * The class name added to an Accordion child. */ -const ACCORDION_CHILD_CLASS = 'p-Accordion-child'; +const ACCORDION_CHILD_CLASS = 'jupyter-widget-Accordion-child'; -const ACCORDION_CHILD_ACTIVE_CLASS = 'p-Accordion-child-active'; +const ACCORDION_CHILD_ACTIVE_CLASS = 'jupyter-widget-Accordion-child-active'; /** * A panel that supports a collapsible header, made from the widget's title. diff --git a/packages/controls/src/lumino/tabpanel.ts b/packages/controls/src/lumino/tabpanel.ts index 23e1ade13d..f7260e64e9 100644 --- a/packages/controls/src/lumino/tabpanel.ts +++ b/packages/controls/src/lumino/tabpanel.ts @@ -111,13 +111,13 @@ export class TabPanel extends Widget { */ constructor(options: TabPanel.IOptions = {}) { super(); - this.addClass('p-TabPanel'); + this.addClass('jupyter-widget-TabPanel'); // Create the tab bar and contents panel. this.tabBar = new TabBar(options); - this.tabBar.addClass('p-TabPanel-tabBar'); + this.tabBar.addClass('jupyter-widget-TabPanel-tabBar'); this.tabContents = new EventedPanel(); - this.tabContents.addClass('p-TabPanel-tabContents'); + this.tabContents.addClass('jupyter-widget-TabPanel-tabContents'); // Connect the tab bar signal handlers. this.tabBar.tabMoved.connect(this._onTabMoved, this);