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