change background and theme

This commit is contained in:
ReznoRMichael 2020-09-13 22:25:24 +02:00
parent db8e6b5bf5
commit b4e2cd779c
3 changed files with 114 additions and 69 deletions

BIN
img/hk-background.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 203 KiB

View file

@ -30,9 +30,11 @@
- Single Keys/Pass locations? (required for completion) - Single Keys/Pass locations? (required for completion)
--> -->
<div id="background"></div>
<div id="content"> <div id="content">
<h1 id="h1-title">Hollow Knight Analyze Save Completion</h1> <h1 id="h1-title">Hollow Knight: Analyze Save Completion</h1>
<p class="smalltext">Check what you have left for completion. Hints for first playthrough.<br> <p class="smalltext">Check what you have left for completion. Hints for first playthrough.<br>
Use bloodorca's amazing <a href="https://bloodorca.github.io/hollow/" target="_blank">[ Online Hollow Knight Save Editor ]</a> to decode your save file.<br> Use bloodorca's amazing <a href="https://bloodorca.github.io/hollow/" target="_blank">[ Online Hollow Knight Save Editor ]</a> to decode your save file.<br>
@ -46,7 +48,7 @@
<div class="buttons"> <div class="buttons">
<button id="save-area-read" class="button" onclick="HKReadTextArea();">Analyze Text</button> <button id="save-area-read" class="button" onclick="HKReadTextArea();">Analyze Text</button>
<!-- <button id="save-area-file" class="button" onclick="">Choose File</button> --> <!-- <button id="save-area-file" class="button" onclick="">Load Save</button> -->
<div class="checkboxes"> <div class="checkboxes">
<label for="checkbox-hints" class="checkbox-label"> <label for="checkbox-hints" class="checkbox-label">
@ -81,7 +83,7 @@
</html> </html>
<!-- Instantly load test file (Debugging script) --> <!-- Instantly load test file (Debugging script) -->
<!-- <script src="loadJson.js"></script> --> <script src="loadJson.js"></script>
<!-- Main script --> <!-- Main script -->
<script src="HKCheckCompletion.js"></script> <script src="HKCheckCompletion.js"></script>

169
style.css
View file

@ -19,132 +19,171 @@
*/ */
:root { :root {
--rt-main: #1e406c; --rt-main: #1e4d6c;
} }
html { html {
font-size: 17px; font-size: 17px;
font-weight: 300; font-weight: 300;
} }
body { body {
font-family: 'Heebo', sans-serif; font-family: 'Heebo', sans-serif;
color: #fff;
background-color: #040813;
margin: 0; margin: 0;
} }
b {
font-weight: 500; #background {
color: #1e406c; position: fixed;
} padding: 0;
strong { margin: 0;
font-weight: 700; top: 0;
left: 0;
width: 100%;
height: 100%;
background-image: url("img/hk-background.jpg");
background-size: auto 100%;
background-position: center top;
background-repeat: no-repeat;
z-index: 1;
} }
#content { #content {
max-width: 550px; max-width: 550px;
margin: 0 auto; margin: 0 auto;
position: relative;
z-index: 1000;
} }
b {
font-weight: 500;
color: #aac7d4;
}
strong {
font-weight: 700;
}
h1 { h1 {
font-size: 1.7rem; font-size: 1.7rem;
color: #1e406c; color: #aac7d4;
margin: 0.6rem 0; margin: 0.6rem 0;
} }
#h1-title { #h1-title {
text-align: center; text-align: center;
} }
h2 {
margin: 0.6rem 0;
color: rgba(231, 251, 255, 0.6);
}
textarea {
font-family: 'Consolas', monospace;
font-size: 0.8rem;
background-color: rgba(0, 0, 0, 0);
color: #fff;
border: 1px solid #e3ebf7;
}
#save-area { #save-area {
width: 100%; width: 100%;
height: calc(0.1 * 100vh); height: calc(0.1 * 100vh);
margin: .5rem 0 .3rem 0; margin: .5rem 0 .3rem 0;
font-family: monospace;
}
#save-area-read {
;
} }
.buttons { .buttons {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
} }
.button { .button {
display: flex; display: flex;
font-size: 1rem; font-size: 1rem;
font-weight: 500; font-weight: 500;
font-family: 'Heebo', sans-serif; font-family: 'Heebo', sans-serif;
text-align: center; text-align: center;
background-color: #1e406c; background-color: #1e4d6c;
color: #e3ebf7; color: #aac7d4;
border: 2px solid #122c4e; border: 2px solid #183c55;
padding: 0.3rem 1rem; padding: 0.3rem 1rem;
margin: 0; margin: 0;
} }
.button:hover { .button:hover {
background-color: #285188; background-color: #2e5d7c;
border-color: #2e5d7c;
cursor: pointer; cursor: pointer;
} }
.button:focus { .button:focus {
outline: 2px solid #529dff; outline: 2px solid #5e8dac;
outline-offset: -2px; outline-offset: -2px;
} }
h2 {
margin: 0.6rem 0;
color: #6f7583;
}
p { p {
margin-top: 0.6rem; margin-top: 0.6rem;
margin-bottom: 0.6rem; margin-bottom: 0.6rem;
} }
.hidden { .hidden {
display: none; display: none;
} }
.horizontal-line { .horizontal-line {
padding-bottom: 1px; padding-bottom: 1px;
background: linear-gradient(90deg, #e9e9e9 0%, #FFFFFF 75%); background: linear-gradient(90deg, #e9e9e9 0%, #FFFFFF 75%);
} }
.smalltext { .smalltext {
font-size: 0.8rem; font-size: 0.8rem;
text-align: center; text-align: center;
} }
.entryNo {
color: #d1d1d1;
}
.date {
font-size: 0.8rem;
color: #737373;
margin-left: 1rem;
}
a, a,
a:active, a:active,
a:visited { a:visited {
color: #1e406c; color: #aac7d4;
font-weight: 700; font-weight: 700;
text-decoration: none; text-decoration: none;
} }
a:hover { a:hover {
color: #529dff; color: #d9f3ff;
text-decoration: none; text-decoration: none;
} }
.icon-cancel { .icon-cancel {
color: #f03a17; color: #f03a17;
} }
.icon-ok-squared { .icon-ok-squared {
color: #16c60c; color: #16c60c;
} }
.icon-info-circled { .icon-info-circled {
color: #0c6cc6; color: #479ae7;
} }
.radio, .checkbox
{ .radio,
.checkbox {
position: relative; position: relative;
display: block; display: block;
left: -40px; left: -40px;
padding: 4px; padding: 4px;
margin-left: 10px; margin-left: 10px;
} }
input[type="checkbox"], input[type="checkbox"],
input[type="radio"] input[type="radio"] {
{
margin-right: 10px; margin-right: 10px;
} }
.radio-label, .radio-label,
.checkbox-label .checkbox-label {
{
display: inline-block; display: inline-block;
position: relative; position: relative;
padding: 0 0 0 1.8rem; padding: 0 0 0 1.8rem;
@ -157,82 +196,86 @@ input[type="radio"]
user-select: none; user-select: none;
width: max-content; width: max-content;
} }
.checkbox-label:last-child { .checkbox-label:last-child {
margin-right: 0; margin-right: 0;
} }
.radiomark, .radiomark,
.checkmark .checkmark {
{
position: absolute; position: absolute;
top: 0; top: 0;
left: 0; left: 0;
height: 22px; height: 22px;
width: 22px; width: 22px;
background-color: #c1c8d1; background-color: #aac7d4;
border: 1px solid #1e406c; border: 1px solid #1e4d6c;
border: 1px solid var(--rt-main); border: 1px solid var(--rt-main);
} }
.radiomark { border-radius: 50%; }
.radiomark {
border-radius: 50%;
}
/* Hide the browser's default checkbox */ /* Hide the browser's default checkbox */
.radio-label input, .radio-label input,
.checkbox-label input .checkbox-label input {
{
position: absolute; position: absolute;
opacity: 0; opacity: 0;
cursor: pointer; cursor: pointer;
height: 0; height: 0;
width: 0; width: 0;
} }
/* On mouse-over change background color */ /* On mouse-over change background color */
.radio-label:hover input~.radiomark, .radio-label:hover input~.radiomark,
.checkbox-label:hover input ~ .checkmark .checkbox-label:hover input~.checkmark {
{ background-color: #d9f3ff;
background-color: #e1e6ee;
} }
/* When the checkbox is checked change background color */ /* When the checkbox is checked change background color */
.radio-label input:checked~.radiomark, .radio-label input:checked~.radiomark,
.checkbox-label input:checked ~ .checkmark .checkbox-label input:checked~.checkmark {
{ background-color: #1e4d6c;
background-color: #1e406c;
background-color: var(--rt-main); background-color: var(--rt-main);
} }
/* When the checkbox is checked change background color on hover */ /* When the checkbox is checked change background color on hover */
.radio-label:hover input:checked~.radiomark, .radio-label:hover input:checked~.radiomark,
.checkbox-label:hover input:checked ~ .checkmark .checkbox-label:hover input:checked~.checkmark {
{ background-color: #2e5d7c;
background-color: #285188; border-color: #2e5d7c;
} }
/* Create the checkmark/indicator (hidden when not checked) */ /* Create the checkmark/indicator (hidden when not checked) */
.radiomark:after, .radiomark:after,
.checkmark:after .checkmark:after {
{
content: ""; content: "";
position: absolute; position: absolute;
display: none; display: none;
} }
/* Show the checkmark when checked */ /* Show the checkmark when checked */
.radio-label input:checked~.radiomark:after, .radio-label input:checked~.radiomark:after,
.checkbox-label input:checked ~ .checkmark:after .checkbox-label input:checked~.checkmark:after {
{
display: block; display: block;
} }
/* Style the checkmark/indicator */ /* Style the checkmark/indicator */
.checkbox-label .checkmark:after .checkbox-label .checkmark:after {
{
left: 7px; left: 7px;
top: 2px; top: 2px;
width: 6px; width: 6px;
height: 12px; height: 12px;
border: solid #e3ebf7; border: solid #aac7d4;
border-width: 0 2px 2px 0; border-width: 0 2px 2px 0;
-webkit-transform: rotate(45deg); -webkit-transform: rotate(45deg);
-ms-transform: rotate(45deg); -ms-transform: rotate(45deg);
transform: rotate(45deg); transform: rotate(45deg);
} }
/* Style the checkmark/indicator */ /* Style the checkmark/indicator */
.radio-label .radiomark:after .radio-label .radiomark:after {
{
top: 7px; top: 7px;
left: 7px; left: 7px;
width: 10px; width: 10px;