aboutsummaryrefslogtreecommitdiff
path: root/src/app/main.css
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2022-02-07 21:26:32 +0100
committer0neGal <mail@0negal.com>2022-02-07 21:30:56 +0100
commit7c2fe789d759bcbf69bdc5ca4f2ff0fede4d4883 (patch)
tree0bb39e85b05a80cb74a011dc7820cc3e9899077c /src/app/main.css
parent8b97390a9e35117bd4bc2f9ceb26f090d6a67ee9 (diff)
downloadViper-7c2fe789d759bcbf69bdc5ca4f2ff0fede4d4883.tar.gz
Viper-7c2fe789d759bcbf69bdc5ca4f2ff0fede4d4883.zip
fixed drag control
I think? I don't know how it was originally, currently now you can drag on the top most of the window and in the left most, unfortunately not inside the various pages. It would probably be possible to do that, but I've not made it do as such, and if it needs to be changed it won't be me doing it.
Diffstat (limited to 'src/app/main.css')
-rw-r--r--src/app/main.css14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/app/main.css b/src/app/main.css
index 2791488..de9a50e 100644
--- a/src/app/main.css
+++ b/src/app/main.css
@@ -560,13 +560,19 @@ code {
/* drag control */
-#bgHolder,
-#overlay.shown + .mainContainer,
-#overlay.shown + .gamesContainer {
+#bgHolder,
+.mainContainer,
+.gamesContainer {
user-select: none;
-webkit-app-region: drag;
}
-a, button, .contentMenu, #close, #nsRelease, #vpReleaseNotes, .mod, #overlay {
+#overlay.shown ~ #bgHolder,
+#overlay.shown ~ .mainContainer,
+#overlay.shown ~ .gamesContainer {
+ -webkit-app-region: no-drag;
+}
+
+a, button, .contentMenu li, #close, #nsRelease, #vpReleaseNotes, .mod, #overlay, #modsdiv {
-webkit-app-region: no-drag;
}