From 303a1501096ef09cace965f7bf7a95f8e32454cc Mon Sep 17 00:00:00 2001 From: Jordan Wiens Date: Mon, 17 Apr 2017 19:09:20 -0400 Subject: update css to support different image alignment --- docs/docs.css | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) (limited to 'docs/docs.css') diff --git a/docs/docs.css b/docs/docs.css index 95a04efe..5006119f 100644 --- a/docs/docs.css +++ b/docs/docs.css @@ -2,12 +2,27 @@ code { color: #000; } -img { - display: inline-block; - float: right; -} - .admonition { background: rgb(128, 198, 223); color: #333; } + +img[alt$=">"] { + float:right; + display: inline-block; + padding-left: 10px; +} + +img[alt$="<"] { + float:left; + display: inline-block; + padding-right: 10px; +} + +img[alt$="><"] { + display: block; + max-width: 100%; + height: auto; + margin: auto; + float: none!important; +} -- cgit v1.3.1 From 93020159006b68c5e0e5b1eafeef11d1df72da1a Mon Sep 17 00:00:00 2001 From: Jordan Wiens Date: Tue, 18 Apr 2017 15:37:25 -0400 Subject: fix transparency on code blocks --- docs/docs.css | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'docs/docs.css') diff --git a/docs/docs.css b/docs/docs.css index 5006119f..e06fa460 100644 --- a/docs/docs.css +++ b/docs/docs.css @@ -26,3 +26,7 @@ img[alt$="><"] { margin: auto; float: none!important; } + +.article pre code { + background: rgba(0, 0, 0, 0); +} -- cgit v1.3.1