nasmdoc.css: specify #-link position in terms of vertical height

Using ems breaks because the header font sizes aren't the same as the
navbar font size.  We could work around that by explicitly specifying
sizes for all of them, but for now, just specify that the link target
should end up 10% below the top of the window.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
This commit is contained in:
H. Peter Anvin 2017-04-14 11:31:43 -07:00
parent 48e2009f62
commit 9a5595ceba

View File

@ -75,8 +75,8 @@ ul.index {
/* Trick to avoid the navbar hiding the the target of an # link */
:target {
margin-top: -4em;
padding-top: 4em;
margin-top: -10vh;
padding-top: 10vh;
}
ul.navbar {