This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { | |
isValueElement, | |
normalizeInputValue, | |
toggleSubmitButtons | |
} from './form-utilities'; | |
import { | |
clearValidationErrors, | |
displayServerValidationError, | |
validateForm | |
} from './form-validation'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>GistRun</title> | |
<link rel="stylesheet" href="https://unpkg.com/@primer/[email protected]/dist/primer.css" /> | |
<style> | |
@media screen and (min-width: 560px) { | |
.productivity-layout { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import escape_html from 'escape-html'; | |
export class TemplateResult { | |
constructor( | |
public readonly strings: TemplateStringsArray, | |
public readonly values: any[] | |
) {} | |
} | |
export function html(strings: TemplateStringsArray, ...values: any[]) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>GistRun</title> | |
<link rel="stylesheet" href="styles.css"> | |
</head> | |
<body> | |
<h1>Hello world!</h1> | |
<pre id="outputPre"></pre> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>GistRun</title> | |
<link rel="stylesheet" href="styles.css"> | |
</head> | |
<body> | |
<h1>Hello world!</h1> | |
<script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<!-- this breaks iframe transparency: --> | |
<meta name="color-scheme" content="light dark"> | |
<!-- remove the line above and the iframe background becomes transparent as expected --> | |
<title>Demo</title> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Stacks Editor</title> | |
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@stackoverflow/[email protected]/dist/css/stacks.min.css" integrity="sha256-nM5uyfIHDQ7kqN0TD0xRZKZ86IKqK4unu1hS7YuedNo=" crossorigin="anonymous"> | |
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@stackoverflow/[email protected]/dist/styles.css" integrity="sha256-FCWPuq+Y8jQfi1k/YibDWTBHCZ5a7dQx78VwJrHsJzI=" crossorigin="anonymous"> | |
</head> | |
<body> | |
<div id="editor-container"></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Hello world</title> | |
<!-- site's preferred scheme first --> | |
<meta name="color-scheme" content="dark light"> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
This is an experiment where adding a new brand color or semantic color is only | |
a matter of adding a class that assigns r,g,b variables: | |
.color-brand-office { | |
--r: 216; | |
--g: 59; | |
--b: 1; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>GistRun</title> | |
<style> | |
:root { | |
--lightness-threshold: 0.6; | |
--text: #000; |