nothingislost / obsidian-workspaces-plus

Quickly switch and manage Obsidian workspaces
GNU General Public License v3.0
198 stars 6 forks source link

Pop up triggers background focus for modals #30

Closed jsmorabito closed 3 years ago

jsmorabito commented 3 years ago

@nothingislost not sure if this is in your power or for individual theme makers but the pop up is being treated as a modal and being focused on when that's not necessary for just a drop down/pop up. Im referring to the blue tint covering the rest of the screen

see yin yang

image
nothingislost commented 3 years ago

Yeah, this is a Yin Yang thing. She's setting an !important on the modal container background. I try not to put any importants on anything if I can avoid it, and I don't style anything that the plugin doesn't create itself, so I can't override it. Ideally, there should be no background on the modal-container, the background goes on .modal-bg which I'm setting to transparent.

/* from Yin&Yang */
.modal-container {
    background-color: rgb(75, 155, 255, 0.1) !important;
}

if you want to override it yourself, you can create a CSS snippet that looks like this:

body div.modal-container {
  background-color: transparent !important;
}
nothingislost commented 3 years ago

Nevermind, I found a way to remove it just for my modal :) I'll address it in the next release:

this.bgEl.parentElement.setAttribute("style", "background-color: transparent !important");