Skip to content

Commit

Permalink
[BUGFIX] solved problems with advanced mode styles
Browse files Browse the repository at this point in the history
  • Loading branch information
laaledesiempre authored and Dpeta committed Mar 19, 2024
1 parent 7d340a3 commit 15207bf
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 15 deletions.
28 changes: 16 additions & 12 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@
-->
<!-- When hosting on an actual web server the CSP should be more restrictive. (hash for script-src) -->

<link rel="preload" href="style.css" integrity="sha256-EJrOl5fuvfDUZCqugkOMK8dJtnJhW6Pn0pGvJlww244=" as="style">
<link rel="preload" href="style.css" integrity="sha256-qehLlPun8FG9cknWHqfv24JjPoIYNrzMnI8Tx0M1nEs=" as="style">
<link rel="preload" href="dist/pesterchum.js" integrity="sha256-zhrraJFTviB+739upDWmim2y14E4/sb1gQPblIE5CdA=" as="script"> <!-- integrity hash with babel :3 -->

<link rel="icon" href="favicon.ico">
<link rel="canonical" href="https://pesterchum.online">
<link rel="stylesheet" integrity="sha256-EJrOl5fuvfDUZCqugkOMK8dJtnJhW6Pn0pGvJlww244=" href="style.css">
<link rel="stylesheet" integrity="sha256-qehLlPun8FG9cknWHqfv24JjPoIYNrzMnI8Tx0M1nEs=" href="style.css">
<script src="dist/pesterchum.js" integrity="sha256-zhrraJFTviB+739upDWmim2y14E4/sb1gQPblIE5CdA=" defer></script>

<title>Pesterchum Online</title>
Expand Down Expand Up @@ -61,7 +61,7 @@ <h1 class='no-centertxt no-pixelated'>
<div id="notice"><!--<a href="javascript.html" rel="jslicense">JavaScript license information</a> --><img src="img/agplv3-155x51.png"></div>
</div>
<div class='centered border-radius-effect'>
<div id='entry'>
<div id='entry' class="entry">
<form id='connectForm'>
<label class="pixelated" for="handle">MYCHUMHANDLE:</label>
<input class="pixelated dark-input" type="text" id="handle" name="handle" requiredminlength="2" maxlength="32" size="10"><br>
Expand All @@ -75,15 +75,19 @@ <h1 class='no-centertxt no-pixelated'>
<br>

<form id="advancedForm">
<div class='centeredGoAdvanced'>
<div id="advancedText">Advanced mode <input type="checkbox" id="advancedCheck"></div>
<div id="userInputArea">
<label class="pixelated">USERNAME (SASL)</label>
<input id="username">
<label class="pixelated">PASSWORD (SASL)</label>
<input id="password">
</div>
</div>
<div class='centeredGoAdvanced'>
<div id="advancedText">
<label class="pixelated" for="advancedCheck">Advanced mode</label>
<input type="checkbox" id="advancedCheck" name="advancedCheck">

</div>
<div id="userInputArea" class="entry">
<label class="pixelated">USERNAME (SASL)</label>
<input class="dark-input" id="username">
<label class="pixelated">PASSWORD (SASL)</label>
<input class="dark-input" id="password">
</div>
</div>
</form>

</div>
Expand Down
10 changes: 7 additions & 3 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ main {
.centertxt {
text-align: center;
}
#entry {
.entry {
width: min(30rem,100%);
margin: auto;
}
Expand All @@ -240,6 +240,8 @@ main {
font-size: 1.5rem;
}
.dark-input{
font-family: Strife;
font-size: 2rem;
background: var(--black);
border-color: var(--button-and-border-ascent);
border-style: solid;
Expand All @@ -248,8 +250,10 @@ main {
transform: translateY(-10%);
padding:0.2rem 1rem;
}


input[type=checkbox]{
background-color: var(--black);
transform: scale(1.5) translateY(-2px);
}

.centeredGoAdvanced {
display:flex;
Expand Down

0 comments on commit 15207bf

Please sign in to comment.