| 1 |
/*! |
| 2 |
* VisualEditor ContentEditable Surface styles. |
| 3 |
* |
| 4 |
* @copyright See AUTHORS.txt |
| 5 |
*/ |
| 6 |
|
| 7 |
.ve-ce-surface { |
| 8 |
/* Create a new stacking context for elements inside the surface */ |
| 9 |
position: relative; |
| 10 |
z-index: 0; |
| 11 |
/* |
| 12 |
Remember, don't set font-size here. |
| 13 |
Should be inherited from the VE target container. |
| 14 |
*/ |
| 15 |
|
| 16 |
&-selections { |
| 17 |
position: absolute; |
| 18 |
pointer-events: none; |
| 19 |
/* @noflip */ |
| 20 |
left: 0; |
| 21 |
top: 0; |
| 22 |
|
| 23 |
.ve-ce-surface-selection { |
| 24 |
> div { |
| 25 |
position: absolute; |
| 26 |
} |
| 27 |
|
| 28 |
> .ve-ce-surface-selection-label { |
| 29 |
position: absolute; |
| 30 |
font-size: 0.8em; |
| 31 |
font-weight: bold; |
| 32 |
color: #fff; |
| 33 |
text-shadow: 0 0 1px #000; |
| 34 |
padding: 0.2em; |
| 35 |
margin-top: -1.4em; |
| 36 |
height: 1em; |
| 37 |
line-height: 1; |
| 38 |
white-space: nowrap; |
| 39 |
max-width: 10em; |
| 40 |
overflow: hidden; |
| 41 |
text-overflow: ellipsis; |
| 42 |
} |
| 43 |
} |
| 44 |
|
| 45 |
/* Deactivated selections */ |
| 46 |
|
| 47 |
&-deactivated { |
| 48 |
opacity: 0.5; |
| 49 |
|
| 50 |
.ve-ce-surface-selection > div { |
| 51 |
background: #6da9f7; |
| 52 |
/* Increase vertical height to look more like a system selection */ |
| 53 |
margin-top: -0.15em; |
| 54 |
padding: 0.15em 0; |
| 55 |
} |
| 56 |
|
| 57 |
&-showAsDeactivated { |
| 58 |
opacity: 0.15; |
| 59 |
|
| 60 |
.ve-ce-surface-selection > div { |
| 61 |
background: #000; |
| 62 |
} |
| 63 |
} |
| 64 |
|
| 65 |
&-collapsed { |
| 66 |
opacity: 1; |
| 67 |
/* Color is matched to font in ve.ce.Surface.js */ |
| 68 |
} |
| 69 |
} |
| 70 |
|
| 71 |
&-otherUserSelection { |
| 72 |
opacity: 0.5; |
| 73 |
|
| 74 |
&-inactive { |
| 75 |
opacity: 0.25; |
| 76 |
} |
| 77 |
} |
| 78 |
|
| 79 |
&-otherUserCursor { |
| 80 |
.ve-ce-surface-selection > div:not( .ve-ce-surface-selection-label ) { |
| 81 |
width: 2px !important; /* stylelint-disable-line declaration-no-important */ |
| 82 |
} |
| 83 |
|
| 84 |
&-inactive { |
| 85 |
opacity: 0.5; |
| 86 |
} |
| 87 |
} |
| 88 |
} |
| 89 |
|
| 90 |
&-dropMarker { |
| 91 |
height: 1px; |
| 92 |
background: #72777d; |
| 93 |
pointer-events: none; |
| 94 |
position: absolute; |
| 95 |
} |
| 96 |
|
| 97 |
/* Review mode */ |
| 98 |
|
| 99 |
&-reviewMode { |
| 100 |
pointer-events: none; |
| 101 |
|
| 102 |
&-highlightNodes .ve-ce-attachedRootNode > :not( .ve-ce-surface-reviewMode-highlightNode ) { |
| 103 |
opacity: 0.5; |
| 104 |
} |
| 105 |
} |
| 106 |
|
| 107 |
&-paused { |
| 108 |
opacity: 0.5; |
| 109 |
} |
| 110 |
|
| 111 |
&-paste { |
| 112 |
position: fixed; |
| 113 |
/* FIXME T126024: Stop the viewport scrolling when the paste target is typed into */ |
| 114 |
top: 3em; |
| 115 |
left: 0; |
| 116 |
/* Try to avoid wrapping by not setting a width because of https://code.google.com/p/chromium/issues/detail?id=318925 */ |
| 117 |
height: 1px; |
| 118 |
opacity: 0; |
| 119 |
overflow: hidden; |
| 120 |
|
| 121 |
* { |
| 122 |
height: 1px !important; /* stylelint-disable-line declaration-no-important */ |
| 123 |
} |
| 124 |
} |
| 125 |
} |
| 126 |
|
| 127 |
.ve-ce-cursorHolder { |
| 128 |
position: absolute; |
| 129 |
width: 0; |
| 130 |
height: 0; |
| 131 |
|
| 132 |
&-img { |
| 133 |
width: 0; |
| 134 |
height: 0; |
| 135 |
} |
| 136 |
|
| 137 |
&-debug { |
| 138 |
width: 2px; |
| 139 |
height: 1em; |
| 140 |
border: 1px solid #b32424; |
| 141 |
} |
| 142 |
} |