| 1 |
/*! |
| 2 |
* VisualEditor ContentEditable ContentBranchNode styles. |
| 3 |
* |
| 4 |
* @copyright See AUTHORS.txt |
| 5 |
*/ |
| 6 |
|
| 7 |
/* |
| 8 |
* So that we don't need to use when rendering text with multiple consecutive spaces, and |
| 9 |
* that the browser doesn't insert when typing regular spaces, and that we can let the user |
| 10 |
* input actual non-breaking spaces in the text without having to guess if they're really needed. |
| 11 |
*/ |
| 12 |
.ve-ce-contentBranchNode { |
| 13 |
white-space: pre-wrap; |
| 14 |
|
| 15 |
&:empty::before { |
| 16 |
/* Hack for empty headings and paragraphs; can't use min-height because of IE */ |
| 17 |
content: url( data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7 ); |
| 18 |
} |
| 19 |
} |
| 20 |
|
| 21 |
/* |
| 22 |
* Undo this hack on focusable nodes |
| 23 |
*/ |
| 24 |
.ve-ce-focusableNode:not( pre ) { |
| 25 |
white-space: normal; |
| 26 |
} |