Skip to content

A free, self-hostable news aggregator…

Improved <kbd> line break (#3817)

maThb563e4badb6b
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 */