Hey Eric,
That seems like a very cool idea. I'd be interested to look at it when it's done!
Loren
--
---
You received this message because you are subscribed to the Google Groups "YARD" group.
To unsubscribe from this group and stop receiving emails from it, send an email to yardoc+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You should probably check the master branch of YARD if you're writing new templates. frames.html is gone from the next release (as are the <frame> tags). That said, the old frames.erb should have the document.writeln line in it:
https://github.com/lsegal/yard/blob/v0.8.7.6/templates/default/fulldoc/html/frames.erb
Loren
The master branch in YARD and the v0.8.7.6 tag are different
versions by a lot. Master includes the frameless templates, which
have not yet been released under any version. You should checkout
the github repository and use master for development (or point
your Gemfile at `git://github.com/lsegal/yard` with no tag).
Hopefully that clarifies a bit.
Loren
Hey Eric,
There's quite a bit here, so I'll just answer the intent of your proposal:
Turning the #search and header divs into 'static' does actually
change rendering behavior on the hamburger menu icon when resized
down to mobile mode (outside of yard server). This is fixable, but
it sounds like your point is that you want the search box (and
menu item friends) on the right to be able to move, which is not
intended in the default template. It is marked absolute because it
is indeed fixed to that location. Having the links move around
based on other layout content would not look that great (you
typically want menu items to be in known deterministic locations
so users can rely on muscle memory to reach them), so we
explicitly locked them in place and had any other text sit under
(z-index) so as to not obscure the boxes. This works 95%+ of the
time, where typical index content is rarely obscured by the box in
any significant way.
Also note that the design is responsive, so if the width of the
window is too small to reasonably show the header line, it should
swap to "mobile mode" where the menu bar takes the whole top width
of the window above the content. Again, this should resize
reasonably with typical content.
If you've increased font sizes, you may consider also tweaking the responsive width toggle as well (currently 920px): https://github.com/lsegal/yard/blob/master/templates/default/fulldoc/html/css/style.css#L57-L66
You might also consider moving the search box / other top-right
stuff somewhere else permanently if they don't fit your template
changes. I don't think we will change the fixed-ness of that div
due to the UI concerns above. I'll also point out that the default
template is not exactly designed to handle significant UI
customization-- and that is not the intent of the template. If you
are in fact making significant UI changes, your template
customizations should be working around any rendering glitches, or
you should consider just replacing the core style.css in your
custom template outright and using your own set of style rules
from the start. The latter would insulate you from any style
changes we make in the future (YARD reserves the right to make
significant style changes to the default template across minor
versions).
Hope that helps!
Loren