nasmlib: add path-splitting functions
[nasm.git] / doc / nasmdoc.css
blobf989f37b479db7824a00dbf170077b0875997dc7
1 body {
2 font-family: "source sans pro", "clear sans", "liberation sans",
3 "arial", "sans-serif";
4 background: white;
6 div.title {
7 text-align: center;
8 font-weight: bold;
9 margin: 0.67em 0;
11 h1 {
12 font-size: 2em;
13 margin: 0;
15 span.subtitle {
16 font-size: 1.25em;
17 font-style: italic;
19 code, pre {
20 font-family: "source code pro", "liberation mono", "monospace";
22 pre, blockquote {
23 margin-left: 4em;
24 margin-right: 4em;
26 code {
27 display: inline;
28 white-space: nowrap;
30 a {
31 text-decoration: none;
33 div.toc {
34 padding-left: 0;
35 font-size: 195%;
37 div.toc li {
38 list-style-type: none;
39 padding-left: 0;
41 div.toc ol {
42 padding-left: 2em;
43 font-size: 80%;
45 li.toc1 {
46 padding-top: 0.7em;
48 li.toc2 {
49 padding-top: 0.3em;
51 ul.index {
52 list-style-type: none;
54 @media not screen {
55 ul.navbar {
56 display: none;
59 @media print {
60 a {
61 color: inherit;
64 @media only screen and (min-width: 90em) {
65 /* For a very wide screen, go to a columnar layout */
66 div.contents {
67 -webkit-column-count: 2;
68 -moz-column-count: 2;
69 column-count: 2;
72 @media only screen and (min-width: 135em) {
73 div.contents {
74 -webkit-column-count: 3;
75 -moz-column-count: 3;
76 column-count: 3;
79 @media screen {
80 /* Setting an explicit margin to keep the navbar from moving */
81 body {
82 padding: 0;
83 margin: 8px;
86 /* Link styles */
87 a:link {
88 color: #33c;
90 a:visited {
91 color: #338;
93 a:hover {
94 background: #ccc;
96 a:active {
97 color: #f33;
98 background: #ccc;
101 /* Trick to avoid the navbar hiding the the target of an # link */
102 :target {
103 margin-top: -10vh;
104 padding-top: 10vh;
105 background: #ffa; /* Highlight the jump target */
106 background-clip: content-box;
109 ul.navbar {
110 display: block;
111 position: sticky;
112 top: 8px;
113 width: 100%;
114 margin: 0;
115 padding: 0;
116 overflow: hidden;
117 white-space: nowrap;
118 list-style-type: none;
119 background: #336 url("nasmlogw.png") no-repeat right center;
120 background-size: contain;
123 ul.navbar li {
124 float: left;
126 ul.navbar li.last {
127 border-right: none;
129 ul.navbar a {
130 border-right: 1px solid #bbb;
131 display: block;
132 color: white;
133 text-align: center;
134 padding: 1em 1.5em;
135 text-decoration: none;
137 ul.navbar a:hover {
138 background-color: #448;