| 1 |
/*! |
| 2 |
* VisualEditor ContentEditable attached root node styles. |
| 3 |
* |
| 4 |
* @copyright See AUTHORS.txt |
| 5 |
*/ |
| 6 |
|
| 7 |
.ve-ce-attachedRootNode { |
| 8 |
cursor: text; |
| 9 |
/* Prevent excess scrolling when surface padding is added */ |
| 10 |
box-sizing: border-box; |
| 11 |
|
| 12 |
.ve-ce-surface-readOnly & { |
| 13 |
/* Hide the caret (text cursor) when read-only */ |
| 14 |
caret-color: transparent; |
| 15 |
} |
| 16 |
|
| 17 |
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */ |
| 18 |
&::selection, |
| 19 |
& *::selection { |
| 20 |
background: fade( #6da9f7, 50% ); |
| 21 |
} |
| 22 |
|
| 23 |
& [ contentEditable='false' ] { |
| 24 |
/* Reset styles applied to ce=true by Chrome (T207426) */ |
| 25 |
overflow-wrap: initial; |
| 26 |
-webkit-line-break: initial; |
| 27 |
} |
| 28 |
} |