Added site to this repo and Gitlab to build it
This commit is contained in:
parent
8dafa6fa8f
commit
c474b18232
50 changed files with 1812 additions and 1 deletions
55
_site/assets/_custom.scss
Normal file
55
_site/assets/_custom.scss
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
:root {
|
||||
--accent: #6591ff;
|
||||
}
|
||||
|
||||
figure.screenshot {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
div.site-header {
|
||||
text-align: center;
|
||||
margin-bottom: 48px;
|
||||
display: flex;
|
||||
|
||||
flex-direction: row;
|
||||
align-content: center;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
|
||||
& img {
|
||||
width: 64px;
|
||||
height: 64px;
|
||||
}
|
||||
|
||||
& h1 {
|
||||
font-size: 2.2em;
|
||||
font-variant: small-caps;
|
||||
vertical-align: middle;
|
||||
margin: 0;
|
||||
margin-left: 16px;
|
||||
}
|
||||
}
|
||||
|
||||
kbd {
|
||||
background: var(--body-font-color);
|
||||
color: var(--body-background);
|
||||
border-radius: 4px;
|
||||
font-weight: bold;
|
||||
padding: 2px 3px;
|
||||
font-size: 1.0em;
|
||||
}
|
||||
|
||||
input {
|
||||
-webkit-appearance: auto;
|
||||
appearance: auto;
|
||||
}
|
||||
|
||||
/**
|
||||
* Keybinding settings.
|
||||
*/
|
||||
table.key-bindings.show-binding-names .kb-key-binding {
|
||||
display: none;
|
||||
}
|
||||
table.key-bindings:not(.show-binding-names) .kb-binding-name {
|
||||
display: none;
|
||||
}
|
||||
17
_site/assets/js/controllers/keybindings_controller.js
Normal file
17
_site/assets/js/controllers/keybindings_controller.js
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
import { Controller } from "@hotwired/stimulus"
|
||||
|
||||
export class KeybindingsController extends Controller {
|
||||
static targets = [
|
||||
"showBindingNames",
|
||||
"keyBindingTable"
|
||||
];
|
||||
|
||||
bindingNamesChanged() {
|
||||
let showBindingNames = this.showBindingNamesTarget;
|
||||
if (showBindingNames.checked) {
|
||||
this.keyBindingTableTarget.classList.add("show-binding-names");
|
||||
} else {
|
||||
this.keyBindingTableTarget.classList.remove("show-binding-names");
|
||||
}
|
||||
}
|
||||
}
|
||||
5
_site/assets/js/index.js
Normal file
5
_site/assets/js/index.js
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
import { Application } from "@hotwired/stimulus";
|
||||
import { KeybindingsController } from "./controllers/keybindings_controller";
|
||||
|
||||
const application = Application.start();
|
||||
application.register("keybindings", KeybindingsController);
|
||||
10
_site/assets/jsconfig.json
Normal file
10
_site/assets/jsconfig.json
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"*": [
|
||||
"*"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue