| 1 |
/*! |
| 2 |
* VisualEditor ContentEditable ParagraphNode styles. |
| 3 |
* |
| 4 |
* @copyright See AUTHORS.txt |
| 5 |
*/ |
| 6 |
|
| 7 |
.ve-ce-paragraphNode.ve-ce-generated-wrapper { |
| 8 |
/* Remove margin around wrapper paragraphs generated by our CE code, |
| 9 |
to keep the rendering consistent with the view mode where these wrappers are missing */ |
| 10 |
margin-left: 0; |
| 11 |
margin-right: 0; |
| 12 |
|
| 13 |
/* Maintain separation between wrapper paragraphs and start/end of document */ |
| 14 |
|
| 15 |
:not( .ve-ce-attachedRootNode ):not( .ve-ui-surface-placeholder ) > &, |
| 16 |
&:not( :first-child ) { |
| 17 |
/* |
| 18 |
Keep top margin when: |
| 19 |
- [child of attachedRoot OR child of placeholder] AND first child in the doc |
| 20 |
this means we clear the top margin when |
| 21 |
- [NOT child of attachedRoot AND NOT child of placeholder] OR NOT first child in the doc |
| 22 |
*/ |
| 23 |
margin-top: 0; |
| 24 |
padding-top: 0; |
| 25 |
} |
| 26 |
|
| 27 |
:not( .ve-ce-attachedRootNode ):not( .ve-ui-surface-placeholder ) > &, |
| 28 |
&:not( :last-child ) { |
| 29 |
/* Same for bottom margin */ |
| 30 |
margin-bottom: 0; |
| 31 |
padding-bottom: 0; |
| 32 |
} |
| 33 |
} |