diff options
| author | 2021-09-02 09:16:26 +0200 | |
|---|---|---|
| committer | 2021-09-02 09:16:26 +0200 | |
| commit | b563e4badb6bd9675a3227058f8921e50b675755 (patch) | |
| tree | 72d0f12f5fe01eecf8a4eff57da4ae392716a418 | |
| parent | f1a4cfa482819a9ad941015697ae969f5bdad133 (diff) | |
Improved <kbd> line break (#3817)
* fix CSS
* improved
| -rw-r--r-- | p/themes/base-theme/template.css | 6 | ||||
| -rw-r--r-- | p/themes/base-theme/template.rtl.css | 6 |
2 files changed, 8 insertions, 4 deletions
diff --git a/p/themes/base-theme/template.css b/p/themes/base-theme/template.css index 9c2ace776..d98ac734f 100644 --- a/p/themes/base-theme/template.css +++ b/p/themes/base-theme/template.css @@ -74,12 +74,14 @@ sup { kbd { background-color: #eee; - padding: 2px 4px; + padding: 2px 4px 2px 24px; display: inline-block; color: #333; border: 1px solid #b4b4b4; border-radius: 3px; - white-space: nowrap; + text-indent: -20px; + white-space: pre-wrap; + overflow-wrap: anywhere; } /*=== Images */ diff --git a/p/themes/base-theme/template.rtl.css b/p/themes/base-theme/template.rtl.css index db4c73294..05eafc03d 100644 --- a/p/themes/base-theme/template.rtl.css +++ b/p/themes/base-theme/template.rtl.css @@ -74,12 +74,14 @@ sup { kbd { background-color: #eee; - padding: 2px 4px; + padding: 2px 4px 2px 24px; display: inline-block; color: #333; border: 1px solid #b4b4b4; border-radius: 3px; - white-space: nowrap; + text-indent: -20px; + white-space: pre-wrap; + overflow-wrap: anywhere; } /*=== Images */ |
