1 .inlineCode, /* deprecated, legacy class */
3 /* do not use inline-block, it breaks arrow key navigation in Firefox and Internet Explorer 11 */
5 /* update: `inline` styling breaks even more things, in particular the caret position is way off */
6 /* this reverts 8d381dc61e8183adcb770457f9fba25c29c00bd2 */
8 /* new update: `display: inline` + `box-decoration-break` deliver the proper visual appearance,
9 and the `::after` element in the editor is used to fix the caret position at the end */
11 background-color: rgba(255, 255, 255, 1) !important;
12 border: 1px solid rgba(196, 196, 196, 1) !important;
14 box-decoration-break: clone;
15 -webkit-box-decoration-break: clone;
16 color: rgba(68, 68, 68, 1) !important;
18 font-family: Consolas, "Courier New", monospace;
24 text-decoration: none;
25 vertical-align: middle;
26 word-break: break-all;
27 word-wrap: break-word;
29 @include screen-sm-down {
30 /* Reduce the padding to prevent pixel rounding errors in the font rendering that
31 can cause the page to display a horizontal scrollbar when <kbd> appears at the
32 edge of the content container. */
37 @supports (-webkit-overflow-scrolling: touch) {
40 -webkit-box-decoration-break: initial;
44 /* This pseudo element will cause a trailing caret to be displayed inside the element, right after
45 the last character in the `<kbd>`. Without it, browsers may render the caret either on top or
46 slightly after the right border. */
47 .redactor-layer kbd::after {
49 display: inline-block;
53 /* Similar to the `::after` pseudo element above, but also features an absolute positioning. This
54 has no impact on the visual appearance, but avoids the caret being displayed shifted to the bottom. */
55 .redactor-layer kbd::before {
57 display: inline-block;