diff options
author | H. Peter Anvin <hpa@linux.intel.com> | 2017-04-14 11:31:43 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2017-04-14 11:31:43 -0700 |
commit | 9a5595ceba0cca68719751a7662a339b624a9bd9 (patch) | |
tree | ae8f8fc76b62059c86507ee1bc080e60704a3061 /doc/nasmdoc.css | |
parent | 48e2009f6286130bf5b08b63170492fe0ab1957a (diff) | |
download | nasm-9a5595ceba0cca68719751a7662a339b624a9bd9.tar.gz |
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>
Diffstat (limited to 'doc/nasmdoc.css')
-rw-r--r-- | doc/nasmdoc.css | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/nasmdoc.css b/doc/nasmdoc.css index 1fae9568..4c828384 100644 --- a/doc/nasmdoc.css +++ b/doc/nasmdoc.css @@ -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 { |