mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/WikiEditor
synced 2024-11-27 17:50:44 +00:00
58e69d97b9
Replacing 'mediawiki.ui/variables.less' @import with new skin-aware 'mediawiki.skin.variables.less' standard. Also - replacing several static values with new Codex design token featuring skin variables. - reinstate static values only on resizeable drag bar. This is not a standardized component yet and will be revisited with further Codex component definitions in future. Bump required MediaWiki core version to v1.41.0. Bug: T319381 Bug: T332541 Change-Id: I323561894ddf23aa89f51439fc9df2b7642eaca5
74 lines
1.5 KiB
Plaintext
74 lines
1.5 KiB
Plaintext
@import 'mediawiki.skin.variables.less';
|
|
|
|
.ext-WikiEditor-realtimepreview-button:hover {
|
|
background-color: @background-color-interactive;
|
|
}
|
|
|
|
.ext-WikiEditor-realtimepreview-button.oo-ui-toggleWidget-on .oo-ui-labelElement-label {
|
|
color: @color-progressive;
|
|
}
|
|
|
|
/* stylelint-disable selector-max-id */
|
|
.ext-WikiEditor-realtimepreview-textbox#wpTextbox1,
|
|
.mw-editform .ext-WikiEditor-realtimepreview-textbox#wpTextbox1 {
|
|
resize: none;
|
|
height: 100%;
|
|
min-height: auto;
|
|
max-height: none;
|
|
}
|
|
|
|
.ext-WikiEditor-realtimepreview-preview {
|
|
padding: 0 6px;
|
|
position: relative;
|
|
}
|
|
|
|
.wikiEditor-ui .wikiEditor-ui-view {
|
|
border-bottom: 0;
|
|
}
|
|
|
|
.ext-WikiEditor-ResizingDragBar-ns {
|
|
border-top: @border-width-base @border-style-base @border-color-subtle;
|
|
}
|
|
|
|
@width-loading-bar: 20%;
|
|
|
|
.ext-WikiEditor-realtimepreview-loadingbar div {
|
|
position: absolute;
|
|
z-index: 5;
|
|
display: block;
|
|
opacity: 1;
|
|
content: ' ';
|
|
background-color: @background-color-progressive;
|
|
width: @width-loading-bar;
|
|
height: 4px;
|
|
// Hide the loading bar to start with; it'll be shown if the loading state persists for more than 1s.
|
|
visibility: hidden;
|
|
animation: loading-bar 1.5s 1s infinite linear alternate;
|
|
}
|
|
|
|
@keyframes loading-bar {
|
|
0% {
|
|
visibility: visible;
|
|
left: 0;
|
|
}
|
|
|
|
100% {
|
|
left: calc( 100% - @width-loading-bar );
|
|
}
|
|
}
|
|
|
|
.ext-WikiEditor-twopanes-pane2 {
|
|
.ext-WikiEditor-reloadButton {
|
|
opacity: 0;
|
|
transition: opacity 100ms;
|
|
position: absolute;
|
|
top: 8px;
|
|
right: 15px;
|
|
z-index: 5;
|
|
}
|
|
|
|
&:hover .ext-WikiEditor-reloadButton {
|
|
opacity: 1;
|
|
}
|
|
}
|