mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-02-23 17:29:23 +08:00
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>
114 lines
1.8 KiB
CSS
114 lines
1.8 KiB
CSS
body {
|
|
font-family: "source sans pro", "clear sans", "liberation sans",
|
|
"arial", "sans-serif";
|
|
background: white;
|
|
}
|
|
h1 {
|
|
text-align: center;
|
|
}
|
|
code, pre {
|
|
font-family: "source code pro", "liberation mono", "monospace";
|
|
}
|
|
pre, blockquote {
|
|
margin-left: 4em;
|
|
margin-right: 4em;
|
|
}
|
|
code {
|
|
display: inline;
|
|
white-space: nowrap;
|
|
}
|
|
a {
|
|
text-decoration: none;
|
|
}
|
|
div.toc {
|
|
padding-left: 0;
|
|
font-size: 195%;
|
|
}
|
|
div.toc li {
|
|
list-style-type: none;
|
|
padding-left: 0;
|
|
}
|
|
div.toc ol {
|
|
padding-left: 2em;
|
|
font-size: 80%;
|
|
}
|
|
li.toc1 {
|
|
padding-top: 0.7em;
|
|
}
|
|
li.toc2 {
|
|
padding-top: 0.3em;
|
|
}
|
|
ul.index {
|
|
list-style-type: none;
|
|
}
|
|
@media not screen {
|
|
ul.navbar {
|
|
display: none;
|
|
}
|
|
}
|
|
@media print {
|
|
a {
|
|
color: inherit;
|
|
}
|
|
}
|
|
@media screen {
|
|
/* Setting an explicit margin to keep the navbar from moving */
|
|
body {
|
|
padding: 0;
|
|
margin: 10px;
|
|
}
|
|
|
|
/* Link styles */
|
|
a:link {
|
|
color: #33c;
|
|
}
|
|
a:visited {
|
|
color: #338;
|
|
}
|
|
a:hover {
|
|
background: #ccc;
|
|
}
|
|
a:active {
|
|
color: #f33;
|
|
background: #ccc;
|
|
}
|
|
|
|
/* Trick to avoid the navbar hiding the the target of an # link */
|
|
:target {
|
|
margin-top: -10vh;
|
|
padding-top: 10vh;
|
|
}
|
|
|
|
ul.navbar {
|
|
display: block;
|
|
position: sticky;
|
|
top: 10px;
|
|
width: 100%;
|
|
margin: 0;
|
|
padding: 0;
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
list-style-type: none;
|
|
background: #336 url("nasmlogw.png") no-repeat right center;
|
|
background-size: contain;
|
|
}
|
|
|
|
ul.navbar li {
|
|
float: left;
|
|
}
|
|
ul.navbar li.last {
|
|
border-right: none;
|
|
}
|
|
ul.navbar a {
|
|
border-right: 1px solid #bbb;
|
|
display: block;
|
|
color: white;
|
|
text-align: center;
|
|
padding: 1em 1.5em;
|
|
text-decoration: none;
|
|
}
|
|
ul.navbar a:hover {
|
|
background-color: #448;
|
|
}
|
|
}
|