| 1 |
/*! |
| 2 |
* VisualEditor WikimediaUI theme customizations. |
| 3 |
* |
| 4 |
* @copyright See AUTHORS.txt |
| 5 |
*/ |
| 6 |
|
| 7 |
@import '../../lib/codex-design-tokens/theme-wikimedia-ui.less'; |
| 8 |
|
| 9 |
/* ve.ui.TargetWidget */ |
| 10 |
|
| 11 |
.ve-ui-targetWidget { |
| 12 |
border: @border-base; |
| 13 |
border-radius: @border-radius-base; |
| 14 |
transition: border-color @transition-duration-medium, box-shadow @transition-duration-medium; |
| 15 |
|
| 16 |
> :last-child { |
| 17 |
border-bottom: 0; |
| 18 |
} |
| 19 |
|
| 20 |
&-focused { |
| 21 |
border-color: @border-color-progressive; |
| 22 |
box-shadow: @box-shadow-inset-small @box-shadow-color-progressive--focus; |
| 23 |
} |
| 24 |
|
| 25 |
&:not( .oo-ui-pendingElement-pending ) { |
| 26 |
background: @background-color-base; |
| 27 |
} |
| 28 |
|
| 29 |
&-readOnly:not( .oo-ui-pendingElement-pending ) { |
| 30 |
background: @background-color-neutral-subtle; |
| 31 |
} |
| 32 |
|
| 33 |
.ve-ui-targetToolbar:not( .ve-ui-toolbar-empty ) { |
| 34 |
margin: 1px; |
| 35 |
} |
| 36 |
|
| 37 |
&:not( .ve-ui-targetWidget-focused ) .ve-ui-targetToolbar:not( .ve-ui-toolbar-empty ) > .oo-ui-toolbar-bar { |
| 38 |
/* Expand toolbar into focus inset when not focused. */ |
| 39 |
margin: 0 -1px; |
| 40 |
padding: 0 1px; |
| 41 |
} |
| 42 |
} |