Give modals the dark app theme and close them on outside click
- Restyle the shared modal styles to the dark app palette with orange accents - Remove light-theme overrides in Search, Sync and Settings modals - Add outside-click close and fade transition to the Sync modal - Use @click.self for outside-click close in all modals - Let tall modals scroll instead of being cut off - Darken the mobile menu to match
This commit is contained in:
1 parent
8b5aa3adf0
commit
e6d71fc77c
9 files changed
+106
-140
No files matched your search
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<transition name="modalAni">
|
||||
<div v-if="show" class="modal" @click="checkIfClickShouldCloseModal">
|
||||
<div v-if="show" class="modal" @click.self="closeModal">
|
||||
<div class="modalContainer">
|
||||
<div class="modalWrapper">
|
||||
<span class="closeModalImg" @click="closeModal">×</span>
|
||||
@@ -68,11 +68,6 @@ export default {
|
||||
this.searchTimeout = null;
|
||||
}
|
||||
},
|
||||
checkIfClickShouldCloseModal(event) {
|
||||
if (event.target.classList[0] === "modal") {
|
||||
this.closeModal();
|
||||
}
|
||||
},
|
||||
debouncedSearch() {
|
||||
// Clear existing timeout
|
||||
if (this.searchTimeout) {
|
||||
@@ -160,7 +155,9 @@ export default {
|
||||
width: 100%;
|
||||
padding: 12px;
|
||||
font-size: 1.1rem;
|
||||
border: 1px solid #ccc;
|
||||
border: 1px solid #777;
|
||||
background-color: rgb(66, 66, 66);
|
||||
color: white;
|
||||
border-radius: 5px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
@@ -178,7 +175,7 @@ export default {
|
||||
}
|
||||
|
||||
.loading {
|
||||
color: #666;
|
||||
color: #bbb;
|
||||
font-style: italic;
|
||||
text-align: center;
|
||||
padding: 20px;
|
||||
@@ -191,19 +188,19 @@ export default {
|
||||
.resultItem {
|
||||
padding: 12px;
|
||||
margin-bottom: 8px;
|
||||
background-color: #f8f8f8;
|
||||
border: 1px solid #ddd;
|
||||
background-color: rgb(66, 66, 66);
|
||||
border: 1px solid #555;
|
||||
border-radius: 5px;
|
||||
cursor: pointer;
|
||||
transition: background-color 0.2s;
|
||||
}
|
||||
|
||||
.resultItem:hover {
|
||||
background-color: #e8e8e8;
|
||||
background-color: #555;
|
||||
}
|
||||
|
||||
.noResults {
|
||||
color: #666;
|
||||
color: #bbb;
|
||||
text-align: center;
|
||||
padding: 20px;
|
||||
font-style: italic;
|
||||
|
||||
Reference in new issue
Block a user