Debian Codegraph @

extensions/VisualEditor/lib/ve/src/ce/styles/nodes/ve.ce.FocusableNode.less

raw
1 /*!
2 * VisualEditor ContentEditable FocusableNode styles.
3 *
4 * @copyright See AUTHORS.txt
5 */
6
7 .ve-ce-focusableNode {
8 cursor: default;
9
10 /* We previously applied -moz-user-select: none to all descendants of focuasbleNode
11 to prevent them from ever taking a cursor (T70537) but that causes FF to create
12 multi-range selections (T214976) which is worse */
13
14 &-highlight {
15 background: #6da9f7;
16 box-shadow: inset 0 0 0 1px #4c76ac;
17 position: absolute;
18 /* Clip extra span added for selectability */
19 overflow: hidden;
20
21 &-error {
22 background: #d73333;
23 }
24
25 &-selectable {
26 position: absolute;
27 top: -1000px;
28 }
29 }
30
31 &-invisible {
32 /* Ensure these are always visible, overriding things like "nomobile" in MediaWiki (T332626) */
33 /* stylelint-disable-next-line declaration-no-important */
34 display: inline-block !important;
35 vertical-align: middle;
36 /* Negative margins ensure button height doesn't exceed line height */
37 margin: -0.7em 0 -0.6em 0;
38 width: auto;
39 }
40
41 &-invisibleIcon {
42 opacity: 0.5;
43
44 > .oo-ui-buttonElement-button {
45 /* Button can sometimes be exposed (T198912), but it shouldn't interact like one */
46 cursor: default;
47 }
48
49 &.oo-ui-labelElement {
50 width: auto;
51
52 .oo-ui-labelElement-label {
53 max-width: 15em;
54 overflow: hidden;
55 text-overflow: ellipsis;
56 white-space: nowrap;
57 display: inline-block;
58 }
59 }
60
61 &.oo-ui-iconElement.oo-ui-buttonElement-frameless.oo-ui-iconElement:first-child {
62 /* Requires high specificity to override OOUI */
63 margin-left: 0;
64 }
65 }
66 }
67
68 /* Highlights group opacity */
69
70 .ve-ce-surface-highlights-focused .ve-ce-focusableNode-highlights {
71 opacity: 0.5;
72 }
73
74 .ve-ce-surface-highlights-blurred .ve-ce-focusableNode-highlights {
75 opacity: 0.15;
76 }
77
78 .ve-ce-surface-highlights-focused .ve-ce-focusableNode-highlights-deactivated {
79 opacity: 0.15;
80 }
81
82 .ve-ce-focusableNode-highlights-deactivated .ve-ce-focusableNode-highlight {
83 background: #000;
84 }