Skip to content

Instantly share code, notes, and snippets.

@Sheraff
Last active July 3, 2021 12:00
Show Gist options
  • Save Sheraff/775dcd0a046596279c0ed1befd362d1f to your computer and use it in GitHub Desktop.
Save Sheraff/775dcd0a046596279c0ed1befd362d1f to your computer and use it in GitHub Desktop.
CodeSwing template theming tests

Heading level 1

Heading level 2

hello

some quote

private css: string = "";
private html: string = "";

A list

  1. item
  2. item
  3. item

Possimus dolores ad quod quia doloribus debitis. Deserunt tenetur dignissimos harum repellendus distinctio. Eum facilis voluptatum velit.

col 1 col 2
item item
more more

Debitis et fuga perferendis et architecto. Minima neque eum nesciunt esse atque. Id porro corrupti libero.

END OF README


{
"scripts": [],
"styles": [],
"readmeBehavior": "previewHeader"
}
<style>
/* styles not to be included in template stylesheet */
div {
margin-top: 10px;
}
</style>
<div>
<button>My Button</button>
</div>
<div>
<a href="https://news.ycombinator.com/">my link</a>
</div>
<div>
<figure>
<blockquote cite="https://www.huxley.net/bnw/four.html">
<p>Words can be like X-rays, if you use them properly—they’ll go <cite>through anything</cite>. You read and you’re pierced.</p>
</blockquote>
<figcaption>—Aldous Huxley, <cite>Brave New World</cite></figcaption>
</figure>
</div>
<div>
<hr />
</div>
<div>
<p>The <code>push()</code> method adds one<sub>x</sub> or more elements to the end of an array and returns the new length of the
array. Toggle<sup>[1]</sup> option with <kbd>Escape</kbd><kbd>⌘</kbd><kbd>⇧</kbd><kbd>⌥</kbd><kbd>B</kbd> to see the <samp>results</samp>.</p>
<p>As John always said, <q>Hello World</q>:</p>
</div>
<div>
<pre>
<!---->private css: string = "";
<!---->private html: string = "";
<!----><ins>private html: string = "";</ins>
<!----><del>private html: string = "";</del><!--
--></pre>
<p>Where <var>css</var> is the minified string of a stylesheet.</p>
</div>
<div>
<details>
<summary>Details</summary>
Something small enough to escape casual notice.
</details>
</div>
<div>
<textarea name="" id="" cols="30" rows="10" placeholder="hello">
</textarea>
</div>
<div>
<form action="">
<fieldset>
<legend>Choose your favorite monster</legend>
<label>hello</label>
<input type="text" placeholder="hello">
<br />
<select name="" id="">
<option value="">hello</option>
</select>
<br />
<input type="checkbox" id="scales" name="scales" checked>
<label for="scales">Scales</label>
<br />
<input type="checkbox" id="horns" name="horns">
<label for="horns">Horns</label>
<br />
<input type="radio" id="huey" name="drone" value="huey" checked>
<label for="huey">Huey</label>
<br />
<input type="radio" id="dewey" name="drone" value="dewey">
<label for="dewey">Dewey</label>
</fieldset>
</form>
</div>
<dl>
<dt>Publisher</dt>
<dd>CNN and others</dd>
<dt>Community admin</dt>
<dd>Admins of Climate Feedback, Public Editors, etc</dd>
<dt>Hypothesis admin</dt>
<dt>Hypothesis developer</dt>
</dl>
*:focus {
outline: var(--vscode-focusBorder) solid 1px;
}
::selection {
background-color: var(--vscode-editor-selectionBackground);
}
body {
width: auto;
height: auto;
background-color: var(--vscode-editor-background, white);
color: var(--vscode-editor-foreground, revert);
caret-color: var(--vscode-editorCursor-foreground);
font-family: var(--vscode-font-family, sans-serif);
font-weight: var(--vscode-font-weight);
font-size: var(--vscode-font-size);
}
button {
background-color: var(--vscode-button-background);
color: var(--vscode-button-foreground);
border: none;
outline-offset: 2px;
padding: 4px 8px;
}
button:hover {
background-color: var(--vscode-button-hoverBackground);
}
a:link {
color: var(--vscode-textLink-foreground);
}
a:link:active {
color: var(--vscode-textLink-activeForeground);
}
blockquote {
background-color: var(--vscode-textBlockQuote-background);
border-left: solid 2px var(--vscode-textBlockQuote-border);
padding: 0.1px 1em;
}
hr {
border-style: solid;
border-width: 1px 0 0 0;
border-color: var(--vscode-textSeparator-foreground);
}
pre, code, samp, var {
font-family: var(--vscode-editor-font-family, monospace);
font-weight: var(--vscode-editor-font-weight);
font-size: var(--vscode-editor-font-size);
}
pre, code {
color: var(--vscode-textPreformat-foreground);
}
pre {
background-color: var(--vscode-textCodeBlock-background);
padding: 4px;
overflow: hidden;
}
pre ins, pre del {
text-decoration: none;
position: relative;
display: inline-block;
z-index: 0;
}
pre ins::before, pre del::before {
content: '';
position: absolute;
left: -100vw;
width: 200vw;
top: 0;
bottom: 0;
z-index: -1;
border-top: 1px solid transparent;
border-bottom: 1px solid transparent;
}
pre ins::before {
background-color: var(--vscode-diffEditor-insertedTextBackground);
border-color: var(--vscode-diffEditor-insertedTextBorder, transparent);
}
pre del::before {
background-color: var(--vscode-diffEditor-removedTextBackground);
border-color: var(--vscode-diffEditor-removedTextBorder, transparent);
}
details summary {
outline-offset: 2px;
}
details[open] summary {
margin-bottom: 2px;
}
fieldset {
border: solid 1px var(--vscode-textSeparator-foreground);
}
textarea, input, select {
border: none;
background-color: var(--vscode-input-background);
color: var(--vscode-input-foreground);
padding: 4px;
}
textarea::placeholder, input::placeholder {
color: var(--vscode-input-placeholderForeground);
}
select {
padding: 2px;
}
textarea:focus, input:focus, select:focus {
color: var(--vscode-inputOption-activeForeground);
outline: var(--vscode-focusBorder) solid 1px;
outline-offset: -1px;
}
textarea:invalid, input:invalid, select:invalid {
outline: var(--vscode-inputValidation-errorBorder) solid 1px;
outline-offset: -1px;
}
input[type="checkbox"]:focus, input[type="radio"]:focus,
input[type="checkbox"]:invalid, input[type="radio"]:invalid {
outline-offset: revert;
}
kbd {
font-family: var(--vscode-font-family, sans-serif);
font-size: calc(var(--vscode-font-size) * .85);
color: var(--vscode-keybindingLabel--foreground);
border-radius: 3px;
padding: 0 4px;
background-color: var(--vscode-keybindingLabel-background);
border: 1px solid var(--vscode-keybindingLabel-border);
border-bottom-color: var(--vscode-editor-background);
box-shadow: 0 1px 0 var(--vscode-keybindingLabel-bottomBorder);
}
kbd + kbd {
margin-left: 4px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment