nasmdoc.css: specify #-link position in terms of vertical height
[nasm.git] / doc / nasmdoc.css
blob4c8283849d19fb2e63959384226efde65cf80564
1 body {
2 font-family: "source sans pro", "clear sans", "liberation sans",
3 "arial", "sans-serif";
4 background: white;
6 h1 {
7 text-align: center;
9 code, pre {
10 font-family: "source code pro", "liberation mono", "monospace";
12 pre, blockquote {
13 margin-left: 4em;
14 margin-right: 4em;
16 code {
17 display: inline;
18 white-space: nowrap;
20 a {
21 text-decoration: none;
23 div.toc {
24 padding-left: 0;
25 font-size: 195%;
27 div.toc li {
28 list-style-type: none;
29 padding-left: 0;
31 div.toc ol {
32 padding-left: 2em;
33 font-size: 80%;
35 li.toc1 {
36 padding-top: 0.7em;
38 li.toc2 {
39 padding-top: 0.3em;
41 ul.index {
42 list-style-type: none;
44 @media not screen {
45 ul.navbar {
46 display: none;
49 @media print {
50 a {
51 color: inherit;
54 @media screen {
55 /* Setting an explicit margin to keep the navbar from moving */
56 body {
57 padding: 0;
58 margin: 10px;
61 /* Link styles */
62 a:link {
63 color: #33c;
65 a:visited {
66 color: #338;
68 a:hover {
69 background: #ccc;
71 a:active {
72 color: #f33;
73 background: #ccc;
76 /* Trick to avoid the navbar hiding the the target of an # link */
77 :target {
78 margin-top: -10vh;
79 padding-top: 10vh;
82 ul.navbar {
83 display: block;
84 position: sticky;
85 top: 10px;
86 width: 100%;
87 margin: 0;
88 padding: 0;
89 overflow: hidden;
90 white-space: nowrap;
91 list-style-type: none;
92 background: #336 url("nasmlogw.png") no-repeat right center;
93 background-size: contain;
96 ul.navbar li {
97 float: left;
99 ul.navbar li.last {
100 border-right: none;
102 ul.navbar a {
103 border-right: 1px solid #bbb;
104 display: block;
105 color: white;
106 text-align: center;
107 padding: 1em 1.5em;
108 text-decoration: none;
110 ul.navbar a:hover {
111 background-color: #448;