Skip to content

Commit

Permalink
feat: add handles
Browse files Browse the repository at this point in the history
  • Loading branch information
christianliebel committed Jun 30, 2020
1 parent 3420d7b commit 09e148f
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
27 changes: 27 additions & 0 deletions elements/handle.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import {html, LitElement} from '../web_modules/lit-element.js';
import {css} from "../web_modules/lit-element";

class Handle extends LitElement {
static get styles() {
return css`
:host {
display: inline-block;
box-sizing: border-box;
width: 3px;
height: 3px;
border-top: 1px solid var(--highlight);
border-left: 1px solid var(--highlight);
background-color: var(--highlight);
}
:host([disabled]) {
background-color: var(--highlight-text);
}
`;
}

render() {
return html``;
}
}
customElements.define('paint-handle', Handle);
1 change: 1 addition & 0 deletions elements/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import './app.js';
import './canvas.js';
import './handle.js';
import './inset-container.js';
import './menu-bar.js';
import './status-bar.js';
Expand Down

0 comments on commit 09e148f

Please sign in to comment.