@jupyterlab/ui-components 4.1.0-alpha.3 → 4.1.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/accordiontoolbar.d.ts +1 -1
- package/lib/components/accordiontoolbar.js +2 -2
- package/lib/components/htmlselect.js +6 -1
- package/lib/components/htmlselect.js.map +1 -1
- package/lib/components/sidepanel.js +0 -1
- package/lib/components/sidepanel.js.map +1 -1
- package/lib/components/toolbar.d.ts +10 -0
- package/lib/components/toolbar.js +145 -60
- package/lib/components/toolbar.js.map +1 -1
- package/lib/icon/labicon.d.ts +5 -1
- package/lib/icon/labicon.js +28 -12
- package/lib/icon/labicon.js.map +1 -1
- package/package.json +10 -8
- package/src/components/accordiontoolbar.ts +2 -2
- package/src/components/htmlselect.tsx +7 -0
- package/src/components/sidepanel.ts +0 -1
- package/src/components/toolbar.tsx +199 -95
- package/src/icon/labicon.tsx +35 -17
- package/style/toolbar.css +40 -53
package/style/toolbar.css
CHANGED
|
@@ -5,67 +5,48 @@
|
|
|
5
5
|
|
|
6
6
|
:root {
|
|
7
7
|
--jp-private-toolbar-height: calc(
|
|
8
|
-
|
|
8
|
+
31px + var(--jp-border-width)
|
|
9
9
|
); /* leave 28px for content */
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
+
.jp-MainAreaWidget > .jp-Toolbar {
|
|
13
|
+
border-radius: 0;
|
|
14
|
+
}
|
|
15
|
+
|
|
12
16
|
.jp-Toolbar {
|
|
17
|
+
/* Increase density for toolbar */
|
|
18
|
+
--design-unit: 3.5;
|
|
19
|
+
--toolbar-item-gap: 0;
|
|
20
|
+
|
|
13
21
|
color: var(--jp-ui-font-color1);
|
|
14
|
-
flex: 0 0 auto;
|
|
15
|
-
display: flex;
|
|
16
|
-
flex-direction: row;
|
|
17
22
|
border-bottom: var(--jp-border-width) solid var(--jp-toolbar-border-color);
|
|
18
23
|
box-shadow: var(--jp-toolbar-box-shadow);
|
|
19
24
|
background: var(--jp-toolbar-background);
|
|
20
25
|
min-height: var(--jp-toolbar-micro-height);
|
|
21
26
|
padding: 2px;
|
|
22
27
|
z-index: 8;
|
|
23
|
-
overflow-x: hidden;
|
|
24
28
|
}
|
|
25
29
|
|
|
26
30
|
/* Toolbar items */
|
|
27
31
|
|
|
28
|
-
.jp-Toolbar > .jp-Toolbar-item.jp-Toolbar-spacer {
|
|
29
|
-
flex-grow: 1;
|
|
30
|
-
flex-shrink: 1;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.jp-Toolbar-item.jp-Toolbar-kernelStatus {
|
|
34
|
-
display: inline-block;
|
|
35
|
-
width: 32px;
|
|
36
|
-
background-repeat: no-repeat;
|
|
37
|
-
background-position: center;
|
|
38
|
-
background-size: 16px;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
32
|
.jp-Toolbar > .jp-Toolbar-item {
|
|
42
|
-
|
|
43
|
-
display: flex;
|
|
44
|
-
padding-left: 1px;
|
|
45
|
-
padding-right: 1px;
|
|
46
|
-
font-size: var(--jp-ui-font-size1);
|
|
47
|
-
line-height: var(--jp-private-toolbar-height);
|
|
33
|
+
/* Center the items in toolbar */
|
|
48
34
|
height: 100%;
|
|
49
|
-
|
|
35
|
+
display: flex;
|
|
36
|
+
align-items: center;
|
|
50
37
|
|
|
51
|
-
/*
|
|
38
|
+
/* Increase density for toolbar items */
|
|
39
|
+
--density: -4;
|
|
40
|
+
}
|
|
52
41
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
color: transparent;
|
|
56
|
-
border: none;
|
|
57
|
-
box-sizing: border-box;
|
|
58
|
-
outline: none;
|
|
59
|
-
appearance: none;
|
|
60
|
-
-webkit-appearance: none;
|
|
61
|
-
-moz-appearance: none;
|
|
62
|
-
padding: 0;
|
|
63
|
-
margin: 0;
|
|
42
|
+
.jp-Toolbar::part(positioning-region) {
|
|
43
|
+
align-items: center;
|
|
64
44
|
}
|
|
65
45
|
|
|
66
|
-
button.jp-ToolbarButtonComponent,
|
|
67
46
|
.jp-ToolbarLabelComponent {
|
|
68
47
|
background: var(--jp-layout-color1);
|
|
48
|
+
background-color: var(--jp-brand-color1);
|
|
49
|
+
color: var(--jp-ui-inverse-font-color1);
|
|
69
50
|
border: none;
|
|
70
51
|
box-sizing: border-box;
|
|
71
52
|
outline: none;
|
|
@@ -79,18 +60,10 @@ button.jp-ToolbarButtonComponent,
|
|
|
79
60
|
display: flex;
|
|
80
61
|
align-items: center;
|
|
81
62
|
text-align: center;
|
|
82
|
-
font-size:
|
|
63
|
+
font-size: var(--jp-ui-font-size0);
|
|
83
64
|
min-width: unset;
|
|
84
65
|
min-height: unset;
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
button.jp-ToolbarButtonComponent:disabled {
|
|
88
|
-
opacity: 0.4;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
button.jp-ToolbarButtonComponent > span {
|
|
92
|
-
padding: 0;
|
|
93
|
-
flex: 0 0 auto;
|
|
66
|
+
user-select: none;
|
|
94
67
|
}
|
|
95
68
|
|
|
96
69
|
button.jp-ToolbarButtonComponent .jp-ToolbarButtonComponent-label {
|
|
@@ -101,11 +74,25 @@ button.jp-ToolbarButtonComponent .jp-ToolbarButtonComponent-label {
|
|
|
101
74
|
font-family: var(--jp-ui-font-family);
|
|
102
75
|
}
|
|
103
76
|
|
|
104
|
-
.jp-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
77
|
+
.jp-ToolbarButtonComponent::part(content) {
|
|
78
|
+
display: flex;
|
|
79
|
+
align-items: center;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.jp-Toolbar > .jp-Toolbar-item.jp-Toolbar-spacer {
|
|
83
|
+
flex-grow: 1;
|
|
84
|
+
flex-shrink: 1;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.jp-Toolbar-responsive-popup {
|
|
88
|
+
position: absolute;
|
|
89
|
+
height: fit-content;
|
|
90
|
+
border-bottom: var(--jp-border-width) solid var(--jp-toolbar-border-color);
|
|
91
|
+
box-shadow: var(--jp-toolbar-box-shadow);
|
|
92
|
+
background: var(--jp-toolbar-background);
|
|
93
|
+
z-index: 1;
|
|
94
|
+
right: 0;
|
|
95
|
+
top: 0;
|
|
109
96
|
}
|
|
110
97
|
|
|
111
98
|
#jp-main-dock-panel[data-mode='single-document']
|