Removed the correct eventlistener function to not create overlapping eventlisteners for the same fn

This commit is contained in:
2019-04-16 00:03:40 +02:00
parent f76cebedd3
commit 180d073b63
2 changed files with 31 additions and 1 deletions

View File

@@ -36,7 +36,7 @@ export default {
} }
}, },
destroyed() { destroyed() {
window.removeEventListener('keyup') window.removeEventListener('keyup', this.arrowNavigation)
document.ontouchmove = function (e) { document.ontouchmove = function (e) {
return true; return true;
}; };

30
src/scss/buttons.scss Normal file
View File

@@ -0,0 +1,30 @@
.button {
-webkit-appearance: none;
-webkit-backface-visibility: none;
border: 2.5px solid #c91119;
border-radius: 3px;
// color: rgb(255, 255, 255);
background-color: white;
color: #c91119;
cursor: pointer;
font-size: 14px;
font-weight: 600;
height: 42px;
letter-spacing: 1px;
line-height: 14px;
margin-left: -10px;
padding: 0 1rem;
text-transform: uppercase;
transition-delay: 0s;
transition-duration: 0.1s;
transition-property: opacity;
transition-timing-function: linear;
vertical-align: baseline;
white-space: pre;
writing-mode: horizontal-tb;
&:hover, &:active, &:focus {
color: white;
background-color: #c91119;
}
}