css fix
This commit is contained in:
parent
0718fdd01f
commit
94d6a54154
2 changed files with 179 additions and 139 deletions
265
static/style.css
265
static/style.css
|
|
@ -59,22 +59,40 @@ body {
|
|||
flex-direction: column;
|
||||
gap: 15px;
|
||||
margin: 30px 0;
|
||||
|
||||
& input {
|
||||
padding: 15px;
|
||||
border: 2px solid #e1e8ed;
|
||||
border-radius: 8px;
|
||||
font-size: 16px;
|
||||
transition: border-color 0.3s;
|
||||
|
||||
&:focus {
|
||||
outline: none;
|
||||
border-color: #667eea;
|
||||
}
|
||||
}
|
||||
|
||||
& button {
|
||||
background: linear-gradient(45deg, #667eea, #764ba2);
|
||||
color: white;
|
||||
padding: 15px 20px;
|
||||
border: none;
|
||||
border-radius: 8px;
|
||||
font-size: 16px;
|
||||
cursor: pointer;
|
||||
transition: transform 0.2s;
|
||||
text-decoration: none;
|
||||
display: inline-block;
|
||||
text-align: center;
|
||||
|
||||
&:hover {
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.username-form input {
|
||||
padding: 15px;
|
||||
border: 2px solid #e1e8ed;
|
||||
border-radius: 8px;
|
||||
font-size: 16px;
|
||||
transition: border-color 0.3s;
|
||||
}
|
||||
|
||||
.username-form input:focus {
|
||||
outline: none;
|
||||
border-color: #667eea;
|
||||
}
|
||||
|
||||
.username-form button, .btn {
|
||||
.btn {
|
||||
background: linear-gradient(45deg, #667eea, #764ba2);
|
||||
color: white;
|
||||
padding: 15px 20px;
|
||||
|
|
@ -86,22 +104,22 @@ body {
|
|||
text-decoration: none;
|
||||
display: inline-block;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.username-form button:hover, .btn:hover {
|
||||
transform: translateY(-2px);
|
||||
&:hover {
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
}
|
||||
|
||||
.example {
|
||||
color: #666;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.example code {
|
||||
background: #f8f9fa;
|
||||
padding: 2px 6px;
|
||||
border-radius: 4px;
|
||||
font-family: monospace;
|
||||
& code {
|
||||
background: #f8f9fa;
|
||||
padding: 2px 6px;
|
||||
border-radius: 4px;
|
||||
font-family: monospace;
|
||||
}
|
||||
}
|
||||
|
||||
/* Dashboard header */
|
||||
|
|
@ -116,11 +134,11 @@ body {
|
|||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
gap: 15px;
|
||||
}
|
||||
|
||||
.dashboard-header h1 {
|
||||
color: #2c3e50;
|
||||
font-size: 1.8rem;
|
||||
& h1 {
|
||||
color: #2c3e50;
|
||||
font-size: 1.8rem;
|
||||
}
|
||||
}
|
||||
|
||||
.week-nav {
|
||||
|
|
@ -136,10 +154,10 @@ body {
|
|||
border-radius: 6px;
|
||||
text-decoration: none;
|
||||
transition: background 0.2s;
|
||||
}
|
||||
|
||||
.week-btn:hover {
|
||||
background: #e9ecef;
|
||||
&:hover {
|
||||
background: #e9ecef;
|
||||
}
|
||||
}
|
||||
|
||||
.current-week {
|
||||
|
|
@ -163,10 +181,10 @@ body {
|
|||
align-items: center;
|
||||
padding: 8px 0;
|
||||
border-bottom: 1px solid #f1f3f4;
|
||||
}
|
||||
|
||||
.score-row:last-child {
|
||||
border-bottom: none;
|
||||
&:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
}
|
||||
|
||||
.league-info {
|
||||
|
|
@ -174,6 +192,11 @@ body {
|
|||
align-items: center;
|
||||
gap: 8px;
|
||||
min-width: 140px;
|
||||
|
||||
& .league-dot {
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
.league-name {
|
||||
|
|
@ -191,17 +214,6 @@ body {
|
|||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
/* Different sizes for different contexts */
|
||||
.league-info .league-dot {
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
}
|
||||
|
||||
.player-pill .league-dot {
|
||||
width: 6px;
|
||||
height: 6px;
|
||||
}
|
||||
|
||||
.score-compact {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
|
@ -235,13 +247,13 @@ body {
|
|||
/* Schedule section - main focus */
|
||||
.schedule-section {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.schedule-section h2 {
|
||||
color: white;
|
||||
margin-bottom: 25px;
|
||||
font-size: 1.8rem;
|
||||
text-align: center;
|
||||
& h2 {
|
||||
color: white;
|
||||
margin-bottom: 25px;
|
||||
font-size: 1.8rem;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
.calendar-rows {
|
||||
|
|
@ -262,12 +274,12 @@ body {
|
|||
background: linear-gradient(45deg, #667eea, #764ba2);
|
||||
color: white;
|
||||
padding: 15px 20px;
|
||||
}
|
||||
|
||||
.day-header h3 {
|
||||
margin: 0;
|
||||
font-size: 1.2rem;
|
||||
font-weight: 600;
|
||||
& h3 {
|
||||
margin: 0;
|
||||
font-size: 1.2rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
}
|
||||
|
||||
.day-games {
|
||||
|
|
@ -284,11 +296,11 @@ body {
|
|||
padding: 15px;
|
||||
border: 1px solid #e9ecef;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.game-card:hover {
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
||||
&:hover {
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
}
|
||||
|
||||
.game-info {
|
||||
|
|
@ -321,16 +333,30 @@ body {
|
|||
font-size: 12px;
|
||||
}
|
||||
|
||||
/* Player pills in calendar */
|
||||
/* Game players section with league groups */
|
||||
.game-players {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 6px;
|
||||
justify-content: center;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
margin-top: 12px;
|
||||
min-height: 24px;
|
||||
}
|
||||
|
||||
.league-player-group {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 4px;
|
||||
padding: 6px;
|
||||
background: rgba(255, 255, 255, 0.6);
|
||||
border-radius: 8px;
|
||||
min-height: 28px;
|
||||
|
||||
& .player-pill {
|
||||
padding: 3px 6px;
|
||||
font-size: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
/* Player pills */
|
||||
.player-pill {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
|
@ -342,45 +368,50 @@ body {
|
|||
background: white;
|
||||
font-weight: 500;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.player-pill:hover {
|
||||
transform: scale(1.05);
|
||||
}
|
||||
&:hover {
|
||||
transform: scale(1.05);
|
||||
}
|
||||
|
||||
.player-pill .pos {
|
||||
font-weight: bold;
|
||||
font-size: 9px;
|
||||
opacity: 0.8;
|
||||
}
|
||||
& .pos {
|
||||
font-weight: bold;
|
||||
font-size: 9px;
|
||||
opacity: 0.8;
|
||||
}
|
||||
|
||||
.player-pill .name {
|
||||
font-weight: 600;
|
||||
}
|
||||
& .name {
|
||||
font-weight: normal;
|
||||
color: black;
|
||||
}
|
||||
|
||||
/* Position colors for pills */
|
||||
.player-pill.qb {
|
||||
border-color: rgb(252, 43, 109);
|
||||
background: rgba(252, 43, 109, 0.1);
|
||||
color: rgb(252, 43, 109);
|
||||
}
|
||||
& .league-dot {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.player-pill.rb {
|
||||
border-color: rgb(0, 206, 184);
|
||||
background: rgba(0, 206, 184, 0.1);
|
||||
color: rgb(0, 206, 184);
|
||||
}
|
||||
/* Position colors */
|
||||
&.qb {
|
||||
border-color: rgb(252, 43, 109);
|
||||
background: rgba(252, 43, 109, 0.1);
|
||||
color: rgb(252, 43, 109);
|
||||
}
|
||||
|
||||
.player-pill.wr {
|
||||
border-color: rgb(0, 186, 255);
|
||||
background: rgba(0, 186, 255, 0.1);
|
||||
color: rgb(0, 186, 255);
|
||||
}
|
||||
&.rb {
|
||||
border-color: rgb(0, 206, 184);
|
||||
background: rgba(0, 206, 184, 0.1);
|
||||
color: rgb(0, 206, 184);
|
||||
}
|
||||
|
||||
.player-pill.te {
|
||||
border-color: rgb(255, 174, 88);
|
||||
background: rgba(255, 174, 88, 0.1);
|
||||
color: rgb(255, 174, 88);
|
||||
&.wr {
|
||||
border-color: rgb(0, 186, 255);
|
||||
background: rgba(0, 186, 255, 0.1);
|
||||
color: rgb(0, 186, 255);
|
||||
}
|
||||
|
||||
&.te {
|
||||
border-color: rgb(255, 174, 88);
|
||||
background: rgba(255, 174, 88, 0.1);
|
||||
color: rgb(255, 174, 88);
|
||||
}
|
||||
}
|
||||
|
||||
.no-games-week {
|
||||
|
|
@ -419,17 +450,17 @@ body {
|
|||
max-width: 500px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
.error-container h1 {
|
||||
color: #e74c3c;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
& h1 {
|
||||
color: #e74c3c;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.error-container p {
|
||||
color: #666;
|
||||
margin-bottom: 30px;
|
||||
line-height: 1.6;
|
||||
& p {
|
||||
color: #666;
|
||||
margin-bottom: 30px;
|
||||
line-height: 1.6;
|
||||
}
|
||||
}
|
||||
|
||||
/* Mobile responsive styles */
|
||||
|
|
@ -471,14 +502,16 @@ body {
|
|||
|
||||
.day-header {
|
||||
padding: 12px 15px;
|
||||
|
||||
& h3 {
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
}
|
||||
|
||||
.day-header h3 {
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
|
||||
.schedule-section h2 {
|
||||
font-size: 1.5rem;
|
||||
.schedule-section {
|
||||
& h2 {
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
.welcome-container {
|
||||
|
|
@ -494,12 +527,12 @@ body {
|
|||
@media (max-width: 480px) {
|
||||
.username-form {
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.username-form input,
|
||||
.username-form button {
|
||||
padding: 12px;
|
||||
font-size: 14px;
|
||||
& input,
|
||||
& button {
|
||||
padding: 12px;
|
||||
font-size: 14px;
|
||||
}
|
||||
}
|
||||
|
||||
.week-nav {
|
||||
|
|
|
|||
|
|
@ -70,19 +70,26 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Show user's players in this game -->
|
||||
<!-- Show user's players in this game, grouped by league -->
|
||||
<div class="game-players">
|
||||
{% for league_info in league_data %}
|
||||
{% set players_in_game = [] %}
|
||||
{% for player in league_info.all_players %}
|
||||
{% if player.team in game.teams %}
|
||||
{% set _ = players_in_game.append(player) %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
{% if players_in_game %}
|
||||
<div class="league-player-group" style="border-left: 3px solid {{ league_info.league_color }};">
|
||||
{% for player in players_in_game %}
|
||||
<div class="player-pill {{ player.fantasy_positions[0]|lower if player.fantasy_positions else 'flex' }}">
|
||||
<!-- League color dot -->
|
||||
<span class="league-dot" style="background-color: {{ league_info.league_color }};"></span>
|
||||
<span class="pos">{{ player.fantasy_positions[0] if player.fantasy_positions else 'FLEX' }}</span>
|
||||
<span class="name">{{ player.last_name }}</span>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in a new issue