| 1 |
/*! |
| 2 |
* VisualEditor UserInterface LinearContextItem styles. |
| 3 |
* |
| 4 |
* @copyright See AUTHORS.txt |
| 5 |
*/ |
| 6 |
|
| 7 |
.ve-ui-linearContextItem { |
| 8 |
&-head { |
| 9 |
min-height: 32px; |
| 10 |
padding: 0.5em; |
| 11 |
display: flex; |
| 12 |
align-items: center; |
| 13 |
} |
| 14 |
|
| 15 |
&-title { |
| 16 |
padding: 0 0.5em; |
| 17 |
white-space: nowrap; |
| 18 |
flex: 1; |
| 19 |
|
| 20 |
> .oo-ui-labelWidget { |
| 21 |
margin-left: 0.3em; |
| 22 |
word-wrap: break-word; |
| 23 |
white-space: pre-line; |
| 24 |
vertical-align: middle; |
| 25 |
} |
| 26 |
|
| 27 |
.ve-ui-mobileContext & { |
| 28 |
font-weight: bold; |
| 29 |
} |
| 30 |
} |
| 31 |
|
| 32 |
&-body { |
| 33 |
max-height: 15em; |
| 34 |
overflow: auto; |
| 35 |
|
| 36 |
.ve-ui-linearContextItem-empty & { |
| 37 |
display: none; |
| 38 |
} |
| 39 |
|
| 40 |
.ve-ui-desktopContext &:not( :empty ) { |
| 41 |
padding: 0 1em 1em 1em; |
| 42 |
} |
| 43 |
} |
| 44 |
} |
| 45 |
|
| 46 |
.ve-ui-mobileContext { |
| 47 |
.ve-ui-linearContextItem-body-action-wrapper { |
| 48 |
/* Wrapper to vertically center body-action in a min-heighted container */ |
| 49 |
/* We use a wrapper so that body-action itself can main top-alignment of its items */ |
| 50 |
border-top: 1px solid #eaecf0; |
| 51 |
display: flex; |
| 52 |
align-items: center; |
| 53 |
flex-wrap: wrap; |
| 54 |
min-height: 4.5em; |
| 55 |
} |
| 56 |
|
| 57 |
.ve-ui-linearContextItem-empty .ve-ui-linearContextItem-body-action-wrapper { |
| 58 |
display: none; |
| 59 |
} |
| 60 |
|
| 61 |
.ve-ui-linearContextItem-body-action { |
| 62 |
display: flex; |
| 63 |
width: 100%; |
| 64 |
} |
| 65 |
|
| 66 |
.ve-ui-linearContextItem-head { |
| 67 |
padding: 0.25em 0.5em; |
| 68 |
} |
| 69 |
|
| 70 |
.ve-ui-linearContextItem-body { /* stylelint-disable-line no-descending-specificity */ |
| 71 |
padding: 0.5em 1em; |
| 72 |
flex: 1; |
| 73 |
} |
| 74 |
|
| 75 |
.ve-ui-linearContextItem-foot:not( :empty ) { |
| 76 |
border-top: 1px solid #eaecf0; |
| 77 |
padding: 0.25em 1em; |
| 78 |
text-align: right; |
| 79 |
} |
| 80 |
|
| 81 |
.ve-ui-linearContextItem-actions { |
| 82 |
width: auto; |
| 83 |
padding: 0.25em 0.5em; |
| 84 |
} |
| 85 |
} |
| 86 |
|
| 87 |
.ve-ui-mobileContext-close + .ve-ui-linearContextItem-empty { |
| 88 |
/* Make room for close button, if the first item is empty */ |
| 89 |
margin-right: 2.5em; |
| 90 |
} |