flexlayout-react 0.5.20 → 0.6.2
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/ChangeLog.txt +22 -0
- package/README.md +9 -13
- package/declarations/Types.d.ts +2 -0
- package/declarations/model/IJsonModel.d.ts +3 -0
- package/declarations/model/Model.d.ts +2 -0
- package/declarations/view/Icons.d.ts +6 -0
- package/declarations/view/Layout.d.ts +23 -10
- package/declarations/view/MenuTabButton.d.ts +1 -0
- package/declarations/view/TabButtonStamp.d.ts +1 -0
- package/declarations/view/Utils.d.ts +1 -0
- package/dist/flexlayout.js +49 -13
- package/dist/flexlayout_min.js +1 -1
- package/lib/PopupMenu.js +10 -6
- package/lib/PopupMenu.js.map +1 -1
- package/lib/Types.js +2 -0
- package/lib/Types.js.map +1 -1
- package/lib/model/Model.js +8 -0
- package/lib/model/Model.js.map +1 -1
- package/lib/model/TabNode.js +6 -1
- package/lib/model/TabNode.js.map +1 -1
- package/lib/view/BorderButton.js +9 -39
- package/lib/view/BorderButton.js.map +1 -1
- package/lib/view/BorderTabSet.js +21 -8
- package/lib/view/BorderTabSet.js.map +1 -1
- package/lib/view/FloatingWindow.js +13 -5
- package/lib/view/FloatingWindow.js.map +1 -1
- package/lib/view/Icons.js +36 -0
- package/lib/view/Icons.js.map +1 -0
- package/lib/view/Layout.js +58 -13
- package/lib/view/Layout.js.map +1 -1
- package/lib/view/MenuTabButton.js +22 -0
- package/lib/view/MenuTabButton.js.map +1 -0
- package/lib/view/Tab.js +7 -4
- package/lib/view/Tab.js.map +1 -1
- package/lib/view/TabButton.js +13 -46
- package/lib/view/TabButton.js.map +1 -1
- package/lib/view/TabButtonStamp.js +22 -0
- package/lib/view/TabButtonStamp.js.map +1 -0
- package/lib/view/TabFloating.js +5 -3
- package/lib/view/TabFloating.js.map +1 -1
- package/lib/view/TabOverflowHook.js +3 -1
- package/lib/view/TabOverflowHook.js.map +1 -1
- package/lib/view/TabSet.js +29 -24
- package/lib/view/TabSet.js.map +1 -1
- package/lib/view/Utils.js +61 -0
- package/lib/view/Utils.js.map +1 -0
- package/package.json +3 -3
- package/src/I18nLabel.ts +1 -1
- package/src/PopupMenu.tsx +25 -8
- package/src/Types.ts +2 -0
- package/src/model/IJsonModel.ts +3 -0
- package/src/model/Model.ts +12 -0
- package/src/model/TabNode.ts +6 -1
- package/src/view/BorderButton.tsx +8 -41
- package/src/view/BorderTabSet.tsx +28 -8
- package/src/view/FloatingWindow.tsx +14 -6
- package/src/view/Icons.tsx +36 -0
- package/src/view/Layout.tsx +88 -34
- package/src/view/Tab.tsx +9 -4
- package/src/view/TabButton.tsx +18 -55
- package/src/view/TabButtonStamp.tsx +47 -0
- package/src/view/TabFloating.tsx +5 -3
- package/src/view/TabOverflowHook.tsx +3 -2
- package/src/view/TabSet.tsx +33 -21
- package/src/view/Utils.tsx +71 -0
- package/style/_base.scss +81 -46
- package/style/dark.css +79 -68
- package/style/dark.css.map +1 -1
- package/style/dark.scss +15 -5
- package/style/gray.css +76 -65
- package/style/gray.css.map +1 -1
- package/style/gray.scss +10 -3
- package/style/light.css +80 -69
- package/style/light.css.map +1 -1
- package/style/light.scss +16 -6
- package/images/close.png +0 -0
- package/images/maximize.png +0 -0
- package/images/more.png +0 -0
- package/images/more2.png +0 -0
- package/images/popout.png +0 -0
- package/images/restore.png +0 -0
package/src/view/TabFloating.tsx
CHANGED
|
@@ -5,6 +5,7 @@ import TabSetNode from "../model/TabSetNode";
|
|
|
5
5
|
import { CLASSES } from "../Types";
|
|
6
6
|
import { ILayoutCallbacks } from "./Layout";
|
|
7
7
|
import { I18nLabel } from "../I18nLabel";
|
|
8
|
+
import { hideElement } from "./Utils";
|
|
8
9
|
|
|
9
10
|
/** @hidden @internal */
|
|
10
11
|
export interface ITabFloatingProps {
|
|
@@ -49,9 +50,10 @@ export const TabFloating = (props: ITabFloatingProps) => {
|
|
|
49
50
|
|
|
50
51
|
const cm = layout.getClassName;
|
|
51
52
|
|
|
52
|
-
const style: Record<string, any> = node._styleWithPosition(
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
const style: Record<string, any> = node._styleWithPosition();
|
|
54
|
+
if (!selected) {
|
|
55
|
+
hideElement(style, node.getModel().isUseVisibility());
|
|
56
|
+
}
|
|
55
57
|
|
|
56
58
|
const message = layout.i18nName(I18nLabel.Floating_Window_Message);
|
|
57
59
|
const showMessage = layout.i18nName(I18nLabel.Floating_Window_Show_Window);
|
|
@@ -20,6 +20,7 @@ export const useTabOverflow = (
|
|
|
20
20
|
const [position, setPosition] = React.useState<number>(0);
|
|
21
21
|
const userControlledLeft = React.useRef<boolean>(false);
|
|
22
22
|
const [hiddenTabs, setHiddenTabs] = React.useState<{ node: TabNode; index: number }[]>([]);
|
|
23
|
+
const lastHiddenCount = React.useRef<number>(0);
|
|
23
24
|
|
|
24
25
|
// if selected node or tabset/border rectangle change then unset usercontrolled (so selected tab will be kept in view)
|
|
25
26
|
React.useLayoutEffect(() => {
|
|
@@ -78,9 +79,11 @@ export const useTabOverflow = (
|
|
|
78
79
|
|
|
79
80
|
if (
|
|
80
81
|
firstRender.current === true ||
|
|
82
|
+
(lastHiddenCount.current === 0 && hiddenTabs.length !== 0) ||
|
|
81
83
|
nodeRect.width !== lastRect.current.width || // incase rect changed between first render and second
|
|
82
84
|
nodeRect.height !== lastRect.current.height
|
|
83
85
|
) {
|
|
86
|
+
lastHiddenCount.current = hiddenTabs.length;
|
|
84
87
|
lastRect.current = nodeRect;
|
|
85
88
|
const enabled = node instanceof TabSetNode ? node.isEnableTabStrip() === true : true;
|
|
86
89
|
let endPos = getFar(nodeRect) - stickyButtonsSize;
|
|
@@ -92,8 +95,6 @@ export const useTabOverflow = (
|
|
|
92
95
|
return; // nothing to do all tabs are shown in available space
|
|
93
96
|
}
|
|
94
97
|
|
|
95
|
-
endPos -= hiddenTabs.length > 0 ? (orientation === Orientation.HORZ ? 10 : 0) : 45; // will need hidden tabs
|
|
96
|
-
|
|
97
98
|
let shiftPos = 0;
|
|
98
99
|
|
|
99
100
|
const selectedTab = node.getSelectedNode() as TabNode;
|
package/src/view/TabSet.tsx
CHANGED
|
@@ -9,6 +9,7 @@ import { TabButton } from "./TabButton";
|
|
|
9
9
|
import { useTabOverflow } from "./TabOverflowHook";
|
|
10
10
|
import Orientation from "../Orientation";
|
|
11
11
|
import { CLASSES } from "../Types";
|
|
12
|
+
import { hideElement, isAuxMouseEvent } from "./Utils";
|
|
12
13
|
|
|
13
14
|
/** @hidden @internal */
|
|
14
15
|
export interface ITabSetProps {
|
|
@@ -16,7 +17,7 @@ export interface ITabSetProps {
|
|
|
16
17
|
node: TabSetNode;
|
|
17
18
|
iconFactory?: (node: TabNode) => React.ReactNode | undefined;
|
|
18
19
|
titleFactory?: (node: TabNode) => React.ReactNode | undefined;
|
|
19
|
-
icons
|
|
20
|
+
icons: IIcons;
|
|
20
21
|
editingTab?: TabNode;
|
|
21
22
|
path?: string;
|
|
22
23
|
}
|
|
@@ -33,8 +34,20 @@ export const TabSet = (props: ITabSetProps) => {
|
|
|
33
34
|
const { selfRef, position, userControlledLeft, hiddenTabs, onMouseWheel, tabsTruncated } = useTabOverflow(node, Orientation.HORZ, toolbarRef, stickyButtonsRef);
|
|
34
35
|
|
|
35
36
|
const onOverflowClick = (event: React.MouseEvent<HTMLElement, MouseEvent>) => {
|
|
36
|
-
const
|
|
37
|
-
|
|
37
|
+
const callback = layout.getShowOverflowMenu();
|
|
38
|
+
if (callback !== undefined) {
|
|
39
|
+
callback( node, event, hiddenTabs, onOverflowItemSelect);
|
|
40
|
+
} else {
|
|
41
|
+
const element = overflowbuttonRef.current!;
|
|
42
|
+
showPopup(
|
|
43
|
+
element,
|
|
44
|
+
hiddenTabs,
|
|
45
|
+
onOverflowItemSelect,
|
|
46
|
+
layout,
|
|
47
|
+
iconFactory,
|
|
48
|
+
titleFactory,
|
|
49
|
+
);
|
|
50
|
+
}
|
|
38
51
|
event.stopPropagation();
|
|
39
52
|
};
|
|
40
53
|
|
|
@@ -110,7 +123,7 @@ export const TabSet = (props: ITabSetProps) => {
|
|
|
110
123
|
let style = node._styleWithPosition();
|
|
111
124
|
|
|
112
125
|
if (node.getModel().getMaximizedTabset() !== undefined && !node.isMaximized()) {
|
|
113
|
-
style.
|
|
126
|
+
hideElement(style, node.getModel().isUseVisibility())
|
|
114
127
|
}
|
|
115
128
|
|
|
116
129
|
const tabs = [];
|
|
@@ -125,7 +138,6 @@ export const TabSet = (props: ITabSetProps) => {
|
|
|
125
138
|
path={path + "/tb" + i}
|
|
126
139
|
key={child.getId()}
|
|
127
140
|
selected={isSelected}
|
|
128
|
-
show={true}
|
|
129
141
|
height={node.getTabStripHeight()}
|
|
130
142
|
iconFactory={iconFactory}
|
|
131
143
|
titleFactory={titleFactory}
|
|
@@ -168,20 +180,28 @@ export const TabSet = (props: ITabSetProps) => {
|
|
|
168
180
|
let toolbar;
|
|
169
181
|
if (hiddenTabs.length > 0) {
|
|
170
182
|
const overflowTitle = layout.i18nName(I18nLabel.Overflow_Menu_Tooltip);
|
|
183
|
+
let overflowContent;
|
|
184
|
+
if (typeof icons.more === "function") {
|
|
185
|
+
overflowContent = icons.more(node, hiddenTabs);
|
|
186
|
+
} else {
|
|
187
|
+
overflowContent = (<>
|
|
188
|
+
{icons.more}
|
|
189
|
+
<div className={cm(CLASSES.FLEXLAYOUT__TAB_BUTTON_OVERFLOW_COUNT)}>{hiddenTabs.length}</div>
|
|
190
|
+
</>);
|
|
191
|
+
}
|
|
171
192
|
buttons.push(
|
|
172
193
|
<button
|
|
173
194
|
key="overflowbutton"
|
|
174
195
|
data-layout-path={path + "/button/overflow"}
|
|
175
196
|
|
|
176
197
|
ref={overflowbuttonRef}
|
|
177
|
-
className={cm(CLASSES.FLEXLAYOUT__TAB_BUTTON_OVERFLOW)}
|
|
198
|
+
className={cm(CLASSES.FLEXLAYOUT__TAB_TOOLBAR_BUTTON) + " " + cm(CLASSES.FLEXLAYOUT__TAB_BUTTON_OVERFLOW)}
|
|
178
199
|
title={overflowTitle}
|
|
179
200
|
onClick={onOverflowClick}
|
|
180
201
|
onMouseDown={onInterceptMouseDown}
|
|
181
202
|
onTouchStart={onInterceptMouseDown}
|
|
182
203
|
>
|
|
183
|
-
{
|
|
184
|
-
{hiddenTabs.length}
|
|
204
|
+
{overflowContent}
|
|
185
205
|
</button>
|
|
186
206
|
);
|
|
187
207
|
}
|
|
@@ -198,7 +218,7 @@ export const TabSet = (props: ITabSetProps) => {
|
|
|
198
218
|
onMouseDown={onInterceptMouseDown}
|
|
199
219
|
onTouchStart={onInterceptMouseDown}
|
|
200
220
|
>
|
|
201
|
-
{icons
|
|
221
|
+
{(typeof icons.popout === "function") ? icons.popout(selectedTabNode) : icons.popout}
|
|
202
222
|
</button>
|
|
203
223
|
);
|
|
204
224
|
}
|
|
@@ -216,7 +236,9 @@ export const TabSet = (props: ITabSetProps) => {
|
|
|
216
236
|
onMouseDown={onInterceptMouseDown}
|
|
217
237
|
onTouchStart={onInterceptMouseDown}
|
|
218
238
|
>
|
|
219
|
-
{node.isMaximized() ?
|
|
239
|
+
{node.isMaximized() ?
|
|
240
|
+
(typeof icons.restore === "function") ? icons.restore(node) : icons.restore :
|
|
241
|
+
(typeof icons.maximize === "function") ? icons.maximize(node) : icons.maximize }
|
|
220
242
|
</button>
|
|
221
243
|
);
|
|
222
244
|
}
|
|
@@ -234,7 +256,7 @@ export const TabSet = (props: ITabSetProps) => {
|
|
|
234
256
|
onMouseDown={onInterceptMouseDown}
|
|
235
257
|
onTouchStart={onInterceptMouseDown}
|
|
236
258
|
>
|
|
237
|
-
{icons
|
|
259
|
+
{(typeof icons.closeTabset === "function") ? icons.closeTabset(node) : icons.closeTabset}
|
|
238
260
|
</button>
|
|
239
261
|
);
|
|
240
262
|
}
|
|
@@ -347,14 +369,4 @@ export const TabSet = (props: ITabSetProps) => {
|
|
|
347
369
|
);
|
|
348
370
|
};
|
|
349
371
|
|
|
350
|
-
/** @hidden @internal */
|
|
351
|
-
export function isAuxMouseEvent(event: React.MouseEvent<HTMLDivElement, MouseEvent> | React.TouchEvent<HTMLDivElement>) {
|
|
352
|
-
let auxEvent = false;
|
|
353
|
-
if (event.nativeEvent instanceof MouseEvent) {
|
|
354
|
-
if (event.nativeEvent.button !== 0 || event.ctrlKey || event.altKey || event.metaKey || event.shiftKey) {
|
|
355
|
-
auxEvent = true;
|
|
356
|
-
}
|
|
357
|
-
}
|
|
358
|
-
return auxEvent;
|
|
359
|
-
}
|
|
360
372
|
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import TabNode from "../model/TabNode";
|
|
3
|
+
import { ILayoutCallbacks, ITitleObject } from "./Layout";
|
|
4
|
+
|
|
5
|
+
/** @hidden @internal */
|
|
6
|
+
export function getRenderStateEx (
|
|
7
|
+
layout: ILayoutCallbacks,
|
|
8
|
+
node: TabNode,
|
|
9
|
+
iconFactory?: (node: TabNode) => React.ReactNode | undefined,
|
|
10
|
+
titleFactory?: (node: TabNode) => React.ReactNode | undefined
|
|
11
|
+
) {
|
|
12
|
+
let leadingContent = iconFactory ? iconFactory(node) : undefined;
|
|
13
|
+
let titleContent: React.ReactNode = node.getName();
|
|
14
|
+
let name = node.getName();
|
|
15
|
+
|
|
16
|
+
function isTitleObject(obj: any): obj is ITitleObject {
|
|
17
|
+
return obj.titleContent !== undefined
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
if (titleFactory !== undefined) {
|
|
21
|
+
const titleObj = titleFactory(node);
|
|
22
|
+
if (titleObj !== undefined) {
|
|
23
|
+
if (typeof titleObj === "string") {
|
|
24
|
+
titleContent = titleObj as string;
|
|
25
|
+
name = titleObj as string;
|
|
26
|
+
} else if (isTitleObject(titleObj)) {
|
|
27
|
+
titleContent = titleObj.titleContent;
|
|
28
|
+
name = titleObj.name;
|
|
29
|
+
} else {
|
|
30
|
+
titleContent = titleObj;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
if (leadingContent === undefined && node.getIcon() !== undefined) {
|
|
36
|
+
leadingContent = <img style={{width:"1em", height:"1em"}} src={node.getIcon()} alt="leadingContent" />;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
let buttons: any[] = [];
|
|
40
|
+
|
|
41
|
+
// allow customization of leading contents (icon) and contents
|
|
42
|
+
const renderState = { leading: leadingContent, content: titleContent, name, buttons };
|
|
43
|
+
layout.customizeTab(node, renderState);
|
|
44
|
+
|
|
45
|
+
node._setRenderedName(renderState.name);
|
|
46
|
+
|
|
47
|
+
return renderState;
|
|
48
|
+
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/** @hidden @internal */
|
|
52
|
+
export function hideElement(style: Record<string, any>, useVisibility: ConstrainBoolean ) {
|
|
53
|
+
if (useVisibility) {
|
|
54
|
+
style.visibility = "hidden";
|
|
55
|
+
} else {
|
|
56
|
+
style.display = "none";
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
/** @hidden @internal */
|
|
62
|
+
export function isAuxMouseEvent(event: React.MouseEvent<HTMLDivElement, MouseEvent> | React.TouchEvent<HTMLDivElement>) {
|
|
63
|
+
let auxEvent = false;
|
|
64
|
+
if (event.nativeEvent instanceof MouseEvent) {
|
|
65
|
+
if (event.nativeEvent.button !== 0 || event.ctrlKey || event.altKey || event.metaKey || event.shiftKey) {
|
|
66
|
+
auxEvent = true;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
return auxEvent;
|
|
70
|
+
}
|
|
71
|
+
|
package/style/_base.scss
CHANGED
|
@@ -19,6 +19,8 @@
|
|
|
19
19
|
--color-6: #{$color_6};
|
|
20
20
|
--color-drag1: #{$color_drag1};
|
|
21
21
|
--color-drag2: #{$color_drag2};
|
|
22
|
+
--color-drag1-background: #{$color_drag1_background};
|
|
23
|
+
--color-drag2-background: #{$color_drag2_background};
|
|
22
24
|
|
|
23
25
|
--font-size: #{$font-size};
|
|
24
26
|
--font-family: #{$font-family};
|
|
@@ -55,14 +57,14 @@
|
|
|
55
57
|
pointer-events: none;
|
|
56
58
|
box-sizing: border-box;
|
|
57
59
|
border: 2px solid var(--color-drag1);
|
|
58
|
-
|
|
60
|
+
background: var(--color-drag1-background);
|
|
59
61
|
border-radius: 5px;
|
|
60
62
|
z-index: 1000;
|
|
61
63
|
|
|
62
64
|
&_edge {
|
|
63
65
|
pointer-events: none;
|
|
64
66
|
border: 2px solid var(--color-drag2);
|
|
65
|
-
|
|
67
|
+
background: var(--color-drag2-background);
|
|
66
68
|
border-radius: 5px;
|
|
67
69
|
z-index: 1000;
|
|
68
70
|
box-sizing: border-box;
|
|
@@ -94,7 +96,7 @@
|
|
|
94
96
|
justify-content: center;
|
|
95
97
|
flex-direction: column;
|
|
96
98
|
overflow: hidden;
|
|
97
|
-
padding:
|
|
99
|
+
padding: 0.5em 1em;
|
|
98
100
|
word-wrap: break-word;
|
|
99
101
|
font-size: var(--font-size);
|
|
100
102
|
font-family: var(--font-family);
|
|
@@ -157,6 +159,9 @@
|
|
|
157
159
|
|
|
158
160
|
&_tab_container {
|
|
159
161
|
display: flex;
|
|
162
|
+
gap: 4px;
|
|
163
|
+
padding-left: 4px;
|
|
164
|
+
padding-right: 4px;
|
|
160
165
|
box-sizing: border-box;
|
|
161
166
|
position: absolute;
|
|
162
167
|
top: 0;
|
|
@@ -182,6 +187,14 @@
|
|
|
182
187
|
}
|
|
183
188
|
}
|
|
184
189
|
|
|
190
|
+
&__tab_button_stamp {
|
|
191
|
+
display: inline-flex;
|
|
192
|
+
align-items: center;
|
|
193
|
+
gap: 0.3em;
|
|
194
|
+
white-space: nowrap;
|
|
195
|
+
box-sizing: border-box;
|
|
196
|
+
}
|
|
197
|
+
|
|
185
198
|
&__tab {
|
|
186
199
|
overflow: auto;
|
|
187
200
|
position: absolute;
|
|
@@ -191,10 +204,11 @@
|
|
|
191
204
|
|
|
192
205
|
&_button {
|
|
193
206
|
display: flex;
|
|
207
|
+
gap: 0.3em;
|
|
194
208
|
align-items: center;
|
|
195
209
|
box-sizing: border-box;
|
|
196
|
-
padding: 3px
|
|
197
|
-
|
|
210
|
+
padding: 3px 0.5em; // if you change top or bottom update the tabset_sizer above
|
|
211
|
+
|
|
198
212
|
cursor: pointer;
|
|
199
213
|
@include tab_button_mixin;
|
|
200
214
|
|
|
@@ -243,65 +257,74 @@
|
|
|
243
257
|
|
|
244
258
|
&_trailing {
|
|
245
259
|
display: flex;
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
260
|
+
visibility: hidden;
|
|
261
|
+
border-radius: 4px;
|
|
262
|
+
&:hover {
|
|
263
|
+
@include close_button_hovered_mixin;
|
|
264
|
+
}
|
|
249
265
|
}
|
|
250
266
|
@media (pointer: coarse) {
|
|
251
267
|
&_trailing {
|
|
252
|
-
min-width: 20px;
|
|
253
|
-
min-height: 20px;
|
|
254
268
|
}
|
|
255
269
|
}
|
|
256
270
|
@media (hover: hover) {
|
|
257
271
|
&:hover &_trailing {
|
|
258
|
-
|
|
272
|
+
visibility: visible;
|
|
259
273
|
}
|
|
260
274
|
}
|
|
261
275
|
|
|
262
276
|
&--selected &_trailing {
|
|
263
|
-
|
|
277
|
+
visibility: visible;
|
|
264
278
|
}
|
|
265
279
|
|
|
266
280
|
&_overflow {
|
|
267
|
-
|
|
268
|
-
|
|
281
|
+
display: flex;
|
|
282
|
+
align-items: center;
|
|
269
283
|
border: none;
|
|
270
284
|
color: gray;
|
|
271
285
|
font-size: inherit;
|
|
272
|
-
background: transparent
|
|
286
|
+
background-color: transparent;
|
|
273
287
|
}
|
|
274
288
|
}
|
|
275
289
|
|
|
276
290
|
&_toolbar {
|
|
277
291
|
display: flex;
|
|
278
292
|
align-items: center;
|
|
293
|
+
gap: .3em;
|
|
294
|
+
padding-left: .5em;
|
|
295
|
+
padding-right: .3em;
|
|
279
296
|
|
|
280
297
|
&_button {
|
|
281
|
-
min-width: 20px;
|
|
282
|
-
min-height: 20px;
|
|
283
298
|
border: none;
|
|
284
299
|
outline: none;
|
|
300
|
+
font-size: inherit;
|
|
301
|
+
margin: 0px;
|
|
302
|
+
background-color: transparent;
|
|
303
|
+
border-radius: 4px;
|
|
304
|
+
padding: 1px;
|
|
305
|
+
@media (hover: hover) {
|
|
306
|
+
&:hover {
|
|
307
|
+
@include toolbar_button_hovered_mixin;
|
|
308
|
+
}
|
|
309
|
+
}
|
|
285
310
|
|
|
286
311
|
&-min {
|
|
287
|
-
background: transparent url("../images/maximize.png") no-repeat center;
|
|
288
312
|
}
|
|
289
313
|
|
|
290
314
|
&-max {
|
|
291
|
-
background: transparent url("../images/restore.png") no-repeat center;
|
|
292
315
|
}
|
|
293
316
|
|
|
294
317
|
&-float {
|
|
295
|
-
background: transparent url("../images/popout.png") no-repeat center;
|
|
296
318
|
}
|
|
297
319
|
|
|
298
320
|
&-close {
|
|
299
|
-
background: transparent url("../images/close.png") no-repeat center;
|
|
300
321
|
}
|
|
301
322
|
}
|
|
302
323
|
|
|
303
324
|
&_sticky_buttons_container {
|
|
304
325
|
display: flex;
|
|
326
|
+
gap: 0.3em;
|
|
327
|
+
padding-left: 2px;
|
|
305
328
|
align-items: center;
|
|
306
329
|
}
|
|
307
330
|
}
|
|
@@ -375,6 +398,9 @@
|
|
|
375
398
|
&_tab_container {
|
|
376
399
|
white-space: nowrap;
|
|
377
400
|
display: flex;
|
|
401
|
+
gap: 4px;
|
|
402
|
+
padding-left: 2px;
|
|
403
|
+
padding-right: 2px;
|
|
378
404
|
box-sizing: border-box;
|
|
379
405
|
position: absolute;
|
|
380
406
|
top: 0;
|
|
@@ -395,10 +421,11 @@
|
|
|
395
421
|
|
|
396
422
|
&_button {
|
|
397
423
|
display: flex;
|
|
424
|
+
gap: 0.3em;
|
|
398
425
|
align-items: center;
|
|
399
426
|
cursor: pointer;
|
|
400
|
-
padding: 3px
|
|
401
|
-
margin: 2px;
|
|
427
|
+
padding: 3px 0.5em;
|
|
428
|
+
margin: 2px 0px;
|
|
402
429
|
box-sizing: border-box;
|
|
403
430
|
white-space: nowrap;
|
|
404
431
|
@include border_button_mixin;
|
|
@@ -426,68 +453,76 @@
|
|
|
426
453
|
|
|
427
454
|
&_trailing {
|
|
428
455
|
display: flex;
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
456
|
+
border-radius: 4px;
|
|
457
|
+
visibility: hidden;
|
|
458
|
+
&:hover {
|
|
459
|
+
@include close_button_hovered_mixin;
|
|
460
|
+
}
|
|
432
461
|
}
|
|
433
|
-
|
|
434
462
|
@media (pointer: coarse) {
|
|
435
463
|
&_trailing {
|
|
436
|
-
min-width: 20px;
|
|
437
|
-
min-height: 20px;
|
|
438
464
|
}
|
|
439
465
|
}
|
|
440
|
-
|
|
441
466
|
@media (hover: hover) {
|
|
442
467
|
&:hover &_trailing {
|
|
443
|
-
|
|
468
|
+
visibility: visible;
|
|
444
469
|
}
|
|
445
470
|
}
|
|
446
471
|
|
|
447
472
|
&--selected &_trailing {
|
|
448
|
-
|
|
473
|
+
visibility: visible;
|
|
449
474
|
}
|
|
450
475
|
}
|
|
451
476
|
|
|
452
477
|
&_toolbar {
|
|
453
478
|
display: flex;
|
|
479
|
+
gap: .3em;
|
|
454
480
|
align-items: center;
|
|
455
481
|
|
|
456
|
-
&_left
|
|
482
|
+
&_left,
|
|
483
|
+
&_right {
|
|
457
484
|
flex-direction: column;
|
|
485
|
+
padding-top: .5em;
|
|
486
|
+
padding-bottom: .3em;
|
|
458
487
|
}
|
|
459
488
|
|
|
460
|
-
&
|
|
461
|
-
|
|
489
|
+
&_top,
|
|
490
|
+
&_bottom {
|
|
491
|
+
padding-left: .5em;
|
|
492
|
+
padding-right: .3em;
|
|
462
493
|
}
|
|
463
494
|
|
|
464
495
|
&_button {
|
|
465
|
-
min-width: 20px;
|
|
466
|
-
min-height: 20px;
|
|
467
496
|
border: none;
|
|
468
497
|
outline: none;
|
|
469
|
-
|
|
498
|
+
font-size: inherit;
|
|
499
|
+
background-color: transparent;
|
|
500
|
+
border-radius: 4px;
|
|
501
|
+
padding: 1px;
|
|
502
|
+
@media (hover: hover) {
|
|
503
|
+
&:hover {
|
|
504
|
+
@include toolbar_button_hovered_mixin;
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
|
|
470
508
|
&-float {
|
|
471
|
-
background: transparent url("../images/popout.png") no-repeat center;
|
|
472
509
|
}
|
|
473
510
|
|
|
474
511
|
&_overflow {
|
|
512
|
+
display: flex;
|
|
513
|
+
align-items: center;
|
|
475
514
|
border: none;
|
|
476
|
-
padding-left: 12px;
|
|
477
515
|
color: gray;
|
|
478
516
|
font-size: inherit;
|
|
479
|
-
background: transparent
|
|
517
|
+
background-color: transparent;
|
|
480
518
|
}
|
|
481
519
|
|
|
482
520
|
&_overflow_top,
|
|
483
521
|
&_overflow_bottom {
|
|
484
|
-
margin-left: 10px;
|
|
485
522
|
}
|
|
486
523
|
|
|
487
524
|
&_overflow_right,
|
|
488
525
|
&_overflow_left {
|
|
489
|
-
padding-right: 0px;
|
|
490
|
-
margin-top: 5px;
|
|
491
526
|
}
|
|
492
527
|
}
|
|
493
528
|
}
|
|
@@ -498,8 +533,7 @@
|
|
|
498
533
|
font-family: var(--font-family);
|
|
499
534
|
|
|
500
535
|
&_item {
|
|
501
|
-
|
|
502
|
-
padding: 2px 10px 2px 10px;
|
|
536
|
+
padding: 2px 0.5em;
|
|
503
537
|
white-space: nowrap;
|
|
504
538
|
cursor: pointer;
|
|
505
539
|
border-radius: 2px;
|
|
@@ -522,6 +556,7 @@
|
|
|
522
556
|
max-height: 50%;
|
|
523
557
|
min-width: 100px;
|
|
524
558
|
overflow: auto;
|
|
559
|
+
padding: 2px;
|
|
525
560
|
}
|
|
526
561
|
}
|
|
527
562
|
|