| 1 |
/*! |
| 2 |
* VisualEditor Surface styles. |
| 3 |
* |
| 4 |
* @copyright See AUTHORS.txt |
| 5 |
*/ |
| 6 |
|
| 7 |
.ve-ui-surface { |
| 8 |
position: relative; |
| 9 |
|
| 10 |
&::after { |
| 11 |
content: '.'; |
| 12 |
display: block; |
| 13 |
clear: both; |
| 14 |
visibility: hidden; |
| 15 |
line-height: 0; |
| 16 |
height: 0; |
| 17 |
} |
| 18 |
|
| 19 |
&-placeholder { |
| 20 |
opacity: 0.33; |
| 21 |
position: absolute; |
| 22 |
left: 0; |
| 23 |
right: 0; |
| 24 |
} |
| 25 |
|
| 26 |
&-placeholder, |
| 27 |
.ve-ce-attachedRootNode { |
| 28 |
/* Use an non-zero padding to disable margin collapse */ |
| 29 |
padding: 0.05px 0; |
| 30 |
} |
| 31 |
|
| 32 |
&-source-font { |
| 33 |
/* Support: Blink, Gecko, Webkit */ |
| 34 |
/* Specify a valid second value to fix size, see T176636 */ |
| 35 |
font-family: monospace, monospace; |
| 36 |
} |
| 37 |
|
| 38 |
&-source { |
| 39 |
.ve-ce-paragraphNode { |
| 40 |
/* Clear paragraph margin/padding, regardless of specificity, so it looks more like a textarea */ |
| 41 |
/* stylelint-disable-next-line declaration-no-important */ |
| 42 |
margin: 0 !important; |
| 43 |
/* stylelint-disable-next-line declaration-no-important */ |
| 44 |
padding: 0 !important; |
| 45 |
word-wrap: break-word; |
| 46 |
/* Support: Chrome<76, Firefox<69 */ |
| 47 |
/* Fallback for browsers which don't support break-spaces */ |
| 48 |
white-space: pre-wrap; |
| 49 |
/* T348006 */ |
| 50 |
white-space: break-spaces; |
| 51 |
} |
| 52 |
|
| 53 |
.ve-ui-surface-placeholder, |
| 54 |
.ve-ce-attachedRootNode { |
| 55 |
-moz-tab-size: 4; |
| 56 |
tab-size: 4; |
| 57 |
} |
| 58 |
} |
| 59 |
} |