extensions/VisualEditor/lib/ve/src/ce/styles/nodes/ve.ce.SectionNode.less
raw| 1 | /*! |
| 2 | * VisualEditor ContentEditable SectionNode styles. |
| 3 | * |
| 4 | * @copyright See AUTHORS.txt |
| 5 | */ |
| 6 | |
| 7 | .ve-ce-sectionNode { |
| 8 | opacity: 1; |
| 9 | transition: opacity 250ms ease; |
| 10 | |
| 11 | &::before, |
| 12 | &::after { |
| 13 | /* Prevent margin collapse across sections */ |
| 14 | content: '\00a0'; |
| 15 | display: block; |
| 16 | overflow: hidden; |
| 17 | height: 0; |
| 18 | } |
| 19 | |
| 20 | &:not( .ve-ce-activeNode-active ) { |
| 21 | opacity: 0.5; |
| 22 | } |
| 23 | } |