| 1 |
@import 'mediawiki.skin.variables.less'; |
| 2 |
|
| 3 |
.ext-WikiEditor-realtimepreview-button { |
| 4 |
&:hover { |
| 5 |
background-color: @background-color-interactive; |
| 6 |
} |
| 7 |
|
| 8 |
&.oo-ui-toggleWidget-on .oo-ui-labelElement-label { |
| 9 |
color: @color-progressive; |
| 10 |
} |
| 11 |
|
| 12 |
&.oo-ui-buttonElement-frameless.oo-ui-labelElement.oo-ui-iconElement:first-child { |
| 13 |
margin-left: 0; |
| 14 |
} |
| 15 |
} |
| 16 |
|
| 17 |
/* stylelint-disable selector-max-id */ |
| 18 |
.ext-WikiEditor-realtimepreview-textbox#wpTextbox1, |
| 19 |
.mw-editform .ext-WikiEditor-realtimepreview-textbox#wpTextbox1 { |
| 20 |
resize: none; |
| 21 |
height: 100%; |
| 22 |
min-height: auto; |
| 23 |
max-height: none; |
| 24 |
} |
| 25 |
|
| 26 |
.ext-WikiEditor-realtimepreview-preview { |
| 27 |
padding: 0 6px; |
| 28 |
position: relative; |
| 29 |
} |
| 30 |
|
| 31 |
.wikiEditor-ui .wikiEditor-ui-view { |
| 32 |
border-bottom: 0; |
| 33 |
} |
| 34 |
|
| 35 |
.ext-WikiEditor-ResizingDragBar-ns { |
| 36 |
border-top: @border-width-base @border-style-base @border-color-subtle; |
| 37 |
} |
| 38 |
|
| 39 |
@width-loading-bar: 20%; |
| 40 |
|
| 41 |
.ext-WikiEditor-realtimepreview-loadingbar div { |
| 42 |
position: absolute; |
| 43 |
z-index: 5; |
| 44 |
display: block; |
| 45 |
opacity: 1; |
| 46 |
content: ' '; |
| 47 |
background-color: @background-color-progressive; |
| 48 |
width: @width-loading-bar; |
| 49 |
height: 4px; |
| 50 |
// Hide the loading bar to start with; it'll be shown if the loading state persists for more than 1s. |
| 51 |
visibility: hidden; |
| 52 |
animation: loading-bar 1.5s 1s infinite linear alternate; |
| 53 |
} |
| 54 |
|
| 55 |
@keyframes loading-bar { |
| 56 |
0% { |
| 57 |
visibility: visible; |
| 58 |
left: 0; |
| 59 |
} |
| 60 |
|
| 61 |
100% { |
| 62 |
left: calc( 100% - @width-loading-bar ); |
| 63 |
} |
| 64 |
} |
| 65 |
|
| 66 |
.ext-WikiEditor-twopanes-pane2 { |
| 67 |
.ext-WikiEditor-reloadButton { |
| 68 |
opacity: 0; |
| 69 |
transition: opacity 100ms; |
| 70 |
position: absolute; |
| 71 |
top: 8px; |
| 72 |
right: 15px; |
| 73 |
z-index: 5; |
| 74 |
box-shadow: 0 2px 2px 0 rgba( 0, 0, 0, 0.25 ); |
| 75 |
} |
| 76 |
|
| 77 |
&:hover .ext-WikiEditor-reloadButton { |
| 78 |
opacity: 1; |
| 79 |
} |
| 80 |
} |