From 43605b14d6cc05b533c5fa16ec01ac909b4206b9 Mon Sep 17 00:00:00 2001 From: Frode Petterson Date: Thu, 24 Oct 2019 14:39:07 +0200 Subject: [PATCH] HFP-2860 Add styling for code tag --- styles/h5p.css | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/styles/h5p.css b/styles/h5p.css index e6eb707..bb6de8a 100644 --- a/styles/h5p.css +++ b/styles/h5p.css @@ -542,6 +542,21 @@ div.h5p-fullscreen { opacity: 0; visibility: hidden; } +.h5p-content code, +.h5peditor code { + color: #3d3d3d; + background: #e0e0e0; + border-radius: 2px; + padding: 0 5px; +} +.h5p-content pre > code, +.h5peditor pre > code { + padding: 5px; + display: block; + line-height: normal; + border: 1px solid #c7c7c7; + border-left-width: 4px; +} /* This is loaded as part of Core and not Editor since this needs to be outside the editor iframe */