Skip to content

Commit 9b2f1cd

Browse files
committed
Add static documentation.
1 parent 5244c98 commit 9b2f1cd

File tree

107 files changed

+24275
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

107 files changed

+24275
-0
lines changed

docs/.nojekyll

Whitespace-only changes.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
2+
.litebox.overlay {
3+
background: rgba(0, 0, 0, 0.96);
4+
position: fixed;
5+
top: 0;
6+
left: 0;
7+
height: 100%;
8+
width: 100%;
9+
z-index: 10;
10+
11+
display: flex;
12+
align-items: center;
13+
justify-content: center;
14+
15+
box-sizing: border-box;
16+
padding: 1em;
17+
}
18+
19+
.litebox.overlay img {
20+
flex-shrink: 1;
21+
max-width: 100%;
22+
max-height: 100%;
23+
}
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
2+
.gallery {
3+
padding: 0.5rem;
4+
5+
display: flex;
6+
flex-flow: row wrap;
7+
align-items: center;
8+
justify-content: center;
9+
}
10+
11+
.gallery figure {
12+
margin: 1rem;
13+
14+
background-color: rgb(250, 250, 250);
15+
box-shadow: 0 0 1rem rgba(0, 0, 0, 0.2);
16+
17+
/* This ensures that our figures never grow bigger than desired. */
18+
flex-basis: 400px;
19+
}
20+
21+
.gallery figure a {
22+
display: block;
23+
margin: 0.5rem;
24+
}
25+
26+
.gallery img {
27+
border: none;
28+
display: block;
29+
30+
width: 100%;
31+
}
32+
33+
.gallery figcaption {
34+
display: block;
35+
margin: 0.5rem;
36+
37+
font-size: 1rem;
38+
text-align: center;
39+
40+
display: flex;
41+
align-items: center;
42+
justify-content: center;
43+
44+
/* The figure caption should have a minimum height, if there are multiple
45+
lines of caption, the total size of the figure is likely to be the same as
46+
others. */
47+
min-height: 4rem;
48+
}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
2+
(function ($, undefined) {
3+
function showImage(element, overlay) {
4+
if (element.href) {
5+
var image = new Image();
6+
image.src = element.href;
7+
overlay.append(image);
8+
}
9+
}
10+
11+
$.fn.litebox = function(callback) {
12+
callback = callback || showImage;
13+
14+
this.on('click', function() {
15+
var overlay = $('<div class="litebox overlay"></div>');
16+
17+
overlay.on('click', function() {
18+
overlay.remove();
19+
$('body').css('overflow', 'auto');
20+
});
21+
22+
callback(this, overlay);
23+
24+
$('body').css('overflow', 'hidden');
25+
$('body').append(overlay);
26+
27+
return false;
28+
});
29+
}
30+
}(jQuery));
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
.syntax-theme-base .apache .tag {
2+
color: #00c; }
3+
.syntax-theme-base .apache .tag-name {
4+
color: #00f; }
5+
.syntax-theme-base .apache .tag-name {
6+
font-weight: bold; }
7+
8+
@media (prefers-color-scheme: dark) {
9+
.syntax-theme-base .apache .tag {
10+
color: #6666ff; }
11+
.syntax-theme-base .apache .tag-name {
12+
color: #9999ff; } }
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.syntax-theme-base .applescript {
2+
font-family: Geneva, Helvetica, sans-serif; }
3+
.syntax-theme-base .applescript .keyword {
4+
color: #00f;
5+
font-weight: bold; }
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.syntax-theme-base .assembly .register {
2+
color: #3caa20;
3+
font-style: italic; }
4+
.syntax-theme-base .assembly .label {
5+
font-weight: bold;
6+
color: #2a85b3; }
7+
.syntax-theme-base .assembly .directive {
8+
color: #828a3d; }
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.syntax-theme-base .bash-script .option {
2+
color: #03f; }
3+
.syntax-theme-base .bash-script .env {
4+
font-style: italic; }
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.syntax-theme-base .bash .stderr {
2+
color: red; }
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.syntax-theme-base .preprocessor {
2+
color: #63381f; }
3+
4+
@media (prefers-color-scheme: dark) {
5+
.syntax-theme-base .preprocessor {
6+
color: #c97e52; } }

0 commit comments

Comments
 (0)