Update StackMonkey.ps1

This commit is contained in:
2025-06-29 04:35:25 -04:00
parent dedbaa8bc7
commit 1ca63645dc

View File

@@ -856,163 +856,163 @@ function Invoke-ScriptMonkey {
# #
# 1) Inline your full original CSS here # 1) Inline your full original CSS here
# #
$style = @' $style = @'
<style> <style>
:root { :root {
/* Cool Palette */ /* Cool Palette */
--background-color: rgba(18, 18, 18, 1); --background-color: rgba(18, 18, 18, 1);
--border-color: rgba(255,127,0,0.25); --border-color: rgba(255,127,0,0.25);
/* Neutral Colors */ /* Neutral Colors */
--white-color: rgba(255,255,255); --white-color: rgba(255,255,255);
--gray-color: rgba(102,102,102); --gray-color: rgba(102,102,102);
--dark-gray-color: rgba(51,51,51); --dark-gray-color: rgba(51,51,51);
--light-gray-color: rgba(187,187,187); --light-gray-color: rgba(187,187,187);
/* Sidebar Button Colors */ /* Sidebar Button Colors */
--btn-sidebar-light-gray: rgba(68,68,68); --btn-sidebar-light-gray: rgba(68,68,68);
--btn-sidebar-blue: rgba(30,144,255,1); --btn-sidebar-blue: rgba(30,144,255,1);
--btn-hover: rgba(0,86,179,1); --btn-hover: rgba(0,86,179,1);
--btn-hover-scale: 1.05; --btn-hover-scale: 1.05;
/* Button Colors */ /* Button Colors */
--btn-success: rgba(40,167,69); --btn-success: rgba(40,167,69);
--btn-success-disabled: rgba(108,117,125); --btn-success-disabled: rgba(108,117,125);
--btn-danger: rgba(220,53,69); --btn-danger: rgba(220,53,69);
} }
body { body {
font-family: Arial, sans-serif; font-family: Arial, sans-serif;
margin: 0; padding: 0; margin: 0; padding: 0;
background-color: var(--background-color); background-color: var(--background-color);
color: var(--white-color); color: var(--white-color);
height: 100%; overflow: hidden; height: 100%; overflow: hidden;
} }
.logo-container { display: grid; grid-template-columns: auto 1fr; align-items: center; padding: 20px; } .logo-container { display: grid; grid-template-columns: auto 1fr; align-items: center; padding: 20px; }
.logo-container img { max-width:300px; height:auto; } .logo-container img { max-width:300px; height:auto; }
.subtitle { font-size: 1.2rem; color: var(--gray-color); margin-top: 0.5em; } .subtitle { font-size: 1.2rem; color: var(--gray-color); margin-top: 0.5em; }
.container { display:flex; height:100vh; overflow:hidden; } .container { display:flex; height:100vh; overflow:hidden; }
.sidebar { width:200px; background:var(--background-color); padding:10px; } .sidebar { width:200px; background:var(--background-color); padding:10px; }
.sidebar button { .sidebar button {
display:block; width:100%; margin-bottom:10px; padding:10px; display:block; width:100%; margin-bottom:10px; padding:10px;
color:var(--white-color); background:var(--btn-sidebar-light-gray); color:var(--white-color); background:var(--btn-sidebar-light-gray);
border:none; border-radius:5px; cursor:pointer; text-align:left; border:none; border-radius:5px; cursor:pointer; text-align:left;
transition:background-color 0.3s, transform 0.2s; transition:background-color 0.3s, transform 0.2s;
} }
.sidebar button.active { background:var(--btn-sidebar-blue); } .sidebar button.active { background:var(--btn-sidebar-blue); }
.sidebar button:hover { .sidebar button:hover {
background:var(--btn-hover); transform:scale(var(--btn-hover-scale)); background:var(--btn-hover); transform:scale(var(--btn-hover-scale));
} }
.content { .content {
position: relative; position: relative;
flex:1; flex:1;
padding:20px; padding:20px;
overflow-y:auto; overflow-y:auto;
max-height:calc(100vh - 50px); max-height:calc(100vh - 50px);
} }
.fixed-buttons { .fixed-buttons {
position: fixed; position: fixed;
bottom: 20px; bottom: 20px;
right: 20px; right: 20px;
display: flex; display: flex;
gap: 10px; /* space between Exit and Run */ gap: 10px; /* space between Exit and Run */
z-index: 1000; z-index: 1000;
} }
.exit-button, .exit-button,
.run-button { .run-button {
border: none; border: none;
border-radius: 5px; border-radius: 5px;
padding: 10px 20px; padding: 10px 20px;
cursor: pointer; cursor: pointer;
color: var(--white-color); color: var(--white-color);
} }
/* Specific overrides */ /* Specific overrides */
.exit-button { .exit-button {
background-color: var(--btn-danger); background-color: var(--btn-danger);
} }
/* Specific overrides */ /* Specific overrides */
.run-button { .run-button {
background-color: var(--btn-success); background-color: var(--btn-success);
} }
.tab-content { display:none; } .tab-content { display:none; }
.tab-content.active { display:block; } .tab-content.active { display:block; }
.columns-container { .columns-container {
display:flex; gap:20px; flex-wrap:wrap; align-items:flex-start; display:flex; gap:20px; flex-wrap:wrap; align-items:flex-start;
} }
/* column styling, same as old script */ /* column styling, same as old script */
.column { .column {
flex: 1; /* fill available space */ flex: 1; /* fill available space */
max-width: 45%; /* or whatever width you like */ max-width: 45%; /* or whatever width you like */
border: 2px solid var(--border-color); border: 2px solid var(--border-color);
border-radius: 8px; border-radius: 8px;
padding: 10px; padding: 10px;
background-color: var(--dark-gray-color); background-color: var(--dark-gray-color);
box-shadow: 0 4px 6px rgba(0,0,0,0.3); box-shadow: 0 4px 6px rgba(0,0,0,0.3);
} }
.checkbox-group label { .checkbox-group label {
display:flex; align-items:center; margin-bottom:8px; display:flex; align-items:center; margin-bottom:8px;
} }
.button-group { text-align:right; margin-top:20px; } .button-group { text-align:right; margin-top:20px; }
.exit-button { .exit-button {
background:var(--btn-danger); color:var(--white-color); background:var(--btn-danger); color:var(--white-color);
padding:10px 20px; border:none; border-radius:5px; cursor:pointer; padding:10px 20px; border:none; border-radius:5px; cursor:pointer;
} }
#PasswordContainer, #dattoRmmContainer { #PasswordContainer, #dattoRmmContainer {
margin-top: 1em; margin-top: 1em;
} }
/* Common styles for inputs, buttons, and selects */ /* Common styles for inputs, buttons, and selects */
#PasswordContainer input, #PasswordContainer input,
#PasswordContainer button, #PasswordContainer button,
#dattoRmmContainer select { #dattoRmmContainer select {
background-color: var(--dark-gray-color); background-color: var(--dark-gray-color);
color: var(--white-color); color: var(--white-color);
border: 1px solid var(--border-color); border: 1px solid var(--border-color);
border-radius: 4px; border-radius: 4px;
padding: 8px; padding: 8px;
font-size: 14px; font-size: 14px;
display: block; display: block;
width: 40%; width: 40%;
max-width: 200px; max-width: 200px;
} }
/* Style specifically for the fetch button */ /* Style specifically for the fetch button */
#PasswordContainer button { #PasswordContainer button {
background-color: var(--btn-sidebar-blue); background-color: var(--btn-sidebar-blue);
cursor: pointer; cursor: pointer;
transition: background-color 0.3s ease; transition: background-color 0.3s ease;
} }
/* Hover effect for the fetch button */ /* Hover effect for the fetch button */
#PasswordContainer button:hover { #PasswordContainer button:hover {
background-color: var(--btn-hover); background-color: var(--btn-hover);
} }
/* Tag line */ /* Tag line */
#tagline { #tagline {
font-size: 1.2rem; font-size: 1.2rem;
color: var(--light-gray-color); color: var(--light-gray-color);
font-weight: bold; font-weight: bold;
justify-self: center; justify-self: center;
} }
@media (max-width:768px) { @media (max-width:768px) {
.container { flex-direction:column; } .container { flex-direction:column; }
.sidebar { width:100%; } .sidebar { width:100%; }
} }
</style> </style>
'@ '@
$script = @' $script = @'