Debian Codegraph @

jupyter-widgets-controls/css/labvariables.css

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