diff --git a/src/editor/components/seButton.js b/src/editor/components/seButton.js index 6ea3dbcd..99ab5ad4 100644 --- a/src/editor/components/seButton.js +++ b/src/editor/components/seButton.js @@ -27,7 +27,6 @@ template.innerHTML = ` } img { border: none; - overflow: none; width: 100%; height: 100%; } diff --git a/src/editor/components/seFlyingButton.js b/src/editor/components/seFlyingButton.js index 582fa00a..06bedc1f 100644 --- a/src/editor/components/seFlyingButton.js +++ b/src/editor/components/seFlyingButton.js @@ -13,7 +13,6 @@ template.innerHTML = ` border: none; width: 24px; height: 24px; - overflow: none; } .pressed { background-color: #F4E284 !important; @@ -54,29 +53,12 @@ template.innerHTML = ` background: none !important; } .menu-item { - display: inline; + align-content: flex-start; height: 24px; width: 24px; - margin: 2px 2px 4px; - padding: 3px; - box-shadow: inset 1px 1px 2px white, 1px 1px 1px rgba(0,0,0,0.3); - background-color: #E8E8E8; - cursor: pointer; top:0px; left:0px; } - .open .item1 { - transition-duration: 190ms; - } - .open .item2 { - transition-duration: 290ms; - } - .open .item3 { - transition-duration: 390ms; - } - .open .item4 { - transition-duration: 490ms; - }
@@ -105,15 +87,10 @@ export class FlyingButton extends HTMLElement { // locate the component this.$open = this._shadowRoot.querySelector('.menu-button'); this.$img = this._shadowRoot.querySelector('img'); + this.$menu = this._shadowRoot.querySelector('.menu'); // the last element of the div is the slot // we retrieve all elements added in the slot (i.e. se-buttons) - this.$elements = this.$open.lastElementChild.assignedElements(); - this.$elements[0].style.transitionDuration = '190ms'; - this.$elements[0].style.transform = 'translate(2px,-3px)'; - this.$elements[1].style.transitionDuration = '`2500ms'; - this.$elements[1].style.transform = 'translate(0px,-3px)'; - this.$elements[2].style.transitionDuration = '`2500ms'; - this.$elements[2].style.transform = 'translate(0px,-3px)'; + this.$elements = this.$menu.lastElementChild.assignedElements(); } /** * @function observedAttributes diff --git a/src/editor/images/fh_rect.svg b/src/editor/images/fh_rect.svg index e69de29b..bad96937 100644 --- a/src/editor/images/fh_rect.svg +++ b/src/editor/images/fh_rect.svg @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/src/editor/images/freehand-circle.png b/src/editor/images/freehand-circle.png deleted file mode 100644 index 24726c67..00000000 Binary files a/src/editor/images/freehand-circle.png and /dev/null differ diff --git a/src/editor/images/freehand-square.svg b/src/editor/images/freehand-square.svg deleted file mode 100644 index bad96937..00000000 --- a/src/editor/images/freehand-square.svg +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/src/editor/index.html b/src/editor/index.html index ff4fcd33..08ecac40 100644 --- a/src/editor/index.html +++ b/src/editor/index.html @@ -385,12 +385,20 @@
- - - - + + + + + + + + + + + + + -