diff --git a/src/views/Match.vue b/src/views/Match.vue
index 88b7afe..722fe24 100644
--- a/src/views/Match.vue
+++ b/src/views/Match.vue
@@ -44,26 +44,29 @@
+
—
+
- —
-
@@ -226,6 +229,35 @@ export default {
}
}
+ const handleDownloadMenu = () => {
+ const downloadGroup = document.getElementById('downloadGroup')
+ const menuBtn = document.getElementById('downloadMenuBtn')
+ let opacity = window.getComputedStyle(menuBtn).getPropertyValue('opacity')
+
+ function show() {
+ if (opacity < 1) {
+ opacity = opacity + 0.1
+ downloadGroup.style.opacity = opacity
+ } else {
+ clearInterval(0)
+ }
+ }
+
+ function hide() {
+ if (opacity > 0) {
+ opacity = opacity - 0.1
+ menuBtn.style.opacity = opacity
+ } else {
+ menuBtn.style.display = 'none'
+ downloadGroup.style.opacity = 0
+ downloadGroup.style.display = 'block'
+ setInterval(show, 35)
+ }
+ }
+
+ setInterval(hide, 35)
+ }
+
// Watchers
watch(() => props.match_id, GetMatch)
@@ -254,7 +286,7 @@ export default {
})
return {
- data, DisplayRank, FormatFullDate, FormatDuration, route, checkWin
+ data, DisplayRank, FormatFullDate, FormatDuration, route, checkWin, handleDownloadMenu
}
}
}
@@ -339,42 +371,31 @@ export default {
}
.match-len {
- width: 20px;
- height: 20px;
+ width: 22px;
+ height: 22px;
}
- .btn-group {
- margin-left: -10px;
+ #downloadMenuBtn {
+ cursor: pointer;
+ font-size: 1.3rem;
+ margin-left: -5px;
+ }
- .btn, .dropdown-toggle {
- outline: none;
- border: none;
- box-shadow: none;
+ .group {
+ display: none;
+ margin-left: -5px;
- &:focus, &:hover, &:active {
- outline: none;
- border: none;
- box-shadow: none;
- }
+ i {
+ cursor: pointer;
+ color: white;
+ font-size: 1.3rem;
- .fa {
+ &:hover, &:focus {
color: var(--bs-warning);
}
}
-
- ul {
- border: 2px solid var(--bs-primary);
- background: var(--bs-secondary);
-
- li {
- a:hover, a:focus {
- background: var(--bs-body-bg);
- }
- }
- }
}
}
-
}
.nav {