-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
15dbb92
commit 163bb8c
Showing
8 changed files
with
114 additions
and
17 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
.ProseMirror { | ||
min-height: 600px; | ||
background-color: lavender; | ||
position: relative; | ||
grid-area: editor; | ||
padding: 48px; | ||
box-shadow: rgb(181, 181, 181) 0px 0px 20px 0px; | ||
border-radius: 10px; | ||
z-index: 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { LitElement, html } from '../../../deps/lit/lit-core.min.js'; | ||
import getSheet from '../../shared/sheet.js'; | ||
|
||
const sheet = await getSheet('/blocks/edit/da-version/da-version.css'); | ||
|
||
export default class DaVersion extends LitElement { | ||
connectedCallback() { | ||
super.connectedCallback(); | ||
this.shadowRoot.adoptedStyleSheets = [sheet]; | ||
} | ||
|
||
render() { | ||
return html` | ||
<div class="da-version-view"> | ||
<div contenteditable="false" translate="no" class="ProseMirror"> | ||
<p>Some older version</p> | ||
</div> | ||
</div> | ||
`; | ||
} | ||
} | ||
|
||
customElements.define('da-version', DaVersion); |
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
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.