Skip to content

Instantly share code, notes, and snippets.

@arnog
arnog / notes.json
Created June 3, 2023 18:46
Tecendil Notes
[
{
"key": "i would rather, Ciluvan coita",
"value": [
"<h2>I would rather...</h2>",
"",
"<cite>Arwen, The Lord of the Rings: The Fellowship of the Ring (the movie) inspired by J.R.R. Tolkien</cite>",
"",
"{lang:English}",
"<div class='two-columns'>",
body {
--hue: 206;
--surface: #fafafa;
--surface-border: #fff;
--editable-surface: #fff;
--editable-surface-border: #fafafa;
--secondary: #f2f2f2;
--secondary-border: hsl(0,0%,91%);
--on-surface: hsl(var(--hue),19%,26%);
--link: hsl(var(--hue),40%,49%);;
img {
mix-blend-mode: multiply;
}
@media (prefers-color-scheme: dark) { img {
filter: invert(100%) hue-rotate(180deg);
mix-blend-mode: screen;
}}
function switchTheme(ev) {
// If the alt/option key is pressed, reset to system default
if (ev.altKey) {
document.getElementsByTagName("BODY")[0].removeAttribute("theme");
return;
}
const prefersDark = window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches;
let theme = document.getElementsByTagName("BODY")[0].getAttribute("theme");
@media (prefers-color-scheme: dark) { body:not([theme="light"]) {
--surface: hsl(var(--hue),19%,26%);
--editable-surface: #333;
--editable-surface-border: hsl(0,0%,13%);
--secondary: hsl(var(--hue),25%,35%);
--secondary-border: hsl(var(--hue),19%,26%);
--on-surface: hsl(0,0%,98%);
--link: hsl(var(--hue),36%,84%);
}}
body[theme="dark"] {
# Mathlive Contributor License Agreement
Thank you for considering contributing to MathLive!
Before we can accept your contribution, please read
and sign the following Contributor License Agreement (CLA)
This document is intended to protect both you and us from
legal problems.
@arnog
arnog / Animate-on-scroll.markdown
Created January 22, 2015 21:53
Animate on scroll
@arnog
arnog / dabblet.css
Created January 26, 2012 02:19 — forked from anonymous/dabblet.css
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(30deg, #f06, #ffddcc);
min-height:100%;