Files
firefox/devtools/client/shared/components/splitter/GridElementResizer.css
T
Nicolas Chevobbe 98f5f7f1ef Bug 1521452 - Create a GridElementWidthResizer component. r=Honza.
This component is placed by the consumer on a grid, and act on
one of the grid element size.
The component can be placed at the inline start or the inline end
of the area it is in.
This component relies on the existing Draggable component.
A test is added to ensure this works as expected.

Differential Revision: https://phabricator.services.mozilla.com/D37686
2019-07-12 16:48:27 +00:00

36 lines
928 B
CSS

/* vim:set ts=2 sw=2 sts=2 et: */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
.grid-element-width-resizer {
border-inline-style: solid;
border-inline-color: var(--theme-splitter-color);
border-inline-width: 0;
width: 10px;
z-index: 1;
}
.grid-element-width-resizer.start {
justify-self: start;
border-inline-start-width: 1px;
}
.grid-element-width-resizer.end {
justify-self: end;
border-inline-end-width: 1px;
}
.dragging,
.dragging * {
/* When resizing, we keep the "resize" cursor on every element we might hover */
cursor: ew-resize !important;
/* This prevents to trigger some :hover style and is better for performance
* when resizing */
pointer-events: none !important;
}
.grid-element-width-resizer {
cursor: ew-resize;
}