]> git.mdlowis.com Git - proto/journal.git/commitdiff
fixed line wrapping for code blocks master
authorMichael D. Lowis <mike.lowis@gentex.com>
Wed, 25 Sep 2019 20:08:01 +0000 (16:08 -0400)
committerMichael D. Lowis <mike.lowis@gentex.com>
Wed, 25 Sep 2019 20:08:01 +0000 (16:08 -0400)
index.html
style.css

index 870028998830cd57c1673eaff5804e3d00e81ee0..5ce6343b517570138bd7721a55e85381e9a4550e 100644 (file)
@@ -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;
-}
     </style>
 </head>
 <body>
index 7a49e49b4b95783212bab18b09f969649ae7d9d3..146477bc3b96910e3c56838d695d045fe55e82f0 100644 (file)
--- 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;
-}