| 1 |
/*! |
| 2 |
* VisualEditor Toolbar styles. |
| 3 |
* |
| 4 |
* @copyright See AUTHORS.txt |
| 5 |
*/ |
| 6 |
|
| 7 |
/* stylelint-disable no-descending-specificity */ |
| 8 |
|
| 9 |
.ve-ui-toolbar { |
| 10 |
/* Used by mobile context position hack */ |
| 11 |
position: relative; |
| 12 |
|
| 13 |
> .oo-ui-toolbar-bar { |
| 14 |
/* Make sure the toolbar is shown on top of surface contents even when not floating, |
| 15 |
for correct rendering of dropdowns, popups etc. */ |
| 16 |
z-index: 2; |
| 17 |
} |
| 18 |
|
| 19 |
&.ve-ui-toolbar-empty > .oo-ui-toolbar-bar { |
| 20 |
border: 0; |
| 21 |
box-shadow: none; |
| 22 |
} |
| 23 |
} |
| 24 |
|
| 25 |
/* PositionedTargetToolbar */ |
| 26 |
|
| 27 |
.ve-ui-toolbar-floating > .oo-ui-toolbar-bar { |
| 28 |
position: fixed; |
| 29 |
top: 0; |
| 30 |
border-top: 0; |
| 31 |
} |
| 32 |
|
| 33 |
.ve-ui-toolbar.oo-ui-toolbar-position-bottom > .oo-ui-toolbar-bar { |
| 34 |
/* For bottom toolbars though (e.g. Flow), we apparently want the toolbar to be below the surface |
| 35 |
overlay, but its dropdowns, popups etc. to be above it - this seems to work… (T169076) */ |
| 36 |
z-index: auto; |
| 37 |
} |
| 38 |
|
| 39 |
.ve-ui-toolbar > .oo-ui-toolbar-bar .oo-ui-toolbar-bar { |
| 40 |
/* Dumb broken nested toolbars ruin everything again (T169617) */ |
| 41 |
z-index: auto; |
| 42 |
} |
| 43 |
|
| 44 |
/* Mobile toolbar */ |
| 45 |
|
| 46 |
.ve-ui-targetToolbar-mobile .oo-ui-toolbar-tools { |
| 47 |
display: flex; |
| 48 |
|
| 49 |
.oo-ui-barToolGroup .oo-ui-tool-link { |
| 50 |
min-height: 3em; |
| 51 |
} |
| 52 |
|
| 53 |
> .oo-ui-toolGroup { |
| 54 |
flex: 1; |
| 55 |
} |
| 56 |
|
| 57 |
> .ve-ui-toolbar-group-back { |
| 58 |
border-right: 1px solid #eaecf0; |
| 59 |
} |
| 60 |
|
| 61 |
> .oo-ui-toolGroup-empty { |
| 62 |
display: none; |
| 63 |
} |
| 64 |
|
| 65 |
> .oo-ui-indicatorElement > .oo-ui-popupToolGroup-handle { |
| 66 |
/* stylelint-disable-next-line declaration-no-important */ |
| 67 |
padding: 3em 0 0 0 !important; |
| 68 |
} |
| 69 |
|
| 70 |
> .oo-ui-popupToolGroup { |
| 71 |
> .oo-ui-popupToolGroup-handle { |
| 72 |
> .oo-ui-iconElement-icon, |
| 73 |
> .oo-ui-indicatorElement-indicator { |
| 74 |
left: 50%; |
| 75 |
} |
| 76 |
|
| 77 |
> .oo-ui-iconElement-icon { |
| 78 |
/* No indicator */ |
| 79 |
margin-left: -0.714285em; |
| 80 |
} |
| 81 |
} |
| 82 |
|
| 83 |
&.oo-ui-indicatorElement { |
| 84 |
/* Indicator uses up whitespace, so increase width to make spacing look even */ |
| 85 |
flex: 1.2; |
| 86 |
|
| 87 |
> .oo-ui-popupToolGroup-handle > .oo-ui-iconElement-icon { |
| 88 |
margin-left: -1em; |
| 89 |
} |
| 90 |
} |
| 91 |
|
| 92 |
> .oo-ui-popupToolGroup-handle > .oo-ui-indicatorElement-indicator { |
| 93 |
margin-left: 0.375em; |
| 94 |
width: 0.5625em; |
| 95 |
min-width: 0.5625em; |
| 96 |
} |
| 97 |
} |
| 98 |
|
| 99 |
> .oo-ui-barToolGroup { |
| 100 |
text-align: center; |
| 101 |
|
| 102 |
> .oo-ui-toolGroup-tools > .oo-ui-tool { |
| 103 |
width: 100%; |
| 104 |
|
| 105 |
> .oo-ui-tool-link { |
| 106 |
padding: 0.875em 0; |
| 107 |
|
| 108 |
> .oo-ui-iconElement-icon:not( .oo-ui-tool-checkIcon ) { |
| 109 |
position: static; |
| 110 |
display: inline-block; |
| 111 |
vertical-align: middle; |
| 112 |
} |
| 113 |
|
| 114 |
> .oo-ui-tool-title { |
| 115 |
vertical-align: middle; |
| 116 |
margin-left: 0.3em; |
| 117 |
/* T260368 */ |
| 118 |
line-height: 1em; |
| 119 |
|
| 120 |
@media screen and ( max-width: 767px ) { |
| 121 |
/* stylelint-disable-next-line declaration-no-important */ |
| 122 |
display: none !important; |
| 123 |
} |
| 124 |
} |
| 125 |
} |
| 126 |
} |
| 127 |
} |
| 128 |
} |
| 129 |
|
| 130 |
/* Hide keyboard shortcut hints on mobile. Screen space is limited, and it's unlikely that the user |
| 131 |
has a keyboard with modifier keys. */ |
| 132 |
.ve-ui-targetToolbar-mobile .oo-ui-popupToolGroup-tools .oo-ui-tool-link .oo-ui-tool-accel, |
| 133 |
.ve-ui-overlay-global-mobile .oo-ui-popupToolGroup-tools .oo-ui-tool-link .oo-ui-tool-accel { |
| 134 |
display: none; |
| 135 |
} |