Partial css refresh
This commit is contained in:
@@ -9,38 +9,38 @@
|
||||
html {
|
||||
height: 100%;
|
||||
margin: 0;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
body {
|
||||
background-color: var(--light-grey);
|
||||
min-height: 100vh;
|
||||
width: 100%;
|
||||
margin-top: 0px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: flex-start;
|
||||
margin: 0px;
|
||||
table-layout: auto;
|
||||
}
|
||||
|
||||
.header {
|
||||
background-color: var(--dark-grey);
|
||||
grid-area: header;
|
||||
margin-left: 20px;
|
||||
margin-right: 20px;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
height: 100px;
|
||||
height: 60px;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.logo {
|
||||
color: var(--light-blue);
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.header-left {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: flex-start;
|
||||
gap: 20px;
|
||||
padding-left: 20px;
|
||||
}
|
||||
|
||||
.header-right {
|
||||
@@ -49,6 +49,7 @@ body {
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
gap: 10px;
|
||||
padding-right: 20px;
|
||||
}
|
||||
|
||||
.nw {
|
||||
@@ -108,18 +109,25 @@ body {
|
||||
|
||||
.box {
|
||||
border: 2px solid #AAAAAA;
|
||||
background-color: white;
|
||||
border-radius: 16px;
|
||||
margin: 4px;
|
||||
padding: 12px;
|
||||
padding-top: 6px;
|
||||
display: flex;
|
||||
box-shadow: 5px 5px 5px #00000055;
|
||||
display: block;
|
||||
flex-direction: column;
|
||||
justify-content: flex-start;
|
||||
text-justify: center;
|
||||
text-align: left;
|
||||
gap: 5px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.box p {
|
||||
padding-left: 20px;
|
||||
font-size: 24px;
|
||||
}
|
||||
|
||||
.box table {
|
||||
width: 100%;
|
||||
}
|
||||
@@ -128,7 +136,7 @@ body {
|
||||
display: block;
|
||||
overflow-y: auto;
|
||||
overflow-x: hidden;
|
||||
max-height: calc((100vh - 100px) / 2 - 100px);
|
||||
max-height: calc((100vh - 60px) / 2 - 100px);
|
||||
}
|
||||
|
||||
.box thead,
|
||||
@@ -188,14 +196,22 @@ body {
|
||||
min-width: 0px;
|
||||
}
|
||||
|
||||
hr {
|
||||
min-width: 125%;
|
||||
margin: auto 0;
|
||||
}
|
||||
|
||||
form {
|
||||
background-color: white;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
border: 2px solid #AAAAAA;
|
||||
border-radius: 10px;
|
||||
border-radius: 20px;
|
||||
padding: 10px;
|
||||
margin: 20px;
|
||||
padding-left: 50px;
|
||||
padding-right: 50px;
|
||||
gap: 5px;
|
||||
}
|
||||
|
||||
@@ -242,19 +258,39 @@ form {
|
||||
|
||||
a {
|
||||
background-color: transparent;
|
||||
border: 2px solid #606060;
|
||||
max-height: 20px;
|
||||
border-radius: 5px;
|
||||
color: white;
|
||||
color: var(--royal-blue);
|
||||
padding-left: 5px;
|
||||
padding-right: 5px;
|
||||
text-align: center;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font: 16px tahoma, sans-serif;
|
||||
transition: transform 0.1s ease-in, border 0.05s ease-in;
|
||||
}
|
||||
|
||||
a.button {
|
||||
background-color: var(--light-blue);
|
||||
border: 2px solid var(--royal-blue);
|
||||
border-radius: 5px;
|
||||
padding: 5px;
|
||||
gap: 5px;
|
||||
transition: transform 0.1s ease-in, border 0.1s ease-in;
|
||||
color: #0c0c0c;
|
||||
text-decoration: none;
|
||||
text-align: center;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: #eeeeee;
|
||||
font: 16px tahoma, sans-serif;
|
||||
transition: transform 0.1s ease-in, border 0.05s ease-in;
|
||||
}
|
||||
|
||||
a.button:hover {
|
||||
transform: translate(0px, -3px);
|
||||
}
|
||||
|
||||
a.button:focus {
|
||||
transform: translate(0px, 3px);
|
||||
}
|
||||
|
||||
button {
|
||||
@@ -264,44 +300,42 @@ button {
|
||||
padding: 5px;
|
||||
gap: 5px;
|
||||
transition: transform 0.1s ease-in, border 0.1s ease-in;
|
||||
color: white;
|
||||
color: var(#0c0c0c);
|
||||
text-decoration: none;
|
||||
text-align: center;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: #eeeeee;
|
||||
font: 16px tahoma, sans-serif;
|
||||
}
|
||||
|
||||
input {
|
||||
background-color: black;
|
||||
border: 2px solid #606060;
|
||||
background-color: var(--light-grey);
|
||||
border: 2px solid var(--dark-grey);
|
||||
margin: 5px;
|
||||
border-radius: 5px;
|
||||
padding: 2px;
|
||||
padding-left: 5px;
|
||||
gap: 5px;
|
||||
color: white;
|
||||
color: var(--dark-grey);
|
||||
text-decoration: none;
|
||||
text-align: left;
|
||||
align-items: flex-start;
|
||||
justify-content: flex-start;
|
||||
color: #eeeeee;
|
||||
font: 16px tahoma, sans-serif;
|
||||
transition: transform 0.05s ease-out, border 0.1s ease-in;
|
||||
}
|
||||
|
||||
input:hover {
|
||||
border: 2px solid #cccccc;
|
||||
border: 2px solid black;
|
||||
}
|
||||
|
||||
input:focus {
|
||||
border: 2px solid var(--royal-blue);
|
||||
outline: none;
|
||||
}
|
||||
|
||||
input:focus-visible {
|
||||
border: 2px solid var(--royal-blue);
|
||||
outline: none;
|
||||
border: 2px solid white;
|
||||
}
|
||||
|
||||
select {
|
||||
@@ -338,20 +372,17 @@ select:focus-visible {
|
||||
|
||||
button:hover {
|
||||
transform: translate(0px, -3px);
|
||||
border: 2px solid white;
|
||||
}
|
||||
|
||||
button:focus {
|
||||
transform: translate(0px, 3px);
|
||||
border: 2px solid white;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
border: 2px solid #CCCCCC;
|
||||
transform: translate(0px, -1px);
|
||||
}
|
||||
|
||||
a:focus {
|
||||
border: 2px solid #00b3ff;
|
||||
transform: translate(0px, 3px);
|
||||
}
|
||||
|
||||
@@ -389,31 +420,31 @@ td {
|
||||
font: 14px tahoma, sans-serif;
|
||||
border: 1px solid #CCCCCC;
|
||||
padding: 6px 12px;
|
||||
color: #CCCCCC;
|
||||
color: var(--dark-grey);
|
||||
}
|
||||
|
||||
tr:nth-child(even) {
|
||||
background-color: #2a2a2a;
|
||||
background-color: #ffffff;
|
||||
}
|
||||
|
||||
tr:nth-child(odd) {
|
||||
background-color: #161616;
|
||||
background-color: #f8f8f8;
|
||||
}
|
||||
|
||||
h2 {
|
||||
color: #ffffff;
|
||||
color: var(--dark-grey);
|
||||
font: 32px "Verdana";
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
h3 {
|
||||
color: #CCCCCC;
|
||||
color: var(--dark-grey);
|
||||
font: 24px "Verdana";
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
p {
|
||||
color: #eeeeee;
|
||||
color: var(--dark-grey);
|
||||
font: 16px tahoma, sans-serif;
|
||||
min-width: 50px;
|
||||
margin-top: 5px;
|
||||
|
||||
@@ -8,19 +8,19 @@
|
||||
<div class="grid-container">
|
||||
<div class="header">
|
||||
<div class="header-left">
|
||||
<h2>Paydirt</h2>
|
||||
<a href="/search">Search Players</a>
|
||||
<h2 class="logo">PayDirt</h2>
|
||||
<a class="button" href="/search">Search Players</a>
|
||||
<br>
|
||||
</div>
|
||||
<div class="header-right">
|
||||
<a class="user-FirstName" href="/info">Welcome, %</a>
|
||||
<a class="user-FirstName button" href="/info">Welcome, %</a>
|
||||
<button id="logoutButton">Log Out</button>
|
||||
<button id="deleteButton" style="display: none;">Delete Account</button>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="box nw">
|
||||
<p>Favorites</p>
|
||||
<p><b>Watched Players</b></p>
|
||||
<table class="body" id="favorites">
|
||||
<thead>
|
||||
</thead>
|
||||
@@ -29,7 +29,7 @@
|
||||
</table>
|
||||
</div>
|
||||
<div class="box ne">
|
||||
<p>Highest contracts</p>
|
||||
<p><b>Highest Contracts</b></p>
|
||||
<table class="body" id="highest">
|
||||
<thead>
|
||||
</thead>
|
||||
@@ -38,7 +38,10 @@
|
||||
</table>
|
||||
</div>
|
||||
<div class="box sw">
|
||||
<p>Highest paydirt score</p>
|
||||
<div class="cursor-question">
|
||||
<p><b>Highest PayDirt Score</b></p>
|
||||
<span class="tooltip-text">A player's <b>PayDirt score</b> is calculated by weighting their offense score by their annual salary. It is used to evaluate the worth of their contract.</span>
|
||||
</div>
|
||||
<table class="body" id="paydirt">
|
||||
<thead>
|
||||
</thead>
|
||||
@@ -47,7 +50,10 @@
|
||||
</table>
|
||||
</div>
|
||||
<div class="box se">
|
||||
<p>Highest offense score</p>
|
||||
<div class="cursor-question">
|
||||
<p><b>Highest Offense Score</b></p>
|
||||
<span class="tooltip-text">A player's <b>offense score</b> is calculated by combining several of their offense stats into a weighted score. It is indicative of their overall performance.</span>
|
||||
</div>
|
||||
<table class="body" id="offense">
|
||||
<thead>
|
||||
</thead>
|
||||
|
||||
@@ -6,11 +6,21 @@
|
||||
</head>
|
||||
<body>
|
||||
<div class="center">
|
||||
<h2>Login</h2>
|
||||
<form id="loginForm">
|
||||
<h2>Log In</h2>
|
||||
<hr>
|
||||
<div class="input-label">
|
||||
<p>Username</p>
|
||||
<input type="text" id="logUser" placeholder="Username" required>
|
||||
</div>
|
||||
<div class="input-label">
|
||||
<p>Password</p>
|
||||
<input type="password" id="logPass" placeholder="Password" required>
|
||||
</div>
|
||||
<button type="submit">Login</button>
|
||||
<div class="register">
|
||||
<a href="/register" class="link">Sign Up</a>
|
||||
</div>
|
||||
</form>
|
||||
<div class="error">
|
||||
<p>Error Message</p>
|
||||
@@ -18,10 +28,7 @@
|
||||
<div class="success">
|
||||
<p>Login successful</p>
|
||||
</div>
|
||||
<div class="register">
|
||||
<p>Don't have an account?</p>
|
||||
<a href="/register" class="link">Register</a>
|
||||
</div>
|
||||
|
||||
|
||||
<script type="module" src="login.js"></script>
|
||||
</div>
|
||||
|
||||
@@ -6,16 +6,29 @@
|
||||
</head>
|
||||
<body>
|
||||
<div class="center">
|
||||
<h2>Register</h2>
|
||||
<form id="registerForm">
|
||||
<input type="text" id="regUser" placeholder="Username" required>
|
||||
<input type="password" id="regPass" placeholder="Password" required>
|
||||
<input type="password" id="regVerify" placeholder="Verify password" required>
|
||||
<h2>Register</h2>
|
||||
<hr>
|
||||
<div class="input-label">
|
||||
<p>Username</p>
|
||||
<input type="text" id="regUser" placeholder="" required>
|
||||
</div>
|
||||
<div class="input-label">
|
||||
<p>Password</p>
|
||||
<input type="password" id="regPass" placeholder="" required>
|
||||
</div>
|
||||
<div class="input-label">
|
||||
<p>Verify Password</p>
|
||||
<input type="password" id="regVerify" placeholder="" required>
|
||||
</div>
|
||||
<select style="display: none;" id="regRole" name="Role" required>
|
||||
<option value="user">User</option>
|
||||
<option value="player">Player</option>
|
||||
</select>
|
||||
<button type="submit">Register</button>
|
||||
<div class="register">
|
||||
<a href="/login">Log In</a>
|
||||
</div>
|
||||
</form>
|
||||
<div class="error">
|
||||
<p>Error Message</p>
|
||||
@@ -23,10 +36,6 @@
|
||||
<div class="success">
|
||||
<p>User registered</p>
|
||||
</div>
|
||||
<div class="register">
|
||||
<p>Already have an account?</p>
|
||||
<a href="/login">Login</a>
|
||||
</div>
|
||||
|
||||
<script type="module" src="register.js"></script>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user