From 68d3cc0e715d5c3d181a8d035900b29ce868e5dd Mon Sep 17 00:00:00 2001 From: Kevin Moore Date: Wed, 30 Aug 2017 16:25:33 -0700 Subject: [PATCH] Fix conflicting background colors in code/pre blocks Fixes https://github.com/dart-lang/dartdoc/issues/1487 --- lib/resources/styles.css | 5 ++--- testing/test_package_docs/static-assets/styles.css | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/lib/resources/styles.css b/lib/resources/styles.css index d9242c589e..f06b221a9b 100644 --- a/lib/resources/styles.css +++ b/lib/resources/styles.css @@ -228,7 +228,6 @@ pre.prettyprint { font-size: 15px; word-wrap: normal; line-height: 1.4; - background: #eee; border: 0; margin: 16px 0 16px 0; padding: 8px; @@ -245,7 +244,7 @@ pre code { pre { border: 1px solid #ddd; - background-color: #f7f7f7; + background-color: #eee; font-size: 14px; } @@ -253,7 +252,7 @@ code { font-family: 'Source Code Pro', monospace; /* overriding bootstrap */ color: inherit; - background-color: #f7f7f7; + background-color: #eee; } h2 .crossdart { diff --git a/testing/test_package_docs/static-assets/styles.css b/testing/test_package_docs/static-assets/styles.css index d9242c589e..f06b221a9b 100644 --- a/testing/test_package_docs/static-assets/styles.css +++ b/testing/test_package_docs/static-assets/styles.css @@ -228,7 +228,6 @@ pre.prettyprint { font-size: 15px; word-wrap: normal; line-height: 1.4; - background: #eee; border: 0; margin: 16px 0 16px 0; padding: 8px; @@ -245,7 +244,7 @@ pre code { pre { border: 1px solid #ddd; - background-color: #f7f7f7; + background-color: #eee; font-size: 14px; } @@ -253,7 +252,7 @@ code { font-family: 'Source Code Pro', monospace; /* overriding bootstrap */ color: inherit; - background-color: #f7f7f7; + background-color: #eee; } h2 .crossdart {