Updated theme to support 'figure' divs Added shadows to images and code blocks in themetags/v0.10
| @@ -244,7 +244,6 @@ dl:not(.docutils) { | |||||
| margin-bottom: 24px; | margin-bottom: 24px; | ||||
| } | } | ||||
| figure { | figure { | ||||
| margin: 0; | margin: 0; | ||||
| } | } | ||||
| @@ -323,7 +322,7 @@ img { | |||||
| border: 0; | border: 0; | ||||
| -ms-interpolation-mode: bicubic; | -ms-interpolation-mode: bicubic; | ||||
| vertical-align: middle; | vertical-align: middle; | ||||
| max-width: 100%; | |||||
| box-shadow: 0px 0px 10px rgba(10,10,10,0.3); | |||||
| } | } | ||||
| input { | input { | ||||
| @@ -403,6 +402,7 @@ p { | |||||
| pre > code { | pre > code { | ||||
| font-size: 13px; | font-size: 13px; | ||||
| box-shadow: 0px 0px 8px rgba(10,10,10,0.1); | |||||
| } | } | ||||
| q { | q { | ||||
| @@ -459,6 +459,19 @@ td { | |||||
| visibility: hidden; | visibility: hidden; | ||||
| } | } | ||||
| div.figure { | |||||
| align-items: center; | |||||
| text-align: center; | |||||
| } | |||||
| div.figure img { | |||||
| margin: 0 auto; | |||||
| } | |||||
| div.figure p { | |||||
| font-size: smaller; | |||||
| } | |||||
| .float-left { | .float-left { | ||||
| float: left; | float: left; | ||||
| } | } | ||||
| @@ -467,6 +480,10 @@ td { | |||||
| float: right; | float: right; | ||||
| } | } | ||||
| .footnotes { | |||||
| font-size:smaller; | |||||
| } | |||||
| .full-width { | .full-width { | ||||
| width: 100%; | width: 100%; | ||||
| } | } | ||||
| @@ -525,9 +542,6 @@ td { | |||||
| margin-bottom: 5px; | margin-bottom: 5px; | ||||
| } | } | ||||
| .footnotes { | |||||
| font-size:smaller; | |||||
| } | |||||
| /* #endregion */ | /* #endregion */ | ||||
| @@ -50,7 +50,7 @@ namespace Docnet | |||||
| DocNetMode = true, | DocNetMode = true, | ||||
| DocumentLocation = documentPath, | DocumentLocation = documentPath, | ||||
| DocumentRoot = siteRoot, | DocumentRoot = siteRoot, | ||||
| HtmlClassTitledImages = "Figure", | |||||
| HtmlClassTitledImages = "figure", | |||||
| }; | }; | ||||
| var toReturn = parser.Transform(toConvert); | var toReturn = parser.Transform(toConvert); | ||||
| @@ -130,7 +130,7 @@ namespace MarkdownDeepTests | |||||
| md.AutoHeadingIDs = resourceName.IndexOf("(AutoHeadingIDs)") >= 0; | md.AutoHeadingIDs = resourceName.IndexOf("(AutoHeadingIDs)") >= 0; | ||||
| if(resourceName.IndexOf("(Titled)") >= 0) | if(resourceName.IndexOf("(Titled)") >= 0) | ||||
| { | { | ||||
| md.HtmlClassTitledImages = "Figure"; | |||||
| md.HtmlClassTitledImages = "figure"; | |||||
| } | } | ||||
| string actual = md.Transform(input); | string actual = md.Transform(input); | ||||
| @@ -1,6 +1,6 @@ | |||||
| <p><img src="/path/to/img.jpg" alt="Alt text" /></p> | <p><img src="/path/to/img.jpg" alt="Alt text" /></p> | ||||
| <div class="Figure"> | |||||
| <div class="figure"> | |||||
| <img src="/path/to/img.jpg" alt="Alt text" title="Optional title" /> | <img src="/path/to/img.jpg" alt="Alt text" title="Optional title" /> | ||||
| <p>Optional title</p> | <p>Optional title</p> | ||||
| </div> | </div> | ||||