pull/172/head
Roy Francis 2023-04-02 23:21:45 +02:00
rodzic 7cde7de596
commit 3d2cd74a22
3 zmienionych plików z 16 dodań i 11 usunięć

Wyświetl plik

@ -370,6 +370,16 @@ function parseCommandLineArguments() {
type: "string",
describe: "Title for the output HTML page.",
default: "Protected Page",
});
})
.option("template-color-primary", {
type: "string",
describe: "Button color.",
default: "#4CAF50",
})
.option("template-color-secondary", {
type: "string",
describe: "Background color of the page.",
default: "#76b852",
})
}
exports.parseCommandLineArguments = parseCommandLineArguments;

Wyświetl plik

@ -89,6 +89,8 @@ async function runStatiCrypt() {
template_placeholder: namedArgs.templatePlaceholder,
template_remember: namedArgs.templateRemember,
template_title: namedArgs.templateTitle,
template_color_primary: namedArgs.templateColorPrimary,
template_color_secondary: namedArgs.templateColorSecondary,
};
const outputFilepath = namedArgs.directory.replace(/\/+$/, '') + "/" + inputFilepath;

Wyświetl plik

@ -52,7 +52,7 @@
.staticrypt-form .staticrypt-decrypt-button {
text-transform: uppercase;
outline: 0;
background: #4CAF50;
background: /*[|template_color_primary|]*/0;
width: 100%;
border: 0;
padding: 15px;
@ -62,7 +62,7 @@
}
.staticrypt-form .staticrypt-decrypt-button:hover, .staticrypt-form .staticrypt-decrypt-button:active, .staticrypt-form .staticrypt-decrypt-button:focus {
background: #43A047;
filter: brightness(0.8);
}
.staticrypt-html {
@ -77,14 +77,7 @@
.staticrypt-content {
height: 100%;
margin-bottom: 1em;
background: #76b852; /* fallback for old browsers */
background: -webkit-linear-gradient(right, #76b852, #8DC26F);
background: -moz-linear-gradient(right, #76b852, #8DC26F);
background: -o-linear-gradient(right, #76b852, #8DC26F);
background: linear-gradient(to left, #76b852, #8DC26F);
font-family: "Arial", sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
background: /*[|template_color_secondary|]*/0;
}
.staticrypt-instructions {