'woltlabSuiteMedia',
],
'li' => ['text-center', 'text-justify', 'text-right'],
- 'mark' => ['marker-error', 'marker-information', 'marker-success', 'marker-warning'],
+ 'mark' => ['marker-error', 'marker-info', 'marker-success', 'marker-warning'],
'p' => ['text-center', 'text-justify', 'text-right'],
'pre' => ['woltlabHtml'],
'td' => ['text-center', 'text-justify', 'text-right'],
.inlineCode, /* deprecated, legacy class */
+.ck-content code,
kbd {
- /* do not use inline-block, it breaks arrow key navigation in Firefox and Internet Explorer 11 */
-
- /* update: `inline` styling breaks even more things, in particular the caret position is way off */
- /* this reverts 8d381dc61e8183adcb770457f9fba25c29c00bd2 */
-
- /* new update: `display: inline` + `box-decoration-break` deliver the proper visual appearance,
- and the `::after` element in the editor is used to fix the caret position at the end */
-
background-color: rgba(255, 255, 255, 1) !important;
border: 1px solid rgba(196, 196, 196, 1) !important;
- border-radius: var(--wcfBorderRadius);
+ border-width: 1px 0 !important;
+ border-radius: 2px;
-webkit-box-decoration-break: clone;
box-decoration-break: clone;
color: rgba(68, 68, 68, 1) !important;
font-size: 13px;
font-style: normal;
font-weight: normal;
- margin: 0 2px;
overflow: auto;
- padding: 0 4px;
+ padding: 0.15em;
text-decoration: none;
vertical-align: middle;
word-break: break-word;
word-wrap: break-word;
+}
- @include screen-sm-down {
- /* Reduce the padding to prevent pixel rounding errors in the font rendering that
- can cause the page to display a horizontal scrollbar when <kbd> appears at the
- edge of the content container. */
- padding: 0 3px;
- }
+html[data-color-scheme="dark"] :is(.inlineCode, .ck-content code, kbd) {
+ background-color: #424242 !important;
+ border-color: #616161 !important;
+ color: #bdbdbd !important;
}
small kbd {
@supports (-webkit-overflow-scrolling: touch) {
.inlineCode,
+ .ck-content code,
kbd {
-webkit-box-decoration-break: initial;
}