From 068b4030f520ba8fc04e6986db0be3ea75f5b41f Mon Sep 17 00:00:00 2001 From: Nazar Kanaev Date: Sat, 20 Feb 2021 15:17:18 +0000 Subject: [PATCH] content pre styling --- assets/stylesheets/app.css | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/assets/stylesheets/app.css b/assets/stylesheets/app.css index 8c19abb..04ea7d5 100644 --- a/assets/stylesheets/app.css +++ b/assets/stylesheets/app.css @@ -413,8 +413,13 @@ select.form-control:not([multiple]):not([size]) { } .content pre { + overflow-x: auto; color: inherit; - overflow-x: scroll; + border: 1px solid #dee2e6; + border-radius: 3px; + margin-left: -0.5rem; + margin-right: -0.5rem; + padding: 0.5rem; } .content a { @@ -470,6 +475,7 @@ a, background-color: #f4f0e5; } .theme-sepia .content hr, +.theme-sepia .content pre, .theme-sepia .border-right, .theme-sepia .border-top { border-color: #e0d6ba !important; @@ -491,6 +497,7 @@ a, } .theme-night .content hr, +.theme-night .content pre, .theme-night .border-right, .theme-night .border-top { border-color: #1a1a1a !important;