diff --git a/src/patterns/01-core/elements/_universal.scss b/src/patterns/01-core/elements/_universal.scss index a2fee85b8dbd9444459ac77c604c2d01e8981aa2..aea364473248729eeb254ee8d114d4daf12eb451 100644 --- a/src/patterns/01-core/elements/_universal.scss +++ b/src/patterns/01-core/elements/_universal.scss @@ -33,14 +33,16 @@ background-repeat: no-repeat; } -:where(:not(pre) > code, kbd) { - white-space: nowrap; +// Specificity needed to override Drupal's default. +code, kbd, samp { + font-size: 0.9rem; } :where(:not(pre) > code) { - padding: var(--size-1) var(--size-2); + padding: var(--size-05) var(--size-05); background: var(--gray-2); border-radius: var(--radius-2); + box-decoration-break: clone; } :where(:not(dialog)) {