| 1 |
/*! |
| 2 |
* VisualEditor UserInterface ToolbarDialog styles. |
| 3 |
* |
| 4 |
* @copyright See AUTHORS.txt |
| 5 |
*/ |
| 6 |
@import '../../../../lib/codex-design-tokens/theme-wikimedia-ui.less'; |
| 7 |
|
| 8 |
.ve-ui-toolbarDialog { |
| 9 |
background: @background-color-base; |
| 10 |
|
| 11 |
&-padded .oo-ui-window-body { |
| 12 |
padding: ( 0.3em / 0.8 ); |
| 13 |
} |
| 14 |
|
| 15 |
&-position-above { |
| 16 |
overflow-y: hidden; |
| 17 |
max-height: 0; |
| 18 |
transition: max-height 250ms; |
| 19 |
|
| 20 |
.oo-ui-toolbar-position-top & { |
| 21 |
border-top: 1px solid #c8ccd1; |
| 22 |
} |
| 23 |
|
| 24 |
.oo-ui-toolbar-position-bottom & { |
| 25 |
border-bottom: 1px solid #c8ccd1; |
| 26 |
} |
| 27 |
|
| 28 |
&.oo-ui-window-ready { |
| 29 |
/* approximate max height for transition */ |
| 30 |
max-height: 150px; |
| 31 |
} |
| 32 |
} |
| 33 |
|
| 34 |
&-position-side { |
| 35 |
position: absolute; |
| 36 |
right: 0; |
| 37 |
overflow-x: hidden; |
| 38 |
width: 0; |
| 39 |
/* Move away from toolbar drop shadow */ |
| 40 |
margin-top: 4px; |
| 41 |
transition: width 250ms; |
| 42 |
|
| 43 |
.ve-ui-toolbarDialog-framed { |
| 44 |
border-left: 1px solid #c8ccd1; |
| 45 |
} |
| 46 |
} |
| 47 |
|
| 48 |
&-disabled { |
| 49 |
opacity: 0.5; |
| 50 |
pointer-events: none; |
| 51 |
} |
| 52 |
|
| 53 |
/* Override styles when nested in a ProcessDialog */ |
| 54 |
/* TODO: Use child selectors in ProcessDialog */ |
| 55 |
.oo-ui-window-head { |
| 56 |
height: 0; |
| 57 |
min-height: 0; |
| 58 |
outline: 0; |
| 59 |
} |
| 60 |
|
| 61 |
.oo-ui-window-body { |
| 62 |
top: 0; |
| 63 |
} |
| 64 |
|
| 65 |
/* TODO: fix this upstream */ |
| 66 |
.oo-ui-window-frame { |
| 67 |
position: relative; |
| 68 |
} |
| 69 |
|
| 70 |
&-position-below { |
| 71 |
position: fixed; |
| 72 |
bottom: 0; |
| 73 |
left: 0; |
| 74 |
right: 0; |
| 75 |
} |
| 76 |
} |
| 77 |
|
| 78 |
.ve-ui-surface-toolbarDialog-side { |
| 79 |
transition: margin 250ms, min-height 250ms; |
| 80 |
min-height: 40em; |
| 81 |
} |