1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210
|
/*-----------------------------------------------------------------------------
| Copyright (c) Jupyter Development Team.
| Distributed under the terms of the Modified BSD License.
|----------------------------------------------------------------------------*/
/*
This file is copied from the JupyterLab project to define default styling for
when the widget styling is compiled down to eliminate CSS variables. We make one
change - we comment out the font import below.
*/
@import './materialcolors.css';
/*
The following CSS variables define the main, public API for styling JupyterLab.
These variables should be used by all plugins wherever possible. In other
words, plugins should not define custom colors, sizes, etc unless absolutely
necessary. This enables users to change the visual theme of JupyterLab
by changing these variables.
Many variables appear in an ordered sequence (0,1,2,3). These sequences
are designed to work well together, so for example, `--jp-border-color1` should
be used with `--jp-layout-color1`. The numbers have the following meanings:
* 0: super-primary, reserved for special emphasis
* 1: primary, most important under normal situations
* 2: secondary, next most important under normal situations
* 3: tertiary, next most important under normal situations
Throughout JupyterLab, we are mostly following principles from Google's
Material Design when selecting colors. We are not, however, following
all of MD as it is not optimized for dense, information rich UIs.
*/
/*
* Optional monospace font for input/output prompt.
*/
/* Commented out in ipywidgets since we don't need it. */
/* @import url('https://fonts.googleapis.com/css?family=Roboto+Mono'); */
/*
* Added for compatibility with output area
*/
:root {
--jp-icon-search: none;
--jp-ui-select-caret: none;
}
:root {
/* Borders
The following variables, specify the visual styling of borders in JupyterLab.
*/
--jp-border-width: 1px;
--jp-border-color0: var(--md-grey-700);
--jp-border-color1: var(--md-grey-500);
--jp-border-color2: var(--md-grey-300);
--jp-border-color3: var(--md-grey-100);
/* UI Fonts
The UI font CSS variables are used for the typography all of the JupyterLab
user interface elements that are not directly user generated content.
*/
--jp-ui-font-scale-factor: 1.2;
--jp-ui-font-size0: calc(
var(--jp-ui-font-size1) / var(--jp-ui-font-scale-factor)
);
--jp-ui-font-size1: 13px; /* Base font size */
--jp-ui-font-size2: calc(
var(--jp-ui-font-size1) * var(--jp-ui-font-scale-factor)
);
--jp-ui-font-size3: calc(
var(--jp-ui-font-size2) * var(--jp-ui-font-scale-factor)
);
--jp-ui-icon-font-size: 14px; /* Ensures px perfect FontAwesome icons */
--jp-ui-font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
/* Use these font colors against the corresponding main layout colors.
In a light theme, these go from dark to light.
*/
--jp-ui-font-color0: rgba(0, 0, 0, 1);
--jp-ui-font-color1: rgba(0, 0, 0, 0.8);
--jp-ui-font-color2: rgba(0, 0, 0, 0.5);
--jp-ui-font-color3: rgba(0, 0, 0, 0.3);
/* Use these against the brand/accent/warn/error colors.
These will typically go from light to darker, in both a dark and light theme
*/
--jp-ui-inverse-font-color0: rgba(255, 255, 255, 1);
--jp-ui-inverse-font-color1: rgba(255, 255, 255, 1);
--jp-ui-inverse-font-color2: rgba(255, 255, 255, 0.7);
--jp-ui-inverse-font-color3: rgba(255, 255, 255, 0.5);
/* Content Fonts
Content font variables are used for typography of user generated content.
*/
--jp-content-font-size: 13px;
--jp-content-line-height: 1.5;
--jp-content-font-color0: black;
--jp-content-font-color1: black;
--jp-content-font-color2: var(--md-grey-700);
--jp-content-font-color3: var(--md-grey-500);
--jp-ui-font-scale-factor: 1.2;
--jp-ui-font-size0: calc(
var(--jp-ui-font-size1) / var(--jp-ui-font-scale-factor)
);
--jp-ui-font-size1: 13px; /* Base font size */
--jp-ui-font-size2: calc(
var(--jp-ui-font-size1) * var(--jp-ui-font-scale-factor)
);
--jp-ui-font-size3: calc(
var(--jp-ui-font-size2) * var(--jp-ui-font-scale-factor)
);
--jp-code-font-size: 13px;
--jp-code-line-height: 1.307;
--jp-code-padding: 5px;
--jp-code-font-family: monospace;
/* Layout
The following are the main layout colors use in JupyterLab. In a light
theme these would go from light to dark.
*/
--jp-layout-color0: white;
--jp-layout-color1: white;
--jp-layout-color2: var(--md-grey-200);
--jp-layout-color3: var(--md-grey-400);
/* Brand/accent */
--jp-brand-color0: var(--md-blue-700);
--jp-brand-color1: var(--md-blue-500);
--jp-brand-color2: var(--md-blue-300);
--jp-brand-color3: var(--md-blue-100);
--jp-accent-color0: var(--md-green-700);
--jp-accent-color1: var(--md-green-500);
--jp-accent-color2: var(--md-green-300);
--jp-accent-color3: var(--md-green-100);
/* State colors (warn, error, success, info) */
--jp-warn-color0: var(--md-orange-700);
--jp-warn-color1: var(--md-orange-500);
--jp-warn-color2: var(--md-orange-300);
--jp-warn-color3: var(--md-orange-100);
--jp-error-color0: var(--md-red-700);
--jp-error-color1: var(--md-red-500);
--jp-error-color2: var(--md-red-300);
--jp-error-color3: var(--md-red-100);
--jp-success-color0: var(--md-green-700);
--jp-success-color1: var(--md-green-500);
--jp-success-color2: var(--md-green-300);
--jp-success-color3: var(--md-green-100);
--jp-info-color0: var(--md-cyan-700);
--jp-info-color1: var(--md-cyan-500);
--jp-info-color2: var(--md-cyan-300);
--jp-info-color3: var(--md-cyan-100);
/* Cell specific styles */
--jp-cell-padding: 5px;
--jp-cell-editor-background: #f7f7f7;
--jp-cell-editor-border-color: #cfcfcf;
--jp-cell-editor-background-edit: var(--jp-ui-layout-color1);
--jp-cell-editor-border-color-edit: var(--jp-brand-color1);
--jp-cell-prompt-width: 100px;
--jp-cell-prompt-font-family: 'Roboto Mono', monospace;
--jp-cell-prompt-letter-spacing: 0px;
--jp-cell-prompt-opacity: 1;
--jp-cell-prompt-opacity-not-active: 0.4;
--jp-cell-prompt-font-color-not-active: var(--md-grey-700);
/* A custom blend of MD grey and blue 600
* See https://meyerweb.com/eric/tools/color-blend/#546E7A:1E88E5:5:hex */
--jp-cell-inprompt-font-color: #307fc1;
/* A custom blend of MD grey and orange 600
* https://meyerweb.com/eric/tools/color-blend/#546E7A:F4511E:5:hex */
--jp-cell-outprompt-font-color: #bf5b3d;
/* Notebook specific styles */
--jp-notebook-padding: 10px;
--jp-notebook-scroll-padding: 100px;
/* Console specific styles */
--jp-console-background: var(--md-grey-100);
/* Toolbar specific styles */
--jp-toolbar-border-color: var(--md-grey-400);
--jp-toolbar-micro-height: 8px;
--jp-toolbar-background: var(--jp-layout-color0);
--jp-toolbar-box-shadow: 0px 0px 2px 0px rgba(0, 0, 0, 0.24);
--jp-toolbar-header-margin: 4px 4px 0px 4px;
--jp-toolbar-active-background: var(--md-grey-300);
}
|