Skip to content

Instantly share code, notes, and snippets.

@aras-p
Created November 25, 2017 12:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aras-p/1cdb3314b0fd342184851c6b5a53514d to your computer and use it in GitHub Desktop.
Save aras-p/1cdb3314b0fd342184851c6b5a53514d to your computer and use it in GitHub Desktop.
Markdeep 0.22 apidocs tweaks
diff --git a/0.22/apidoc.css b/0.22/apidoc.css
index d5b0ea6..4569ef3 100644
--- a/0.22/apidoc.css
+++ b/0.22/apidoc.css
@@ -7,29 +7,26 @@
* https://github.com/aras-p/markdeep-docs-style
*/
body {
- max-width: 75%;
+ max-width: 50em;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
text-align: left;
- margin: 40px;
+ margin: 1.5em;
padding: 0 1em;
}
/* if screen is wide enough, put table of contents on the right side */
-@media screen and (min-width: 80em) {
+@media screen and (min-width: 60em) {
.md .longTOC, .md .mediumTOC, .md .shortTOC {
- max-width: 20%;
- width: 20%;
- float: right;
+ max-width: 20em;
position: fixed;
- right: 0px;
+ left: 54em;
top: 0px;
}
}
/* for narrow screens or print, hide table of contents */
-@media screen and (max-width: 80em) {
+@media screen and (max-width: 60em) {
.md .longTOC, .md .mediumTOC, .md .shortTOC { display: none; }
- body { max-width: 800px; }
}
@media print {
--- features.md1.html 2017-11-25 13:44:19.000000000 +0200
+++ features.md.html 2017-11-25 13:45:44.000000000 +0200
@@ -1482,7 +1482,7 @@
### API Documentation
-To use the Unity-style API documentation template, insert the following anywhere in
+To use the API documentation template, insert the following anywhere in
your document:
<pre class="listing tilde"><<span>link</span> rel="stylesheet" href="https://casual-effects.com/markdeep/latest/apidoc.css?">
diff --git a/0.22/markdeep.js b/0.22/markdeep.js
index fd3798c..c7db82a 100644
--- a/0.22/markdeep.js
+++ b/0.22/markdeep.js
@@ -403,7 +403,7 @@ var STYLESHEET = entag('style',
'font-size:150%;' +
'position:relative;' +
'top:3px;' +
- 'color:black;' +
+ 'color:rgba(26,128,46,.8);' +
'left:-2.95rem;' +
'display:block;' +
'width:0;' +
@@ -425,7 +425,7 @@ var STYLESHEET = entag('style',
'font-size:150%;' +
'position:relative;' +
'top:3px;' +
- 'color:black;' +
+ 'color:rgba(128,73,0,.8);' +
'left:-2.95rem;' +
'display:block;' +
'width:0;' +
@@ -448,10 +448,9 @@ var STYLESHEET = entag('style',
'.md .admonition.error::before{' +
'content: "\\2612";' +
'font-family:"Arial";' +
- 'font-weight:600;' +
'font-size:200%;' +
'position:relative;' +
- 'color:black;' +
+ 'color:rgba(128,12,34,.8);' +
'top:-2px;' +
'left:-3rem;' +
'display:block;' +
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment