class MultipageHtml5CSS
Public Instance Methods
process(doc)
click to toggle source
# File lib/asciidoctor-multipage.rb, line 595 def process doc # Disable this entirely if the multipage-disable-css attribute is set if doc.attr('multipage-disable-css') return end css = [] # Style Table Of Contents entry for current page css << %(.toc-current{font-weight: bold;}) # Style Table Of Contents entry for root page css << %(.toc-root{font-family: "Open Sans","DejaVu Sans",sans-serif; font-size: 0.9em;}) # Style navigation bar at bottom of each page css << %(#content{display: flex; flex-direction: column; flex: 1 1 auto;} .nav-footer{text-align: center; margin-top: auto;} .nav-footer > p > a {white-space: nowrap;}) %(<style>#{css.join(' ')}</style>) end