| 1 |
/*! |
| 2 |
* VisualEditor UserInterface CommandHelpDialog styles. |
| 3 |
* |
| 4 |
* @copyright See AUTHORS.txt |
| 5 |
*/ |
| 6 |
|
| 7 |
.ve-ui-commandHelpDialog { |
| 8 |
&-container { |
| 9 |
-moz-columns: 3 19.5em; |
| 10 |
-webkit-columns: 3 19.5em; |
| 11 |
columns: 3 19.5em; |
| 12 |
} |
| 13 |
|
| 14 |
&-section { |
| 15 |
/* |
| 16 |
* Hack 1: Prevent splitting over columns. This should be done with |
| 17 |
* column-break-inside but it's not well supported yet. |
| 18 |
*/ |
| 19 |
display: inline-block; |
| 20 |
width: 100%; |
| 21 |
|
| 22 |
h3 { |
| 23 |
text-align: center; |
| 24 |
margin: 0; |
| 25 |
padding: 0; |
| 26 |
} |
| 27 |
} |
| 28 |
|
| 29 |
&-list { |
| 30 |
margin: 0.5em 0 1.5em 0; |
| 31 |
|
| 32 |
dd { |
| 33 |
display: inline-block; |
| 34 |
vertical-align: top; |
| 35 |
width: 45%; |
| 36 |
margin: 0; |
| 37 |
} |
| 38 |
|
| 39 |
dt { |
| 40 |
display: inline-block; |
| 41 |
vertical-align: top; |
| 42 |
box-sizing: border-box; |
| 43 |
width: 55%; |
| 44 |
padding-right: 1em; |
| 45 |
text-align: right; |
| 46 |
|
| 47 |
> kbd { |
| 48 |
display: block; |
| 49 |
|
| 50 |
/* Enlarge vertical spacing in a list of shortcuts for one action */ |
| 51 |
~ kbd { |
| 52 |
margin-top: 0.5em; |
| 53 |
} |
| 54 |
} |
| 55 |
} |
| 56 |
|
| 57 |
dd, |
| 58 |
dt { |
| 59 |
line-height: 1.4; |
| 60 |
margin-top: 0.5em; |
| 61 |
margin-bottom: 0.5em; |
| 62 |
} |
| 63 |
} |
| 64 |
|
| 65 |
&-shortcut, |
| 66 |
&-sequence { |
| 67 |
/* Support: Blink, Gecko, Webkit */ |
| 68 |
/* Specify a valid second value to fix size, see T176636 */ |
| 69 |
font-family: monospace, monospace; |
| 70 |
font-size: 0.8125em; |
| 71 |
font-weight: bold; |
| 72 |
font-style: normal; |
| 73 |
|
| 74 |
> kbd { /* stylelint-disable-line no-descending-specificity */ |
| 75 |
background-color: #f8f9fa; |
| 76 |
color: #222; |
| 77 |
border: 1px solid #c8ccd1; |
| 78 |
border-radius: 2px; |
| 79 |
box-shadow: 0 1px 0 rgba( 0, 0, 0, 0.2 ), 0 0 0 2px #fff inset; |
| 80 |
display: inline-block; |
| 81 |
line-height: 1.4; |
| 82 |
padding: 0.1em 0.4em; |
| 83 |
margin: -0.1em 0.3em 0; |
| 84 |
text-shadow: 0 1px 0 #fff; |
| 85 |
text-transform: uppercase; |
| 86 |
text-align: center; |
| 87 |
} |
| 88 |
} |
| 89 |
|
| 90 |
&-sequence { |
| 91 |
&[ data-label ]::before { |
| 92 |
content: attr( data-label ); |
| 93 |
font-weight: normal; |
| 94 |
font-style: italic; |
| 95 |
padding-right: 3px; |
| 96 |
} |
| 97 |
|
| 98 |
kbd:not( .ve-ui-commandHelpDialog-specialKey ) { |
| 99 |
box-shadow: none; |
| 100 |
text-transform: none; |
| 101 |
|
| 102 |
+ kbd:not( .ve-ui-commandHelpDialog-specialKey ) { |
| 103 |
margin-left: -0.5em; |
| 104 |
padding-left: 0; |
| 105 |
border-left: 0; |
| 106 |
border-top-left-radius: 0; |
| 107 |
border-bottom-left-radius: 0; |
| 108 |
} |
| 109 |
} |
| 110 |
} |
| 111 |
} |