-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #390 from NeurodataWithoutBorders/updated-path-exp…
…ansion-page Update Path Expansion Page
- Loading branch information
Showing
6 changed files
with
270 additions
and
57 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import { LitElement, css, html } from "lit"; | ||
|
||
export class CodeBlock extends LitElement { | ||
static get styles() { | ||
return css` | ||
:host { | ||
display: block; | ||
font-size: 85%; | ||
background: #f2f1f1; | ||
border-radius: 10px; | ||
border: 1px solid gray; | ||
overflow: hidden; | ||
} | ||
pre { | ||
overflow: auto; | ||
padding: 5px 10px; | ||
box-sizing: border-box; | ||
user-select: text; | ||
margin: 0; | ||
} | ||
`; | ||
} | ||
|
||
constructor({ text = "" }) { | ||
super(); | ||
this.text = text; | ||
} | ||
|
||
render() { | ||
return html`<pre>${this.text}</pre>`; | ||
} | ||
} | ||
|
||
customElements.get("code-block") || customElements.define("code-block", CodeBlock); |
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 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 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
Oops, something went wrong.