2023-03-20 09:48:17 +00:00
|
|
|
@import 'mediawiki.skin.variables.less';
|
|
|
|
|
|
|
|
// TODO: Replace static color values as soon as a drag bar and its design tokens
|
|
|
|
// have been defined in Codex.
|
2021-11-18 10:50:17 +00:00
|
|
|
|
|
|
|
// The dimensions of the UI affordance (the little line in the draggable area).
|
|
|
|
@affordance-width: 4px;
|
2022-05-10 12:31:54 +00:00
|
|
|
@affordance-length: 52px;
|
2023-03-20 09:48:17 +00:00
|
|
|
@background-color-wikieditor-resizing-dragbar: #eaecf0;
|
|
|
|
@background-color-wikieditor-resizing-dragbar-ew: #f8f9fa;
|
|
|
|
@background-color-wikieditor-resizing-dragbar-drag: #c8ccd1;
|
|
|
|
@background-color-wikieditor-resizing-dragbar-drag--hover: #54595d;
|
2021-11-18 10:50:17 +00:00
|
|
|
|
|
|
|
.ext-WikiEditor-ResizingDragBar {
|
2023-03-20 09:48:17 +00:00
|
|
|
background-color: @background-color-wikieditor-resizing-dragbar;
|
2021-11-18 10:50:17 +00:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ext-WikiEditor-ResizingDragBar-ns {
|
|
|
|
cursor: ns-resize;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ext-WikiEditor-ResizingDragBar-ew {
|
|
|
|
cursor: ew-resize;
|
2023-03-20 09:48:17 +00:00
|
|
|
background-color: @background-color-wikieditor-resizing-dragbar-ew;
|
2021-11-18 10:50:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.ext-WikiEditor-ResizingDragBar span {
|
|
|
|
width: @affordance-length;
|
|
|
|
height: @affordance-width;
|
2023-03-20 09:48:17 +00:00
|
|
|
background-color: @background-color-wikieditor-resizing-dragbar-drag;
|
|
|
|
border-radius: @border-radius-base;
|
2021-11-18 10:50:17 +00:00
|
|
|
display: block;
|
2022-05-10 12:31:54 +00:00
|
|
|
margin: 2px;
|
2021-11-18 10:50:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.ext-WikiEditor-ResizingDragBar:hover span {
|
2023-03-20 09:48:17 +00:00
|
|
|
background-color: @background-color-wikieditor-resizing-dragbar-drag--hover;
|
2021-11-18 10:50:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.ext-WikiEditor-ResizingDragBar-ew span {
|
|
|
|
height: @affordance-length;
|
|
|
|
width: @affordance-width;
|
2023-03-20 09:48:17 +00:00
|
|
|
border-width: 0 @border-width-base;
|
2021-11-18 10:50:17 +00:00
|
|
|
}
|
2024-03-07 20:15:22 +00:00
|
|
|
|
|
|
|
// This is needed to make the CodeMirror editor height constrained to .wikiEditor-ui-text
|
|
|
|
// This only is needed when the ResizingDragBar is enabled.
|
|
|
|
.cm-editor {
|
|
|
|
// stylelint-disable-next-line declaration-no-important
|
|
|
|
height: 100% !important;
|
|
|
|
}
|