Skip to content

Commit

Permalink
WIP: implement
Browse files Browse the repository at this point in the history
  • Loading branch information
yorickpeterse committed Jun 12, 2024
1 parent 86834ba commit b692d8b
Show file tree
Hide file tree
Showing 21 changed files with 3,056 additions and 140 deletions.
667 changes: 667 additions & 0 deletions assets/css/main.css

Large diffs are not rendered by default.

176 changes: 176 additions & 0 deletions assets/css/reset.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,176 @@
/*! normalize.css v8.0.0 | MIT License | github.com/necolas/normalize.css */
html {
line-height: 1.15;
-webkit-text-size-adjust: 100%;
}

body {
margin: 0;
}

h1 {
font-size: 2em;
margin: 0.67em 0;
}

hr {
box-sizing: content-box;
height: 0;
overflow: visible;
}

pre {
font-family: monospace;
font-size: 1em;
}

a {
background-color: transparent;
}

abbr[title] {
border-bottom: none;
text-decoration: underline;
text-decoration: underline dotted;
}

b,
strong {
font-weight: bolder;
}

code,
kbd,
samp {
font-family: monospace;
font-size: 1em;
}

small {
font-size: 80%;
}

sub,
sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}

sub {
bottom: -0.25em;
}

sup {
top: -0.5em;
}

img {
border-style: none;
}

button,
input,
optgroup,
select,
textarea {
font-family: inherit;
font-size: 100%;
line-height: 1.15;
margin: 0;
}

button,
input {
overflow: visible;
}

button,
select {
text-transform: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
-webkit-appearance: button;
}

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
border-style: none;
padding: 0;
}

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
outline: 1px dotted ButtonText;
}

fieldset {
padding: 0.35em 0.75em 0.625em;
}

legend {
box-sizing: border-box;
color: inherit;
display: table;
max-width: 100%;
padding: 0;
white-space: normal;
}

progress {
vertical-align: baseline;
}

textarea {
overflow: auto;
}

[type="checkbox"],
[type="radio"] {
box-sizing: border-box;
padding: 0;
}

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
height: auto;
}

[type="search"] {
-webkit-appearance: textfield;
outline-offset: -2px;
}

[type="search"]::-webkit-search-decoration {
-webkit-appearance: none;
}

::-webkit-file-upload-button {
-webkit-appearance: button;
font: inherit;
}

details {
display: block;
}

summary {
display: list-item;
}

template {
display: none;
}

[hidden] {
display: none;
}
Binary file added assets/favicon.ico
Binary file not shown.
Binary file added assets/images/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
40 changes: 40 additions & 0 deletions assets/js/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
(function() {
"use strict";

document.addEventListener('DOMContentLoaded', function() {
document.querySelectorAll('.expand-menus a').forEach(function(button) {
button.addEventListener('click', function(event) {
event.preventDefault();

let query = button.dataset.toggle;
let new_text = button.dataset.toggleText;
let old_text = button.innerText;

button.dataset.toggleText = old_text;
button.innerText = new_text;

let el = document.querySelector(query);

if (el) {
el.classList.toggle('visible');
}
});
});

// Scroll the left sidebar such that the selected entry is roughly in the
// middle of the container.
let left = document.querySelector('.page .left > ul');
let current = document.querySelector('.page .left .current');

if (left && current) {
let height = parseFloat(getComputedStyle(left).height);
let padding = 100;

if (height && height > 0) {
padding = Math.round(height / 2);
}

left.scrollTop = current.offsetTop - padding;
}
});
})();
5 changes: 3 additions & 2 deletions inko.pkg
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
require https://github.com/yorickpeterse/inko-wobsite 0.14.0 aefbbaf6d24cb4a6574c92573c0a72d14b863760
require https://github.com/yorickpeterse/inko-wobsite 0.17.0 1078263e2219842fcfeed309ef57acd803f0501a
require https://github.com/yorickpeterse/inko-builder 0.12.0 dfb7877ca9dec2109b0fa940190c210dd3fe4059
require https://github.com/yorickpeterse/inko-markdown 0.16.0 e6d26dd94bd44cdd24fb8a159caa949cfe82891f
require https://github.com/yorickpeterse/inko-markdown 0.20.0 f3e1021ac8eb00ddca6490d26c49b4c82524d23c
require https://github.com/yorickpeterse/inko-syntax 0.10.0 c131fcf9099428b3fcc47bffd605dd5ad94c8766
96 changes: 0 additions & 96 deletions src/idoc/cmd/html.inko

This file was deleted.

Loading

0 comments on commit b692d8b

Please sign in to comment.