Top-level main.css for all asciidoctor styles

Properly separate tocbot from asciidoctor styles and use main.css to
include both.
This commit is contained in:
Rossen Stoyanchev 2017-10-11 07:40:25 -04:00
parent 3febec3df6
commit 2e0a2845ab
3 changed files with 25 additions and 19 deletions

View File

@ -85,7 +85,7 @@ asciidoctor {
}
resources {
from(sourceDir) {
include 'images/**', 'tocbot-3.0.2/**'
include 'images/*', 'stylesheets/*', 'tocbot-3.0.2/*'
}
}
logDocuments = true
@ -104,7 +104,7 @@ asciidoctor {
sectnums: '',
'source-highlighter': 'coderay@', // TODO switch to 'rouge' once supported by the html5 backend
stylesdir: 'stylesheets/',
stylesheet: 'spring.css',
stylesheet: 'main.css',
'spring-version': project.version
}

View File

@ -1,21 +1,4 @@
@import url(https://fonts.googleapis.com/css?family=Varela+Round|Montserrat:400,700);
@import url('../tocbot-3.0.2/tocbot.css');
/* See https://github.com/asciidoctor/asciidoctor/issues/699#issuecomment-321066006 */
/* ================================================================================ */
#tocbot a.toc-link.node-name--H1{ font-style: italic }
@media screen{
#tocbot > ul.toc-list{ margin-bottom: 0.5em; margin-left: 0.125em }
#tocbot ul.sectlevel0, #tocbot a.toc-link.node-name--H1 + ul{
padding-left: 0 }
#tocbot a.toc-link{ height:100% }
.is-collapsible{ max-height:3000px; overflow:hidden; }
.is-collapsed{ max-height:0 }
.is-active-link{ font-weight:700 }
}
@media print{
#tocbot a.toc-link.node-name--H4{ display:none }
}
/* ================================================================================ */
/*! normalize.css v2.1.2 | MIT License | git.io/normalize */

View File

@ -0,0 +1,23 @@
/* https://github.com/bclozel/asciidoctor-stylesheet-factory/tree/spring */
/* ===================================================================== */
@import url('stylesheets/asciidoctor-spring.css');
/* https://github.com/asciidoctor/asciidoctor/issues/699#issuecomment-321066006 */
/* ============================================================================ */
@import url('tocbot-3.0.2/tocbot.css');
#tocbot a.toc-link.node-name--H1{ font-style: italic }
@media screen{
#tocbot > ul.toc-list{ margin-bottom: 0.5em; margin-left: 0.125em }
#tocbot ul.sectlevel0, #tocbot a.toc-link.node-name--H1 + ul{
padding-left: 0 }
#tocbot a.toc-link{ height:100% }
.is-collapsible{ max-height:3000px; overflow:hidden; }
.is-collapsed{ max-height:0 }
.is-active-link{ font-weight:700 }
}
@media print{
#tocbot a.toc-link.node-name--H4{ display:none }
}