From 217391b95e6d1d41c176ec40e0cd7d3a4c4caf76 Mon Sep 17 00:00:00 2001 From: CakeLancelot Date: Wed, 16 Dec 2020 14:52:24 -0600 Subject: [PATCH] CSS and modal tweaks * Fix *most* selecting shenanigans in old Electron ver. * Replace input field in add server modal with select * Style select tag similarly to input --- resources/app/menu/assets/css/openfusion.css | 26 ++++++++++++++++---- resources/app/menu/index.html | 8 +++--- 2 files changed, 25 insertions(+), 9 deletions(-) diff --git a/resources/app/menu/assets/css/openfusion.css b/resources/app/menu/assets/css/openfusion.css index 59871de..eff0350 100644 --- a/resources/app/menu/assets/css/openfusion.css +++ b/resources/app/menu/assets/css/openfusion.css @@ -1,5 +1,6 @@ -#server-table { - opacity: 0.90; +:not(input):not(textarea), :not(input):not(textarea)::after, :not(input):not(textarea)::before { + -webkit-user-select: none; + user-select: none; } #server-table > .table-striped tbody tr:nth-of-type(odd) { @@ -10,6 +11,11 @@ background-color: #34476E; } +#server-table { + font-size: 14pt; + opacity: 0.9; +} + #of-intro-text { text-shadow: 1px 1px 8px #4349C4; color: #4A76B7; @@ -80,8 +86,18 @@ input { color: #fff; } -#server-table { - font-size: 14pt; - opacity: 0.9; +select { + border-color: #0099FF; + background-color: #000; + color: #fff; +} + +button:disabled { + cursor: not-allowed; + pointer-events: all !important; +} + +button > i { + pointer-events: none; } diff --git a/resources/app/menu/index.html b/resources/app/menu/index.html index df07a3d..782f84d 100644 --- a/resources/app/menu/index.html +++ b/resources/app/menu/index.html @@ -77,13 +77,13 @@ - + - +