From 14c0c0b516bbddea591be79f679bf49bfd09e6bb Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Wed, 18 Mar 2020 16:46:14 -0500 Subject: [PATCH] Add pre and table styles that didn't make it over with the other revisions. --- Mac/MainWindow/Detail/styleSheet.css | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/Mac/MainWindow/Detail/styleSheet.css b/Mac/MainWindow/Detail/styleSheet.css index f47bf7ae3..5580ff1b9 100644 --- a/Mac/MainWindow/Detail/styleSheet.css +++ b/Mac/MainWindow/Detail/styleSheet.css @@ -35,7 +35,7 @@ a:hover { :root { --body-color: #444; --body-background-color: -apple-system-text-background; - --link-color: hsla(215, 99%, 43%, 1); + --accent-color: hsla(215, 99%, 43%, 1); --block-quote-border-color: hsla(215, 99%, 43%, 0.75); --header-table-border-color: rgba(0, 0, 0, 0.1); --header-color: rgba(0, 0, 0, 0.3); @@ -50,7 +50,7 @@ a:hover { :root { --body-color: #d2d2d2; --body-background-color: #2d2d2d; - --link-color: #4490e2; + --accent-color: #4490e2; --block-quote-border-color: rgba(68, 144, 226, 0.75); --header-table-border-color: rgba(255, 255, 255, 0.1); --header-color: #d2d2d2; @@ -67,7 +67,7 @@ body { } body a, body a:link, body a:visited { - color: var(--link-color); + color: var(--accent-color); } body .headerTable { border-bottom: 1px solid var(--header-table-border-color); @@ -128,15 +128,20 @@ pre { overflow: auto; overflow-y: hidden; line-height: 20px; - border: 1px solid #777; + border: 1px solid var(--accent-color); word-wrap: normal; + word-break: normal; padding: 10px; } code, pre { font-family: "SF Mono", Menlo, "Courier New", Courier, monospace; font-size: 14px; + -webkit-hyphens: none; } +.nnw-overflow { + overflow-x: auto; +} /* Instead of the last-child bits, border-collapse: collapse could have been used. However, then the inter-cell borders @@ -145,8 +150,10 @@ code, pre { .nnw-overflow table { margin-bottom: 1px; border-spacing: 0; - border: 1px solid #777; + border: 1px solid var(--accent-color); + font-size: inherit; } + .nnw-overflow td, .nnw-overflow th { -webkit-hyphens: none; word-break: normal; @@ -166,12 +173,6 @@ code, pre { padding: 0; } -img, figure, div { - max-width: 100%; - height: auto !important; - margin: 0 auto; -} - video { width: 100% !important; height: auto !important;