mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-01-24 16:35:40 +08:00
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:
parent
48e2009f62
commit
9a5595ceba
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user