6d796c95ff
- Implemented NetID OAuth provider in app/auth/oauth.py - Added styles for NetID login button in app/static/css/styles.css - Updated login.html to include NetID login option with custom button - Modified docker-compose.yml to include NetID client credentials - Enhanced social login setup documentation to include NetID instructions - Created demo environment configuration file (.env.demo) for easier setup - Updated .env.template to include NetID configuration options - Added comprehensive README.md with project features and setup instructions
479 lines
9.4 KiB
CSS
479 lines
9.4 KiB
CSS
/*
|
|
* LeagueLedger Main Stylesheet
|
|
* Version: 1.0.0
|
|
* Date: April 15, 2025
|
|
*/
|
|
|
|
:root {
|
|
/* LeagueLedger brand color palette */
|
|
--irish-green: #006837;
|
|
--golden-ale: #FFB400;
|
|
--cream-white: #F5F0E1;
|
|
--black-stout: #1A1A1A;
|
|
--guinness-red: #B22222;
|
|
|
|
/* UI colors */
|
|
--success: #28a745;
|
|
--danger: #dc3545;
|
|
--warning: #ffc107;
|
|
--info: #17a2b8;
|
|
}
|
|
|
|
/* Base styles */
|
|
body {
|
|
font-family: 'Open Sans', 'Helvetica Neue', sans-serif;
|
|
line-height: 1.6;
|
|
color: var(--black-stout);
|
|
background-color: #f8f9fa;
|
|
}
|
|
|
|
h1, h2, h3, h4, h5, h6 {
|
|
font-family: 'Garamond', 'Georgia', serif;
|
|
color: var(--irish-green);
|
|
}
|
|
|
|
/* Custom button styles */
|
|
.btn-irish {
|
|
background-color: var(--irish-green);
|
|
color: white;
|
|
border: none;
|
|
padding: 0.5rem 1rem;
|
|
border-radius: 0.25rem;
|
|
transition: opacity 0.2s ease;
|
|
}
|
|
|
|
.btn-irish:hover {
|
|
opacity: 0.9;
|
|
}
|
|
|
|
.btn-ale {
|
|
background-color: var(--golden-ale);
|
|
color: var(--black-stout);
|
|
border: none;
|
|
padding: 0.5rem 1rem;
|
|
border-radius: 0.25rem;
|
|
transition: opacity 0.2s ease;
|
|
}
|
|
|
|
.btn-ale:hover {
|
|
opacity: 0.9;
|
|
}
|
|
|
|
/* QR Code styles */
|
|
.qr-container {
|
|
padding: 1rem;
|
|
background-color: white;
|
|
border-radius: 0.5rem;
|
|
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
|
|
display: inline-block;
|
|
}
|
|
|
|
.qr-title {
|
|
margin-top: 0.5rem;
|
|
font-weight: bold;
|
|
color: var(--irish-green);
|
|
text-align: center;
|
|
}
|
|
|
|
.qr-points {
|
|
font-size: 0.9rem;
|
|
color: var(--golden-ale);
|
|
font-weight: bold;
|
|
text-align: center;
|
|
}
|
|
|
|
/* Leaderboard styles */
|
|
.leaderboard-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
.leaderboard-table th {
|
|
background-color: var(--irish-green);
|
|
color: white;
|
|
padding: 0.75rem;
|
|
text-align: left;
|
|
}
|
|
|
|
.leaderboard-table tr:nth-child(even) {
|
|
background-color: var(--cream-white);
|
|
}
|
|
|
|
.leaderboard-table td {
|
|
padding: 0.75rem;
|
|
border-bottom: 1px solid #e2e8f0;
|
|
}
|
|
|
|
/* Rank badges */
|
|
.rank-badge {
|
|
display: inline-block;
|
|
width: 2rem;
|
|
height: 2rem;
|
|
line-height: 2rem;
|
|
text-align: center;
|
|
border-radius: 50%;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.rank-1 {
|
|
background-color: gold;
|
|
color: var(--black-stout);
|
|
}
|
|
|
|
.rank-2 {
|
|
background-color: silver;
|
|
color: var(--black-stout);
|
|
}
|
|
|
|
.rank-3 {
|
|
background-color: #cd7f32; /* bronze */
|
|
color: white;
|
|
}
|
|
|
|
/* Responsive adjustments */
|
|
@media (max-width: 768px) {
|
|
.leaderboard-table thead {
|
|
display: none;
|
|
}
|
|
|
|
.leaderboard-table tr {
|
|
display: block;
|
|
margin-bottom: 1rem;
|
|
border: 1px solid #e2e8f0;
|
|
border-radius: 0.25rem;
|
|
}
|
|
|
|
.leaderboard-table td {
|
|
display: block;
|
|
text-align: right;
|
|
padding: 0.5rem;
|
|
}
|
|
|
|
.leaderboard-table td::before {
|
|
content: attr(data-label);
|
|
float: left;
|
|
font-weight: bold;
|
|
color: var(--irish-green);
|
|
}
|
|
}
|
|
|
|
/* Google Sign-In Button Styles */
|
|
.gsi-material-button {
|
|
-moz-user-select: none;
|
|
-webkit-user-select: none;
|
|
-ms-user-select: none;
|
|
-webkit-appearance: none;
|
|
background-color: WHITE;
|
|
background-image: none;
|
|
border: 1px solid #747775;
|
|
-webkit-border-radius: 4px;
|
|
border-radius: 4px;
|
|
-webkit-box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
color: #1f1f1f;
|
|
cursor: pointer;
|
|
font-family: 'Roboto', arial, sans-serif;
|
|
font-size: 14px;
|
|
height: 40px;
|
|
letter-spacing: 0.25px;
|
|
outline: none;
|
|
overflow: hidden;
|
|
padding: 0 12px;
|
|
position: relative;
|
|
text-align: center;
|
|
-webkit-transition: background-color .218s, border-color .218s, box-shadow .218s;
|
|
transition: background-color .218s, border-color .218s, box-shadow .218s;
|
|
vertical-align: middle;
|
|
white-space: nowrap;
|
|
width: auto;
|
|
max-width: 400px;
|
|
min-width: min-content;
|
|
}
|
|
|
|
.gsi-material-button .gsi-material-button-icon {
|
|
height: 20px;
|
|
margin-right: 12px;
|
|
min-width: 20px;
|
|
width: 20px;
|
|
}
|
|
|
|
.gsi-material-button .gsi-material-button-content-wrapper {
|
|
-webkit-align-items: center;
|
|
align-items: center;
|
|
display: flex;
|
|
-webkit-flex-direction: row;
|
|
flex-direction: row;
|
|
-webkit-flex-wrap: nowrap;
|
|
flex-wrap: nowrap;
|
|
height: 100%;
|
|
justify-content: space-between;
|
|
position: relative;
|
|
width: 100%;
|
|
}
|
|
|
|
.gsi-material-button .gsi-material-button-contents {
|
|
-webkit-flex-grow: 1;
|
|
flex-grow: 1;
|
|
font-family: 'Roboto', arial, sans-serif;
|
|
font-weight: 500;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
vertical-align: top;
|
|
}
|
|
|
|
.gsi-material-button .gsi-material-button-state {
|
|
-webkit-transition: opacity .218s;
|
|
transition: opacity .218s;
|
|
bottom: 0;
|
|
left: 0;
|
|
opacity: 0;
|
|
position: absolute;
|
|
right: 0;
|
|
top: 0;
|
|
}
|
|
|
|
.gsi-material-button:disabled {
|
|
cursor: default;
|
|
background-color: #ffffff61;
|
|
border-color: #1f1f1f1f;
|
|
}
|
|
|
|
.gsi-material-button:disabled .gsi-material-button-contents {
|
|
opacity: 38%;
|
|
}
|
|
|
|
.gsi-material-button:disabled .gsi-material-button-icon {
|
|
opacity: 38%;
|
|
}
|
|
|
|
.gsi-material-button:not(:disabled):active .gsi-material-button-state,
|
|
.gsi-material-button:not(:disabled):focus .gsi-material-button-state {
|
|
background-color: #303030;
|
|
opacity: 12%;
|
|
}
|
|
|
|
.gsi-material-button:not(:disabled):hover {
|
|
-webkit-box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
|
|
box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
|
|
}
|
|
|
|
.gsi-material-button:not(:disabled):hover .gsi-material-button-state {
|
|
background-color: #303030;
|
|
opacity: 8%;
|
|
}
|
|
|
|
/* OAuth Buttons Container */
|
|
.oauth-buttons-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
width: 100%;
|
|
max-width: 280px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
/* LinkedIn Login Button */
|
|
.linkedin-login-button {
|
|
background-color: #0077B5;
|
|
border: none;
|
|
border-radius: 4px;
|
|
color: white;
|
|
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
height: 40px;
|
|
letter-spacing: normal;
|
|
padding: 0;
|
|
position: relative;
|
|
text-align: center;
|
|
transition: background-color .218s;
|
|
width: 100%;
|
|
max-width: 280px;
|
|
margin: 0 auto 8px;
|
|
overflow: hidden;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.linkedin-login-button:hover {
|
|
background-color: #006097;
|
|
}
|
|
|
|
.linkedin-login-button .linkedin-icon {
|
|
display: inline-block;
|
|
margin-right: 8px;
|
|
height: 18px;
|
|
width: 18px;
|
|
}
|
|
|
|
.linkedin-login-button .linkedin-icon svg {
|
|
height: 18px;
|
|
width: 18px;
|
|
fill: white;
|
|
}
|
|
|
|
.linkedin-login-button .button-text {
|
|
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* Facebook Login Button */
|
|
.fb-login-button {
|
|
background-color: #1877F2;
|
|
border: none;
|
|
border-radius: 4px;
|
|
color: white;
|
|
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
height: 40px;
|
|
letter-spacing: normal;
|
|
padding: 0;
|
|
position: relative;
|
|
text-align: center;
|
|
transition: background-color .218s;
|
|
width: 100%;
|
|
max-width: 280px;
|
|
margin: 0 auto 8px;
|
|
overflow: hidden;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.fb-login-button:hover {
|
|
background-color: #166FE5;
|
|
}
|
|
|
|
.fb-login-button .fb-icon {
|
|
display: inline-block;
|
|
margin-right: 8px;
|
|
height: 18px;
|
|
width: 18px;
|
|
background-color: white;
|
|
border-radius: 2px;
|
|
}
|
|
|
|
.fb-login-button .fb-icon svg {
|
|
height: 18px;
|
|
width: 18px;
|
|
fill: #1877F2;
|
|
}
|
|
|
|
.fb-login-button .button-text {
|
|
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* GitHub Login Button */
|
|
.github-login-button {
|
|
background-color: #24292e;
|
|
border: 1px solid rgba(27, 31, 35, 0.15);
|
|
border-radius: 6px;
|
|
color: white;
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
height: 40px;
|
|
padding: 0;
|
|
position: relative;
|
|
text-align: center;
|
|
transition: background-color 0.2s;
|
|
width: 100%;
|
|
max-width: 280px;
|
|
margin: 0 auto 8px;
|
|
overflow: hidden;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.github-login-button:hover {
|
|
background-color: #2c3136;
|
|
}
|
|
|
|
.github-login-button .github-icon {
|
|
display: inline-block;
|
|
margin-right: 8px;
|
|
height: 20px;
|
|
width: 20px;
|
|
}
|
|
|
|
.github-login-button .github-icon svg {
|
|
height: 20px;
|
|
width: 20px;
|
|
fill: white;
|
|
}
|
|
|
|
.github-login-button .button-text {
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* NetID Login Button */
|
|
.netid-login-button {
|
|
background-color: #76b82a;
|
|
border: none;
|
|
border-radius: 3px;
|
|
color: white;
|
|
font-family: 'IBM Plex Sans', Verdana, Arial, sans-serif;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
height: 40px;
|
|
padding: 0;
|
|
position: relative;
|
|
text-align: center;
|
|
transition: background-color 0.2s;
|
|
width: 100%;
|
|
max-width: 280px;
|
|
margin: 0 auto 8px;
|
|
overflow: hidden;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.netid-login-button:hover {
|
|
background-color: #5d9422;
|
|
}
|
|
|
|
.netid-login-button .netid-icon {
|
|
display: inline-block;
|
|
margin-right: 8px;
|
|
height: 20px;
|
|
width: 20px;
|
|
}
|
|
|
|
.netid-login-button .netid-icon svg {
|
|
height: 20px;
|
|
width: 20px;
|
|
fill: white;
|
|
}
|
|
|
|
.netid-login-button .button-text {
|
|
font-family: 'IBM Plex Sans', Verdana, Arial, sans-serif;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* Other OAuth provider button customizations */
|
|
.oauth-button {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 100%;
|
|
padding: 8px 16px;
|
|
border-radius: 4px;
|
|
font-weight: 500;
|
|
transition: all 0.2s ease;
|
|
margin-bottom: 8px;
|
|
text-decoration: none;
|
|
} |