Api docs: fix code blocks
Also simplifies some canvas vars Change-Id: I52cd507768ffa361bbd68e1064f947bbcf2dcfa4 Reviewed-on: https://review.haiku-os.org/c/haiku/+/6184 Tested-by: Automation <[email protected]> Reviewed-by: Adrien Destugues <[email protected]>
This commit is contained in:
committed by
waddlesplash
parent
0aeb55c8ac
commit
b548e9131d
+9
-16
@@ -31,8 +31,6 @@
|
|||||||
:root {
|
:root {
|
||||||
color-scheme: light dark;
|
color-scheme: light dark;
|
||||||
|
|
||||||
--CanvasBackground: Canvas;
|
|
||||||
--CanvasText: CanvasText;
|
|
||||||
--LinkText: #dc3c01; /* grenadier */
|
--LinkText: #dc3c01; /* grenadier */
|
||||||
--VisitedLinkText: #892601; /* peru tan */
|
--VisitedLinkText: #892601; /* peru tan */
|
||||||
--TableBackground: #ff4500; /* vermilion */
|
--TableBackground: #ff4500; /* vermilion */
|
||||||
@@ -64,7 +62,6 @@
|
|||||||
--StopBackground: #4d0000;
|
--StopBackground: #4d0000;
|
||||||
--MenuColor: #5c57f2;
|
--MenuColor: #5c57f2;
|
||||||
--TertiaryCanvasText: #c0c0c0;
|
--TertiaryCanvasText: #c0c0c0;
|
||||||
--CanvasText: #DDD;
|
|
||||||
--ButtonBackground: #444;
|
--ButtonBackground: #444;
|
||||||
--SecondaryCanvas: #222;
|
--SecondaryCanvas: #222;
|
||||||
--TertiaryCanvas: #131313;
|
--TertiaryCanvas: #131313;
|
||||||
@@ -73,7 +70,6 @@
|
|||||||
|
|
||||||
@media (prefers-contrast: more) {
|
@media (prefers-contrast: more) {
|
||||||
:root {
|
:root {
|
||||||
--CanvasText: #EFEFEF;
|
|
||||||
--ButtonBackground: #222;
|
--ButtonBackground: #222;
|
||||||
--SecondaryCanvas: #111;
|
--SecondaryCanvas: #111;
|
||||||
--TertiaryCanvas: #080808;
|
--TertiaryCanvas: #080808;
|
||||||
@@ -81,7 +77,6 @@
|
|||||||
}
|
}
|
||||||
@media (prefers-contrast: less) {
|
@media (prefers-contrast: less) {
|
||||||
:root {
|
:root {
|
||||||
--CanvasText: #AAA;
|
|
||||||
--ButtonBackground: #444;
|
--ButtonBackground: #444;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -93,8 +88,6 @@
|
|||||||
/* Userguide specific */
|
/* Userguide specific */
|
||||||
/* "Normal values" */
|
/* "Normal values" */
|
||||||
--HeaderText: LinkText;
|
--HeaderText: LinkText;
|
||||||
--CanvasBackground: Canvas;
|
|
||||||
--CanvasText: CanvasText;
|
|
||||||
--LinkText: LinkText;
|
--LinkText: LinkText;
|
||||||
--VisitedLinkText: VisitedText;
|
--VisitedLinkText: VisitedText;
|
||||||
--ActiveLinkText: ActiveText;
|
--ActiveLinkText: ActiveText;
|
||||||
@@ -198,8 +191,8 @@ div.toc {
|
|||||||
/* Colors and headers */
|
/* Colors and headers */
|
||||||
|
|
||||||
body {
|
body {
|
||||||
color: var(--CanvasText);
|
color: CanvasText;
|
||||||
background-color: var(--CanvasBackground);
|
background-color: Canvas;
|
||||||
}
|
}
|
||||||
|
|
||||||
h1, h2, h3, h4, h5, h6 {
|
h1, h2, h3, h4, h5, h6 {
|
||||||
@@ -319,7 +312,7 @@ h4 a:hover, a:active, h5 a:hover, a:active, h6 a:hover, a:active {
|
|||||||
position: relative;
|
position: relative;
|
||||||
top: 48px;
|
top: 48px;
|
||||||
left: 272px;
|
left: 272px;
|
||||||
color: var(--CanvasText);
|
color: CanvasText;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
letter-spacing: 3px;
|
letter-spacing: 3px;
|
||||||
font-family: Myriad Pro,Myriad Web Pro Regular,Lucida Grande,Geneva,Trebuchet MS,sans-serif;
|
font-family: Myriad Pro,Myriad Web Pro Regular,Lucida Grande,Geneva,Trebuchet MS,sans-serif;
|
||||||
@@ -512,7 +505,7 @@ div.tabs ul.tablist li span, div.tabs2 ul.tablist li span,
|
|||||||
|
|
||||||
div.tabs ul.tablist li li.current a, div.tabs2 ul.tablist li li.current a,
|
div.tabs ul.tablist li li.current a, div.tabs2 ul.tablist li li.current a,
|
||||||
div.tabs3 ul.tablist li li.current a {
|
div.tabs3 ul.tablist li li.current a {
|
||||||
color: black;
|
color: CanvasText;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -718,7 +711,7 @@ dl.note dt, dl.remark dt, dl.warning dt, dl.attention dt {
|
|||||||
|
|
||||||
dl.note dd, dl.remark dd, dl.warning dd, dl.attention dd {
|
dl.note dd, dl.remark dd, dl.warning dd, dl.attention dd {
|
||||||
margin: 10px 10px 10px 60px;
|
margin: 10px 10px 10px 60px;
|
||||||
color: var(--CanvasText); /* pseudo-bold */
|
color: CanvasText; /* pseudo-bold */
|
||||||
}
|
}
|
||||||
|
|
||||||
/* For keyboard shortcuts and the like (also from userguide) */
|
/* For keyboard shortcuts and the like (also from userguide) */
|
||||||
@@ -761,7 +754,7 @@ div.fragment {
|
|||||||
background-color: var(--TertiaryCanvas);
|
background-color: var(--TertiaryCanvas);
|
||||||
border: 1px solid var(--TertiaryCanvasText);
|
border: 1px solid var(--TertiaryCanvasText);
|
||||||
padding: 4px;
|
padding: 4px;
|
||||||
color: black;
|
color: CanvasText;
|
||||||
font-family: "Noto Sans Mono", Consolas, "Courier New", monospace, fixed;
|
font-family: "Noto Sans Mono", Consolas, "Courier New", monospace, fixed;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
@@ -772,9 +765,9 @@ div.fragment pre.fragment a.code {
|
|||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
div.ah {
|
div.ah {
|
||||||
background-color: black;
|
background-color: CanvasText;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
color: white;
|
color: Canvas;
|
||||||
margin-bottom: 3px;
|
margin-bottom: 3px;
|
||||||
margin-top: 3px;
|
margin-top: 3px;
|
||||||
}
|
}
|
||||||
@@ -1027,7 +1020,7 @@ div.memdoc dl dd div.memdoc table.doxtable td {
|
|||||||
|
|
||||||
div.memdoc dl dd table.params td.paramdir {
|
div.memdoc dl dd table.params td.paramdir {
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
color: black;
|
color: CanvasText;
|
||||||
width: 157px;
|
width: 157px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user