/* Copyright (c) Jupyter Development Team. * Distributed under the terms of the Modified BSD License. */ /* * We assume that the CSS variables in * https://github.com/jupyterlab/jupyterlab/blob/master/src/default-theme/variables.css * have been defined. */ @import './lumino.css'; @import './nouislider.css'; :root { --jp-widgets-color: var(--jp-content-font-color1); --jp-widgets-label-color: var(--jp-widgets-color); --jp-widgets-readout-color: var(--jp-widgets-color); --jp-widgets-font-size: var(--jp-ui-font-size1); --jp-widgets-margin: 2px; --jp-widgets-inline-height: 28px; --jp-widgets-inline-width: 300px; --jp-widgets-inline-width-short: calc( var(--jp-widgets-inline-width) / 2 - var(--jp-widgets-margin) ); --jp-widgets-inline-width-tiny: calc( var(--jp-widgets-inline-width-short) / 2 - var(--jp-widgets-margin) ); --jp-widgets-inline-margin: 4px; /* margin between inline elements */ --jp-widgets-inline-label-width: 80px; --jp-widgets-border-width: var(--jp-border-width); --jp-widgets-vertical-height: 200px; --jp-widgets-horizontal-tab-height: 24px; --jp-widgets-horizontal-tab-width: 144px; --jp-widgets-horizontal-tab-top-border: 2px; --jp-widgets-progress-thickness: 20px; --jp-widgets-container-padding: 15px; --jp-widgets-input-padding: 4px; --jp-widgets-radio-item-height-adjustment: 8px; --jp-widgets-radio-item-height: calc( var(--jp-widgets-inline-height) - var(--jp-widgets-radio-item-height-adjustment) ); --jp-widgets-slider-track-thickness: 4px; --jp-widgets-slider-border-width: var(--jp-widgets-border-width); --jp-widgets-slider-handle-size: 16px; --jp-widgets-slider-handle-border-color: var(--jp-border-color1); --jp-widgets-slider-handle-background-color: var(--jp-layout-color1); --jp-widgets-slider-active-handle-color: var(--jp-brand-color1); --jp-widgets-menu-item-height: 24px; --jp-widgets-dropdown-arrow: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE5LjIuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCAxOCAxOCIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTggMTg7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPHN0eWxlIHR5cGU9InRleHQvY3NzIj4KCS5zdDB7ZmlsbDpub25lO30KPC9zdHlsZT4KPHBhdGggZD0iTTUuMiw1LjlMOSw5LjdsMy44LTMuOGwxLjIsMS4ybC00LjksNWwtNC45LTVMNS4yLDUuOXoiLz4KPHBhdGggY2xhc3M9InN0MCIgZD0iTTAtMC42aDE4djE4SDBWLTAuNnoiLz4KPC9zdmc+Cg'); --jp-widgets-input-color: var(--jp-ui-font-color1); --jp-widgets-input-background-color: var(--jp-layout-color1); --jp-widgets-input-border-color: var(--jp-border-color1); --jp-widgets-input-focus-border-color: var(--jp-brand-color2); --jp-widgets-input-border-width: var(--jp-widgets-border-width); --jp-widgets-disabled-opacity: 0.6; /* From Material Design Lite */ --md-shadow-key-umbra-opacity: 0.2; --md-shadow-key-penumbra-opacity: 0.14; --md-shadow-ambient-shadow-opacity: 0.12; } .jupyter-widgets { margin: var(--jp-widgets-margin); box-sizing: border-box; color: var(--jp-widgets-color); overflow: visible; } .jp-Output-result > .jupyter-widgets { margin-left: 0; margin-right: 0; } /* vbox and hbox */ /* */ .widget-inline-hbox, /* */ .jupyter-widget-inline-hbox { /* Horizontal widgets */ box-sizing: border-box; display: flex; flex-direction: row; align-items: baseline; } /* */ .widget-inline-vbox, /* */ .jupyter-widget-inline-vbox { /* Vertical Widgets */ box-sizing: border-box; display: flex; flex-direction: column; align-items: center; } /* */ .widget-box, /* */ .jupyter-widget-box { box-sizing: border-box; display: flex; margin: 0; overflow: auto; } /* */ .widget-gridbox, /* */ .jupyter-widget-gridbox { box-sizing: border-box; display: grid; margin: 0; overflow: auto; } /* */ .widget-hbox, /* */ .jupyter-widget-hbox { flex-direction: row; } /* */ .widget-vbox, /* */ .jupyter-widget-vbox { flex-direction: column; } /* General Tags Styling */ .jupyter-widget-tagsinput { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; overflow: auto; cursor: text; } .jupyter-widget-tag { padding-left: 10px; padding-right: 10px; padding-top: 0px; padding-bottom: 0px; display: inline-block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; font-size: var(--jp-widgets-font-size); height: calc(var(--jp-widgets-inline-height) - 2px); border: 0px solid; line-height: calc(var(--jp-widgets-inline-height) - 2px); box-shadow: none; color: var(--jp-ui-font-color1); background-color: var(--jp-layout-color2); border-color: var(--jp-border-color2); border: none; user-select: none; cursor: grab; transition: margin-left 200ms; margin: 1px 1px 1px 1px; } .jupyter-widget-tag.mod-active { /* MD Lite 4dp shadow */ box-shadow: 0 4px 5px 0 rgba(0, 0, 0, var(--md-shadow-key-penumbra-opacity)), 0 1px 10px 0 rgba(0, 0, 0, var(--md-shadow-ambient-shadow-opacity)), 0 2px 4px -1px rgba(0, 0, 0, var(--md-shadow-key-umbra-opacity)); color: var(--jp-ui-font-color1); background-color: var(--jp-layout-color3); } .jupyter-widget-colortag { color: var(--jp-inverse-ui-font-color1); } .jupyter-widget-colortag.mod-active { color: var(--jp-inverse-ui-font-color0); } .jupyter-widget-taginput { color: var(--jp-ui-font-color0); background-color: var(--jp-layout-color0); cursor: text; text-align: left; } .jupyter-widget-taginput:focus { outline: none; } .jupyter-widget-tag-close { margin-left: var(--jp-widgets-inline-margin); padding: 2px 0px 2px 2px; } .jupyter-widget-tag-close:hover { cursor: pointer; } /* Tag "Primary" Styling */ .jupyter-widget-tag.mod-primary { color: var(--jp-inverse-ui-font-color1); background-color: var(--jp-brand-color1); } .jupyter-widget-tag.mod-primary.mod-active { color: var(--jp-inverse-ui-font-color0); background-color: var(--jp-brand-color0); } /* Tag "Success" Styling */ .jupyter-widget-tag.mod-success { color: var(--jp-inverse-ui-font-color1); background-color: var(--jp-success-color1); } .jupyter-widget-tag.mod-success.mod-active { color: var(--jp-inverse-ui-font-color0); background-color: var(--jp-success-color0); } /* Tag "Info" Styling */ .jupyter-widget-tag.mod-info { color: var(--jp-inverse-ui-font-color1); background-color: var(--jp-info-color1); } .jupyter-widget-tag.mod-info.mod-active { color: var(--jp-inverse-ui-font-color0); background-color: var(--jp-info-color0); } /* Tag "Warning" Styling */ .jupyter-widget-tag.mod-warning { color: var(--jp-inverse-ui-font-color1); background-color: var(--jp-warn-color1); } .jupyter-widget-tag.mod-warning.mod-active { color: var(--jp-inverse-ui-font-color0); background-color: var(--jp-warn-color0); } /* Tag "Danger" Styling */ .jupyter-widget-tag.mod-danger { color: var(--jp-inverse-ui-font-color1); background-color: var(--jp-error-color1); } .jupyter-widget-tag.mod-danger.mod-active { color: var(--jp-inverse-ui-font-color0); background-color: var(--jp-error-color0); } /* General Button Styling */ .jupyter-button { padding-left: 10px; padding-right: 10px; padding-top: 0px; padding-bottom: 0px; display: inline-block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; font-size: var(--jp-widgets-font-size); cursor: pointer; height: var(--jp-widgets-inline-height); border: 0px solid; line-height: var(--jp-widgets-inline-height); box-shadow: none; color: var(--jp-ui-font-color1); background-color: var(--jp-layout-color2); border-color: var(--jp-border-color2); border: none; user-select: none; } .jupyter-button i.fa { margin-right: var(--jp-widgets-inline-margin); pointer-events: none; } .jupyter-button:empty:before { content: '\200b'; /* zero-width space */ } .jupyter-widgets.jupyter-button:disabled { opacity: var(--jp-widgets-disabled-opacity); } .jupyter-button i.fa.center { margin-right: 0; } .jupyter-button:hover:enabled, .jupyter-button:focus:enabled { /* MD Lite 2dp shadow */ box-shadow: 0 2px 2px 0 rgba(0, 0, 0, var(--md-shadow-key-penumbra-opacity)), 0 3px 1px -2px rgba(0, 0, 0, var(--md-shadow-key-umbra-opacity)), 0 1px 5px 0 rgba(0, 0, 0, var(--md-shadow-ambient-shadow-opacity)); } .jupyter-button:active, .jupyter-button.mod-active { /* MD Lite 4dp shadow */ box-shadow: 0 4px 5px 0 rgba(0, 0, 0, var(--md-shadow-key-penumbra-opacity)), 0 1px 10px 0 rgba(0, 0, 0, var(--md-shadow-ambient-shadow-opacity)), 0 2px 4px -1px rgba(0, 0, 0, var(--md-shadow-key-umbra-opacity)); color: var(--jp-ui-font-color1); background-color: var(--jp-layout-color3); } .jupyter-button:focus:enabled { outline: 1px solid var(--jp-widgets-input-focus-border-color); } /* Button "Primary" Styling */ .jupyter-button.mod-primary { color: var(--jp-ui-inverse-font-color1); background-color: var(--jp-brand-color1); } .jupyter-button.mod-primary.mod-active { color: var(--jp-ui-inverse-font-color0); background-color: var(--jp-brand-color0); } .jupyter-button.mod-primary:active { color: var(--jp-ui-inverse-font-color0); background-color: var(--jp-brand-color0); } /* Button "Success" Styling */ .jupyter-button.mod-success { color: var(--jp-ui-inverse-font-color1); background-color: var(--jp-success-color1); } .jupyter-button.mod-success.mod-active { color: var(--jp-ui-inverse-font-color0); background-color: var(--jp-success-color0); } .jupyter-button.mod-success:active { color: var(--jp-ui-inverse-font-color0); background-color: var(--jp-success-color0); } /* Button "Info" Styling */ .jupyter-button.mod-info { color: var(--jp-ui-inverse-font-color1); background-color: var(--jp-info-color1); } .jupyter-button.mod-info.mod-active { color: var(--jp-ui-inverse-font-color0); background-color: var(--jp-info-color0); } .jupyter-button.mod-info:active { color: var(--jp-ui-inverse-font-color0); background-color: var(--jp-info-color0); } /* Button "Warning" Styling */ .jupyter-button.mod-warning { color: var(--jp-ui-inverse-font-color1); background-color: var(--jp-warn-color1); } .jupyter-button.mod-warning.mod-active { color: var(--jp-ui-inverse-font-color0); background-color: var(--jp-warn-color0); } .jupyter-button.mod-warning:active { color: var(--jp-ui-inverse-font-color0); background-color: var(--jp-warn-color0); } /* Button "Danger" Styling */ .jupyter-button.mod-danger { color: var(--jp-ui-inverse-font-color1); background-color: var(--jp-error-color1); } .jupyter-button.mod-danger.mod-active { color: var(--jp-ui-inverse-font-color0); background-color: var(--jp-error-color0); } .jupyter-button.mod-danger:active { color: var(--jp-ui-inverse-font-color0); background-color: var(--jp-error-color0); } /* Widget Button, Widget Toggle Button, Widget Upload */ /* */ .widget-button, /* */ /* */ .widget-toggle-button, /* */ /* */ .widget-upload, /* */ .jupyter-widget-button, .jupyter-widget-toggle-button, .jupyter-widget-upload { width: var(--jp-widgets-inline-width-short); } /* Widget Label Styling */ /* Override Bootstrap label css */ .jupyter-widgets label { margin-bottom: initial; } /* */ .widget-label-basic, /* */ .jupyter-widget-label-basic { /* Basic Label */ color: var(--jp-widgets-label-color); font-size: var(--jp-widgets-font-size); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: var(--jp-widgets-inline-height); } /* */ .widget-label, /* */ .jupyter-widget-label { /* Label */ color: var(--jp-widgets-label-color); font-size: var(--jp-widgets-font-size); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: var(--jp-widgets-inline-height); } /* */ .widget-inline-hbox .widget-label, /* */ .jupyter-widget-inline-hbox .jupyter-widget-label { /* Horizontal Widget Label */ color: var(--jp-widgets-label-color); text-align: right; margin-right: calc(var(--jp-widgets-inline-margin) * 2); width: var(--jp-widgets-inline-label-width); flex-shrink: 0; } /* */ .widget-inline-vbox .widget-label, /* */ .jupyter-widget-inline-vbox .jupyter-widget-label { /* Vertical Widget Label */ color: var(--jp-widgets-label-color); text-align: center; line-height: var(--jp-widgets-inline-height); } /* Widget Readout Styling */ /* */ .widget-readout, /* */ .jupyter-widget-readout { color: var(--jp-widgets-readout-color); font-size: var(--jp-widgets-font-size); height: var(--jp-widgets-inline-height); line-height: var(--jp-widgets-inline-height); overflow: hidden; white-space: nowrap; text-align: center; } /* */ .widget-readout.overflow, /* */ .jupyter-widget-readout.overflow { /* Overflowing Readout */ /* From Material Design Lite shadow-key-umbra-opacity: 0.2; shadow-key-penumbra-opacity: 0.14; shadow-ambient-shadow-opacity: 0.12; */ -webkit-box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.2), 0 3px 1px -2px rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12); -moz-box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.2), 0 3px 1px -2px rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12); box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.2), 0 3px 1px -2px rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12); } /* */ .widget-inline-hbox .widget-readout, /* */ .jupyter-widget-inline-hbox .jupyter-widget-readout { /* Horizontal Readout */ text-align: center; max-width: var(--jp-widgets-inline-width-short); min-width: var(--jp-widgets-inline-width-tiny); margin-left: var(--jp-widgets-inline-margin); } /* */ .widget-inline-vbox .widget-readout, /* */ .jupyter-widget-inline-vbox .jupyter-widget-readout { /* Vertical Readout */ margin-top: var(--jp-widgets-inline-margin); /* as wide as the widget */ width: inherit; } /* Widget Checkbox Styling */ /* */ .widget-checkbox, /* */ .jupyter-widget-checkbox { width: var(--jp-widgets-inline-width); height: var(--jp-widgets-inline-height); line-height: var(--jp-widgets-inline-height); } /* */ .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); font-size: large; flex-grow: 1; flex-shrink: 0; align-self: center; } /* Widget Valid Styling */ /* */ .widget-valid, /* */ .jupyter-widget-valid { height: var(--jp-widgets-inline-height); line-height: var(--jp-widgets-inline-height); width: var(--jp-widgets-inline-width-short); font-size: var(--jp-widgets-font-size); } /* */ .widget-valid i, /* */ .jupyter-widget-valid i { line-height: var(--jp-widgets-inline-height); margin-right: var(--jp-widgets-inline-margin); margin-left: var(--jp-widgets-inline-margin); } /* */ .widget-valid.mod-valid i, /* */ .jupyter-widget-valid.mod-valid i { color: green; } /* */ .widget-valid.mod-invalid i, /* */ .jupyter-widget-valid.mod-invalid i { color: red; } /* */ .widget-valid.mod-valid .widget-valid-readout, /* */ .jupyter-widget-valid.mod-valid .jupyter-widget-valid-readout { display: none; } /* Widget Text and TextArea Styling */ /* */ .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'], /* */ .jupyter-widget-text input[type='text'], .jupyter-widget-text input[type='number'], .jupyter-widget-text input[type='password'] { height: var(--jp-widgets-inline-height); } /* */ .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, .jupyter-widget-textarea textarea:disabled { opacity: var(--jp-widgets-disabled-opacity); } /* */ .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'], .jupyter-widget-textarea textarea { box-sizing: border-box; border: var(--jp-widgets-input-border-width) solid var(--jp-widgets-input-border-color); background-color: var(--jp-widgets-input-background-color); color: var(--jp-widgets-input-color); font-size: var(--jp-widgets-font-size); flex-grow: 1; min-width: 0; /* This makes it possible for the flexbox to shrink this input */ flex-shrink: 1; outline: none !important; } /* */ .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 { padding: var(--jp-widgets-input-padding) calc(var(--jp-widgets-input-padding) * 2); } /* */ .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, /* */ .jupyter-widget-textarea textarea { height: inherit; width: inherit; } /* */ .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); } /* Horizontal Slider */ /* */ .widget-hslider, /* */ .jupyter-widget-hslider { width: var(--jp-widgets-inline-width); height: var(--jp-widgets-inline-height); line-height: var(--jp-widgets-inline-height); /* Override the align-items baseline. This way, the description and readout still seem to align their baseline properly, and we don't have to have align-self: stretch in the .slider-container. */ align-items: center; } /* */ .widgets-slider .slider-container, /* */ .jupyter-widgets-slider .slider-container { overflow: visible; } /* */ .widget-hslider .slider-container, /* */ .jupyter-widget-hslider .slider-container { margin-left: calc( var(--jp-widgets-slider-handle-size) / 2 - 2 * var(--jp-widgets-slider-border-width) ); margin-right: calc( var(--jp-widgets-slider-handle-size) / 2 - 2 * var(--jp-widgets-slider-border-width) ); flex: 1 1 var(--jp-widgets-inline-width-short); } /* Vertical Slider */ /* */ .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, /* */ .jupyter-widget-vslider { /* Vertical Slider */ height: var(--jp-widgets-vertical-height); width: var(--jp-widgets-inline-width-tiny); } /* */ .widget-vslider .slider-container, /* */ .jupyter-widget-vslider .slider-container { flex: 1 1 var(--jp-widgets-inline-width-short); margin-left: auto; margin-right: auto; margin-bottom: calc( var(--jp-widgets-slider-handle-size) / 2 - 2 * var(--jp-widgets-slider-border-width) ); margin-top: calc( var(--jp-widgets-slider-handle-size) / 2 - 2 * var(--jp-widgets-slider-border-width) ); display: flex; flex-direction: column; } /* Widget Progress Styling */ .progress-bar { -webkit-transition: none; -moz-transition: none; -ms-transition: none; -o-transition: none; transition: none; } .progress-bar { height: var(--jp-widgets-inline-height); } .progress-bar { background-color: var(--jp-brand-color1); } .progress-bar-success { background-color: var(--jp-success-color1); } .progress-bar-info { background-color: var(--jp-info-color1); } .progress-bar-warning { background-color: var(--jp-warn-color1); } .progress-bar-danger { background-color: var(--jp-error-color1); } .progress { background-color: var(--jp-layout-color2); border: none; box-shadow: none; } /* Horisontal Progress */ /* */ .widget-hprogress, /* */ .jupyter-widget-hprogress { /* Progress Bar */ height: var(--jp-widgets-inline-height); line-height: var(--jp-widgets-inline-height); width: var(--jp-widgets-inline-width); align-items: center; } /* */ .widget-hprogress .progress, /* */ .jupyter-widget-hprogress .progress { flex-grow: 1; margin-top: var(--jp-widgets-input-padding); margin-bottom: var(--jp-widgets-input-padding); align-self: stretch; /* Override bootstrap style */ height: initial; } /* Vertical Progress */ /* */ .widget-vprogress, /* */ .jupyter-widget-vprogress { height: var(--jp-widgets-vertical-height); width: var(--jp-widgets-inline-width-tiny); } /* */ .widget-vprogress .progress, /* */ .jupyter-widget-vprogress .progress { flex-grow: 1; width: var(--jp-widgets-progress-thickness); margin-left: auto; margin-right: auto; margin-bottom: 0; } /* Select Widget Styling */ /* */ .widget-dropdown, /* */ .jupyter-widget-dropdown { height: var(--jp-widgets-inline-height); width: var(--jp-widgets-inline-width); line-height: var(--jp-widgets-inline-height); } /* */ .widget-dropdown > select, /* */ .jupyter-widget-dropdown > select { padding-right: 20px; border: var(--jp-widgets-input-border-width) solid var(--jp-widgets-input-border-color); border-radius: 0; height: inherit; flex: 1 1 var(--jp-widgets-inline-width-short); min-width: 0; /* This makes it possible for the flexbox to shrink this input */ box-sizing: border-box; outline: none !important; box-shadow: none; background-color: var(--jp-widgets-input-background-color); color: var(--jp-widgets-input-color); font-size: var(--jp-widgets-font-size); vertical-align: top; padding-left: calc(var(--jp-widgets-input-padding) * 2); appearance: none; -webkit-appearance: none; -moz-appearance: none; background-repeat: no-repeat; background-size: 20px; background-position: right center; background-image: var(--jp-widgets-dropdown-arrow); } /* */ .widget-dropdown > select:focus, /* */ .jupyter-widget-dropdown > select:focus { border-color: var(--jp-widgets-input-focus-border-color); } /* */ .widget-dropdown > select:disabled, /* */ .jupyter-widget-dropdown > select:disabled { opacity: var(--jp-widgets-disabled-opacity); } /* To disable the dotted border in Firefox around select controls. See http://stackoverflow.com/a/18853002 */ /* */ .widget-dropdown > select:-moz-focusring, /* */ .jupyter-widget-dropdown > select:-moz-focusring { color: transparent; text-shadow: 0 0 0 #000; } /* Select and SelectMultiple */ /* */ .widget-select, /* */ .jupyter-widget-select { width: var(--jp-widgets-inline-width); line-height: var(--jp-widgets-inline-height); /* Because Firefox defines the baseline of a select as the bottom of the control, we align the entire control to the top and add padding to the select to get an approximate first line baseline alignment. */ align-items: flex-start; } /* */ .widget-select > select, /* */ .jupyter-widget-select > select { border: var(--jp-widgets-input-border-width) solid var(--jp-widgets-input-border-color); background-color: var(--jp-widgets-input-background-color); color: var(--jp-widgets-input-color); font-size: var(--jp-widgets-font-size); flex: 1 1 var(--jp-widgets-inline-width-short); outline: none !important; overflow: auto; height: inherit; /* Because Firefox defines the baseline of a select as the bottom of the control, we align the entire control to the top and add padding to the select to get an approximate first line baseline alignment. */ padding-top: 5px; } /* */ .widget-select > select:focus, /* */ .jupyter-widget-select > select:focus { border-color: var(--jp-widgets-input-focus-border-color); } .wiget-select > select > option, .jupyter-wiget-select > select > option { padding-left: var(--jp-widgets-input-padding); line-height: var(--jp-widgets-inline-height); /* line-height doesn't work on some browsers for select options */ padding-top: calc( var(--jp-widgets-inline-height) - var(--jp-widgets-font-size) / 2 ); padding-bottom: calc( var(--jp-widgets-inline-height) - var(--jp-widgets-font-size) / 2 ); } /* Toggle Buttons Styling */ /* */ .widget-toggle-buttons, /* */ .jupyter-widget-toggle-buttons { line-height: var(--jp-widgets-inline-height); } /* */ .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, /* */ .jupyter-widget-toggle-buttons .jupyter-button:disabled { opacity: var(--jp-widgets-disabled-opacity); } /* Radio Buttons Styling */ /* */ .widget-radio, /* */ .jupyter-widget-radio { width: var(--jp-widgets-inline-width); line-height: var(--jp-widgets-inline-height); } /* */ .widget-radio-box, /* */ .jupyter-widget-radio-box { display: flex; flex-direction: column; align-items: stretch; box-sizing: border-box; flex-grow: 1; margin-bottom: var(--jp-widgets-radio-item-height-adjustment); } /* */ .widget-radio-box-vertical, /* */ .jupyter-widget-radio-box-vertical { flex-direction: column; } /* */ .widget-radio-box-horizontal, /* */ .jupyter-widget-radio-box-horizontal { flex-direction: row; } /* */ .widget-radio-box label, /* */ .jupyter-widget-radio-box label { height: var(--jp-widgets-radio-item-height); line-height: var(--jp-widgets-radio-item-height); font-size: var(--jp-widgets-font-size); } .widget-radio-box-horizontal label, .jupyter-widget-radio-box-horizontal label { margin: 0 calc(var(--jp-widgets-input-padding) * 2) 0 0; } /* */ .widget-radio-box input, /* */ .jupyter-widget-radio-box input { height: var(--jp-widgets-radio-item-height); line-height: var(--jp-widgets-radio-item-height); margin: 0 calc(var(--jp-widgets-input-padding) * 2) 0 1px; float: left; } /* Color Picker Styling */ /* */ .widget-colorpicker, /* */ .jupyter-widget-colorpicker { width: var(--jp-widgets-inline-width); height: var(--jp-widgets-inline-height); line-height: var(--jp-widgets-inline-height); } /* */ .widget-colorpicker > .widget-colorpicker-input, /* */ .jupyter-widget-colorpicker > .jupyter-widget-colorpicker-input { flex-grow: 1; flex-shrink: 1; min-width: var(--jp-widgets-inline-width-tiny); } /* */ .widget-colorpicker input[type='color'], /* */ .jupyter-widget-colorpicker input[type='color'] { width: var(--jp-widgets-inline-height); height: var(--jp-widgets-inline-height); padding: 0 2px; /* make the color square actually square on Chrome on OS X */ background: var(--jp-widgets-input-background-color); color: var(--jp-widgets-input-color); border: var(--jp-widgets-input-border-width) solid var(--jp-widgets-input-border-color); border-left: none; flex-grow: 0; flex-shrink: 0; box-sizing: border-box; align-self: stretch; outline: none !important; } /* */ .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, /* */ .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'], /* */ .jupyter-widget-colorpicker input[type='text'] { flex-grow: 1; outline: none !important; height: var(--jp-widgets-inline-height); line-height: var(--jp-widgets-inline-height); background: var(--jp-widgets-input-background-color); color: var(--jp-widgets-input-color); border: var(--jp-widgets-input-border-width) solid var(--jp-widgets-input-border-color); font-size: var(--jp-widgets-font-size); padding: var(--jp-widgets-input-padding) calc(var(--jp-widgets-input-padding) * 2); min-width: 0; /* This makes it possible for the flexbox to shrink this input */ flex-shrink: 1; box-sizing: border-box; } /* */ .widget-colorpicker input[type='text']:disabled, /* */ .jupyter-widget-colorpicker input[type='text']:disabled { opacity: var(--jp-widgets-disabled-opacity); } /* Date Picker Styling */ /* */ .widget-datepicker, /* */ .jupyter-widget-datepicker { width: var(--jp-widgets-inline-width); height: var(--jp-widgets-inline-height); line-height: var(--jp-widgets-inline-height); } /* */ .widget-datepicker input[type='date'], /* */ .jupyter-widget-datepicker input[type='date'] { flex-grow: 1; flex-shrink: 1; min-width: 0; /* This makes it possible for the flexbox to shrink this input */ outline: none !important; height: var(--jp-widgets-inline-height); border: var(--jp-widgets-input-border-width) solid var(--jp-widgets-input-border-color); background-color: var(--jp-widgets-input-background-color); color: var(--jp-widgets-input-color); font-size: var(--jp-widgets-font-size); padding: var(--jp-widgets-input-padding) calc(var(--jp-widgets-input-padding) * 2); box-sizing: border-box; } /* */ .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, /* */ .jupyter-widget-datepicker input[type='date']:invalid { border-color: var(--jp-warn-color1); } /* */ .widget-datepicker input[type='date']:disabled, /* */ .jupyter-widget-datepicker input[type='date']:disabled { opacity: var(--jp-widgets-disabled-opacity); } /* Play Widget */ /* */ .widget-play, /* */ .jupyter-widget-play { width: var(--jp-widgets-inline-width-short); display: flex; align-items: stretch; } /* */ .widget-play .jupyter-button, /* */ .jupyter-widget-play .jupyter-button { flex-grow: 1; height: auto; } /* */ .widget-play .jupyter-button:disabled, /* */ .jupyter-widget-play .jupyter-button:disabled { opacity: var(--jp-widgets-disabled-opacity); } /* Tab Widget */ /* */ .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.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.jupyter-widget-tab > .lm-TabBar > .lm-TabBar-content { /* Make sure that the tab grows from bottom up */ align-items: flex-end; min-width: 0; min-height: 0; } /* */ .jupyter-widgets.widget-tab > .widget-tab-contents, /* */ .jupyter-widgets.jupyter-widget-tab > .widget-tab-contents { width: 100%; box-sizing: border-box; margin: 0; background: var(--jp-layout-color1); color: var(--jp-ui-font-color1); border: var(--jp-border-width) solid var(--jp-border-color1); padding: var(--jp-widgets-container-padding); flex-grow: 1; overflow: auto; } /* */ .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) ); } /* */ .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( var(--jp-widgets-horizontal-tab-height) + var(--jp-border-width) ); line-height: var(--jp-widgets-horizontal-tab-height); margin-left: calc(-1 * var(--jp-border-width)); padding: 0px 10px; background: var(--jp-layout-color2); color: var(--jp-ui-font-color2); border: var(--jp-border-width) solid var(--jp-border-color1); border-bottom: none; position: relative; } /* */ .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); min-height: calc( var(--jp-widgets-horizontal-tab-height) + 2 * var(--jp-border-width) ); transform: translateY(var(--jp-border-width)); overflow: visible; } /* */ .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)); content: ''; height: var(--jp-widgets-horizontal-tab-top-border); width: calc(100% + 2 * var(--jp-border-width)); background: var(--jp-brand-color1); } /* */ .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; } /* */ .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), /* */ .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); } /* */ .jupyter-widgets.widget-tab > .p-TabBar .p-mod-closable > .p-TabBar-tabCloseIcon, /* */ /* */ .jupyter-widgets.jupyter-widget-tab > .p-TabBar .p-mod-closable > .p-TabBar-tabCloseIcon, /* */ .jupyter-widgets.jupyter-widget-tab > .lm-TabBar .lm-mod-closable > .lm-TabBar-tabCloseIcon { margin-left: 4px; } /* This font-awesome strategy may not work across FA4 and FA5, but we don't actually support closable tabs, so it really doesn't matter */ /* */ .jupyter-widgets.widget-tab > .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 > .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.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 */ .jupyter-widget-Collapse { display: flex; flex-direction: column; align-items: stretch; } .jupyter-widget-Collapse-header { padding: var(--jp-widgets-input-padding); cursor: pointer; color: var(--jp-ui-font-color2); background-color: var(--jp-layout-color2); border: var(--jp-widgets-border-width) solid var(--jp-border-color1); padding: calc(var(--jp-widgets-container-padding) * 2 / 3) var(--jp-widgets-container-padding); font-weight: bold; } .jupyter-widget-Collapse-header:hover { background-color: var(--jp-layout-color1); color: var(--jp-ui-font-color1); } .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; } .jupyter-widget-Collapse-contents { padding: var(--jp-widgets-container-padding); background-color: var(--jp-layout-color1); color: var(--jp-ui-font-color1); border-left: var(--jp-widgets-border-width) solid var(--jp-border-color1); border-right: var(--jp-widgets-border-width) solid var(--jp-border-color1); border-bottom: var(--jp-widgets-border-width) solid var(--jp-border-color1); overflow: auto; } .jupyter-widget-Accordion { display: flex; flex-direction: column; align-items: stretch; } .jupyter-widget-Accordion .jupyter-widget-Collapse { margin-bottom: 0; } .jupyter-widget-Accordion .jupyter-widget-Collapse + .jupyter-widget-Collapse { margin-top: 4px; } /* HTML widget */ /* */ .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, /* */ .jupyter-widget-html > .jupyter-widget-html-content, .jupyter-widget-htmlmath > .jupyter-widget-html-content { /* Fill out the area in the HTML widget */ align-self: stretch; flex-grow: 1; flex-shrink: 1; /* Makes sure the baseline is still aligned with other elements */ line-height: var(--jp-widgets-inline-height); /* Make it possible to have absolutely-positioned elements in the html */ position: relative; } /* Image widget */ /* */ .widget-image, /* */ .jupyter-widget-image { max-width: 100%; height: auto; }