X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=plugins%2Fmarkdown%2Fmarkdown.css;h=ce19cd2ab9666eb3deddc63809b1bfc6c156cc77;hb=7be2a2d5f4078ba97b3281f2b5c33ae9bd337be5;hp=6d666dcf35ce696d58ab518c07ce8d9ad9f24860;hpb=268a2e52659964fb7d033a1bb4d1490bf8cc49bf;p=github%2Fshaarli%2FShaarli.git diff --git a/plugins/markdown/markdown.css b/plugins/markdown/markdown.css index 6d666dcf..ce19cd2a 100644 --- a/plugins/markdown/markdown.css +++ b/plugins/markdown/markdown.css @@ -114,7 +114,43 @@ margin-bottom: 0; } -.md_help { +.markdown pre { + background-color: #eee; + padding: 4px 9px; + -webkit-border-radius: 5px; + -moz-border-radius: 5px; + border-radius: 5px; + overflow: auto; + box-shadow: 0 -1px 0 #e5e5e5,0 0 1px rgba(0,0,0,0.12),0 1px 2px rgba(0,0,0,0.24); +} + +.markdown pre code { + color: black; + font-family: 'Consolas', 'Monaco', 'Andale Mono', monospace; + direction: ltr; + text-align: left; + white-space: pre; + word-spacing: normal; + word-break: normal; + line-height: 1.7; + font-size: 11.5px; + -moz-tab-size: 4; + -o-tab-size: 4; + tab-size: 4; + -webkit-hyphens: none; + -moz-hyphens: none; + -ms-hyphens: none; + hyphens: none; +} + +.markdown :not(pre) code { + background-color: #eee; + padding: 1px 3px; + border-radius: 1px; + box-shadow: 0 -1px 0 #e5e5e5,0 0 1px rgba(0,0,0,0.12),0 1px 1px rgba(0,0,0,0.24); +} + +#pageheader .md_help { color: white; }