summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorMarat Radchenko <marat@slonopotamus.org>2024-01-07 19:42:32 +0300
committerMarat Radchenko <marat@slonopotamus.org>2024-01-07 19:42:48 +0300
commit1a296d25fd27b2cb04640107bc5900909eb78c4e (patch)
tree7b5ba1ee5d8b060a649e31bb97aaa611e4d24605 /data
parentba986531f5b51c5c2b72f5e2e89f47dfbacca431 (diff)
resolves #450 refactor `btn` styling to be more customizable
We're using the same technique as HTML5 converter. While it is advanced CSS, we already rely on the same stuff for many other elements.
Diffstat (limited to 'data')
-rw-r--r--data/styles/epub3.scss17
1 files changed, 15 insertions, 2 deletions
diff --git a/data/styles/epub3.scss b/data/styles/epub3.scss
index 5accf05..22470c1 100644
--- a/data/styles/epub3.scss
+++ b/data/styles/epub3.scss
@@ -24,8 +24,21 @@ b.button {
white-space: nowrap;
}
-b.button .label {
- padding: 0 0.25em;
+b.button::before,
+b.button::after {
+ position: relative;
+ top: -1px;
+ font-weight: 400;
+}
+
+b.button::before {
+ content: "[";
+ padding: 0 3px 0 2px;
+}
+
+b.button::after {
+ content: "]";
+ padding: 0 2px 0 3px;
}
kbd {