From: Michael D. Lowis Date: Wed, 25 Sep 2019 20:08:01 +0000 (-0400) Subject: fixed line wrapping for code blocks X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=refs%2Fheads%2Fmaster;p=proto%2Fjournal.git fixed line wrapping for code blocks --- diff --git a/index.html b/index.html index 8700289..5ce6343 100644 --- a/index.html +++ b/index.html @@ -24,18 +24,10 @@ h6 { font-size: 0.67rem; } a { color: deepskyblue; } li { margin-bottom: 1rem; } -table { - display: block; - width: 100%; - overflow: auto; - border-spacing: 0; - border-collapse: collapse; -} - code { display: block; padding: 1rem 1.5rem; - white-space: pre; + white-space: pre-wrap; margin: 0.2rem; background: #F1F1F1; border: 1px solid #E1E1E1; @@ -52,24 +44,6 @@ blockquote { padding-left: 15px; margin-right: 0px; } - -table { - width: 100%; - display: table; - border-collapse: separate; - border-color: grey; - text-align: left; - vertical-align: middle; -} - -th, td { - padding: 0.80rem 0.80rem; - border-bottom: 1px solid #E1E1E1; -} - -th:first-child, td:first-child { - padding-left: 0; -} diff --git a/style.css b/style.css index 7a49e49..146477b 100644 --- a/style.css +++ b/style.css @@ -18,18 +18,10 @@ h6 { font-size: 0.67rem; } a { color: deepskyblue; } li { margin-bottom: 1rem; } -table { - display: block; - width: 100%; - overflow: auto; - border-spacing: 0; - border-collapse: collapse; -} - code { display: block; padding: 1rem 1.5rem; - white-space: pre; + white-space: pre-wrap; margin: 0.2rem; background: #F1F1F1; border: 1px solid #E1E1E1; @@ -46,21 +38,3 @@ blockquote { padding-left: 15px; margin-right: 0px; } - -table { - width: 100%; - display: table; - border-collapse: separate; - border-color: grey; - text-align: left; - vertical-align: middle; -} - -th, td { - padding: 0.80rem 0.80rem; - border-bottom: 1px solid #E1E1E1; -} - -th:first-child, td:first-child { - padding-left: 0; -}