20bbdbbfcf
- Extract CSS into public/css/{shared,players,courses}.css
- Extract JS into public/js/{chart,tooltips,progress,players,courses}.js
- Consolidate 5 duplicated tooltip blocks into setupTooltip() helper
- Add EJS view engine with layout partial and nav partial
- Convert HTML pages to EJS templates (index.ejs, courses.ejs)
- Add /courses route with redirect from /courses.html
- Remove old monolithic HTML files (1478 + 612 lines)
164 lines
2.5 KiB
CSS
164 lines
2.5 KiB
CSS
/* Shared styles for PDGA Ratings app */
|
|
|
|
body {
|
|
font-family: Arial, sans-serif;
|
|
margin: 0;
|
|
padding: 20px;
|
|
background-color: #f5f5f5;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
body {
|
|
padding: 10px;
|
|
}
|
|
}
|
|
|
|
.container {
|
|
max-width: 800px;
|
|
margin: 0 auto;
|
|
background: white;
|
|
padding: 30px;
|
|
border-radius: 8px;
|
|
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
|
|
overflow-x: auto;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.container {
|
|
padding: 15px;
|
|
border-radius: 0;
|
|
box-shadow: none;
|
|
}
|
|
}
|
|
|
|
h1 {
|
|
color: #333;
|
|
text-align: center;
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
h1 {
|
|
font-size: 24px;
|
|
margin-bottom: 20px;
|
|
}
|
|
}
|
|
|
|
.loading {
|
|
text-align: center;
|
|
padding: 20px;
|
|
font-size: 18px;
|
|
color: #666;
|
|
}
|
|
|
|
table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
margin-top: 20px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
th, td {
|
|
padding: 12px;
|
|
text-align: left;
|
|
border-bottom: 1px solid #ddd;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
table {
|
|
font-size: 12px;
|
|
}
|
|
th, td {
|
|
padding: 8px 4px;
|
|
}
|
|
.mobile-hide {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
th {
|
|
background-color: #f8f9fa;
|
|
font-weight: bold;
|
|
color: #495057;
|
|
}
|
|
|
|
tr:hover {
|
|
background-color: #f5f5f5;
|
|
}
|
|
|
|
.expandable-row {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.expandable-row:hover {
|
|
background-color: #e3f2fd;
|
|
}
|
|
|
|
.expanded-content {
|
|
display: none;
|
|
background-color: #f8f9fa;
|
|
border-top: 2px solid #007bff;
|
|
}
|
|
|
|
.expanded-content td {
|
|
padding: 20px;
|
|
}
|
|
|
|
a {
|
|
color: #007bff;
|
|
text-decoration: none;
|
|
}
|
|
|
|
a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.btn {
|
|
padding: 8px 16px;
|
|
background-color: #007bff;
|
|
color: white;
|
|
border: none;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.btn:hover {
|
|
background-color: #0056b3;
|
|
}
|
|
|
|
.btn:disabled {
|
|
background-color: #6c757d;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.refresh-icon {
|
|
cursor: pointer;
|
|
opacity: 0.6;
|
|
margin-left: 8px;
|
|
font-size: 13px;
|
|
color: #6c757d;
|
|
transition: all 0.2s ease;
|
|
padding: 2px;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.refresh-icon:hover {
|
|
opacity: 1;
|
|
color: #007bff;
|
|
background-color: rgba(0, 123, 255, 0.1);
|
|
transform: scale(1.1);
|
|
}
|
|
|
|
.refresh-icon.spinning {
|
|
animation: spin 1s linear infinite;
|
|
color: #007bff;
|
|
opacity: 1;
|
|
background-color: rgba(0, 123, 255, 0.1);
|
|
}
|
|
|
|
@keyframes spin {
|
|
0% { transform: rotate(0deg); }
|
|
100% { transform: rotate(360deg); }
|
|
}
|