From 83af61dd4bdb6292b3c6d4c57c7d0ecfa9373ce6 Mon Sep 17 00:00:00 2001 From: Allan Jardine Date: Fri, 2 Dec 2016 17:19:48 +0000 Subject: [PATCH] Dev: Updating the styling of the code blocks in the examples --- .datatables-commit-sync | 2 +- examples/resources/syntax/shCore.css | 12 ++++++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.datatables-commit-sync b/.datatables-commit-sync index c454c277..c194cebc 100644 --- a/.datatables-commit-sync +++ b/.datatables-commit-sync @@ -1 +1 @@ -f62f7617c1f9539dac46d8964616e1dec730b8eb +e19273f356ee0538a74215e4ebb55d998929db9d diff --git a/examples/resources/syntax/shCore.css b/examples/resources/syntax/shCore.css index 37f7dc13..0788210e 100644 --- a/examples/resources/syntax/shCore.css +++ b/examples/resources/syntax/shCore.css @@ -60,6 +60,11 @@ overflow: auto !important; font-size: 1em !important; clear: both; + + box-shadow: inset 0 0 3px #555; + padding: 5px 3px; + background: #f8f8f8 !important; + box-sizing: border-box; } .syntaxhighlighter.source { overflow: hidden !important; @@ -135,8 +140,8 @@ } .syntaxhighlighter .toolbar { position: absolute !important; - right: 1px !important; - top: -18px !important; + right: 10px !important; + top: 0 !important; font-size: 10px !important; z-index: 7 !important; } @@ -244,7 +249,6 @@ * Dual licensed under the MIT and GPL licenses. */ .syntaxhighlighter { - background-color: white !important; font-size: 13px !important; overflow: visible !important; } @@ -269,7 +273,7 @@ color: #5C5C5C !important; } .syntaxhighlighter .gutter .line.alt1, .syntaxhighlighter .gutter .line.alt2 { - background-color: white !important; + background-color: transparent !important; } .odd .syntaxhighlighter .gutter .line.alt1, .odd .syntaxhighlighter .gutter .line.alt2 { background-color: #F2F2F2 !important;