From 310e32470ea0c64e793f05cbd440136a4b86b213 Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Sun, 26 Apr 2020 16:11:45 -0600 Subject: [PATCH] turn hyphens on for article, then off for certain selectors --- preview-src/index.adoc | 2 +- src/css/doc.css | 24 ++++++++++++------------ 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/preview-src/index.adoc b/preview-src/index.adoc index 6326d05..8cba7f1 100644 --- a/preview-src/index.adoc +++ b/preview-src/index.adoc @@ -19,7 +19,7 @@ Curabitur ut massa aliquam, cursus enim et, accumsan lectus. == Cu solet Nominavi luptatum eos, an vim hinc philosophia intellegebat. -Lorem `expetenda` pertinacia et nec, [.underline]#wisi# illud [.line-through]#sonet# qui ea. +Lorem pertinacia `expetenda` et nec, [.underline]#wisi# illud [.line-through]#sonet# qui ea. Eum an doctus <>. Eu mea inani iriure. diff --git a/src/css/doc.css b/src/css/doc.css index c2c1581..1738d1d 100644 --- a/src/css/doc.css +++ b/src/css/doc.css @@ -1,6 +1,7 @@ .doc { color: var(--doc-font-color); font-size: var(--doc-font-size); + hyphens: auto; line-height: var(--doc-line-height); margin: var(--doc-margin); max-width: var(--doc-max-width); @@ -24,6 +25,7 @@ .doc h6 { color: var(--heading-font-color); font-weight: var(--heading-font-weight); + hyphens: none; line-height: 1.3; margin: 1rem 0 0; } @@ -104,12 +106,6 @@ font-size: inherit; } -.doc p, -.doc :not(td) > .content, -.doc .tableblock thead { - hyphens: auto; -} - .doc a { color: var(--link-font-color); } @@ -118,10 +114,6 @@ color: var(--link_hover-font-color); } -.doc a.bare { - hyphens: none; -} - .doc a.unresolved { color: var(--link_unresolved-font-color); } @@ -136,7 +128,6 @@ background: var(--code-background); border-radius: 0.25em; font-size: 0.95em; - hyphens: none; padding: 0.125em 0.25em; } @@ -307,7 +298,6 @@ .doc .admonitionblock .icon i::after { content: attr(title); - hyphens: none; } .doc .imageblock { @@ -458,6 +448,7 @@ font-size: calc(16 / var(--rem-base) * 1rem); font-weight: var(--caption-font-weight); font-style: italic; + hyphens: none; letter-spacing: 0.01em; padding-bottom: 0.075rem; text-align: left; @@ -638,3 +629,12 @@ font-weight: var(--body-font-weight-bold); line-height: calc(1 / 1.1); } + +.doc a.bare, +.doc b.button, +.doc code, +.doc kbd, +.doc .menuseq, +.doc .icon i::after { + hyphens: none; +} -- 2.11.0