From 73b0ddc2cecb08509a17bef4d222e8f5b183599e Mon Sep 17 00:00:00 2001 From: Araxeus <78568641+Araxeus@users.noreply.github.com> Date: Sun, 4 Apr 2021 21:25:41 +0300 Subject: [PATCH] css tweaks --- prompt/customTitlebar.js | 7 +++++++ prompt/darkPrompt.css | 17 +++++++++-------- prompt/page/prompt.css | 8 +++++++- 3 files changed, 23 insertions(+), 9 deletions(-) diff --git a/prompt/customTitlebar.js b/prompt/customTitlebar.js index 203828d4..5dc942cf 100644 --- a/prompt/customTitlebar.js +++ b/prompt/customTitlebar.js @@ -3,10 +3,17 @@ const customTitlebar = require("custom-electron-titlebar"); module.exports = () => { const bar = new customTitlebar.Titlebar({ backgroundColor: customTitlebar.Color.fromHex("#050505"), + minimizable: false, + maximizable: false, + unfocusEffect: true, }); try { bar.updateMenu(null); } catch (e) { //will always throw type error - null isn't menu, but it works } + let container = document.querySelector('#container'); + container.style.width = '100%'; + container.style.position = 'fixed'; + container.style.border = 'unset'; } \ No newline at end of file diff --git a/prompt/darkPrompt.css b/prompt/darkPrompt.css index 3bdc5647..311c42b5 100644 --- a/prompt/darkPrompt.css +++ b/prompt/darkPrompt.css @@ -1,15 +1,10 @@ + body { background-color: rgba(0, 0, 0, 0.3); background-image: linear-gradient(315deg, #200000 0%, #13253a 74%); - overflow: hidden; color:whitesmoke; } -::-webkit-scrollbar { - width: 0 !important; - display: none; -} - #label { text-align: center; } @@ -30,14 +25,20 @@ body { border: 1px solid rgb(54, 54, 54); } +#data:hover { + border: 1px solid rgb(85, 85, 85); +} + #data:focus { outline: unset; border: 1px solid rgb(85, 85, 85); } - #ok:focus, #cancel:focus { - outline: rgba(30, 0, 0, 0.3) solid 1px; + #ok:hover, #cancel:hover { + outline: rgba(60, 0, 0, 0.4) solid 2px; + /* border: 1px solid rgba(60, 0, 0, 0.4); + */ } #ok, #cancel { diff --git a/prompt/page/prompt.css b/prompt/page/prompt.css index b9d37777..b18d1fc0 100644 --- a/prompt/page/prompt.css +++ b/prompt/page/prompt.css @@ -3,6 +3,12 @@ body { line-height: 1.5em; color: #333; background-color: #fff; + overflow-y: hidden; +} + +::-webkit-scrollbar { + width: 0 !important; + display: none; } #container { @@ -10,7 +16,7 @@ body { justify-content: center; display: flex; height: 100%; - overflow: auto; + overflow-y: hidden; } #form {