Skip to content

Commit b9578c7

Browse files
committed
fix: solve custom CSS issues
1 parent 3a66b8d commit b9578c7

3 files changed

Lines changed: 17 additions & 14 deletions

File tree

app/assets/tailwind/application.css

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -83,20 +83,20 @@
8383
/* ============================================================
8484
RETRO DESIGN SYSTEM — portado do prostaff-analytics-hub/RetroPanel
8585
============================================================ */
86-
@layer components {
86+
/* ── Tokens de cor Retro — fora de qualquer layer para garantir disponibilidade global ── */
87+
:root {
88+
--retro-gold: #C89B3C;
89+
--retro-gold-dim: rgba(200,155,60,0.5);
90+
--retro-gold-faint: rgba(200,155,60,0.12);
91+
--retro-blue: #0C223F;
92+
--retro-blue-dark: #0A1929;
93+
--retro-bg: rgba(10,14,26,0.92);
94+
--retro-card: rgba(15,24,35,0.92);
95+
--retro-teal: #0596AA;
96+
--retro-font: Verdana, Geneva, Tahoma, sans-serif;
97+
}
8798

88-
/* ── Tokens de cor Retro ── */
89-
:root {
90-
--retro-gold: #C89B3C;
91-
--retro-gold-dim: rgba(200,155,60,0.5);
92-
--retro-gold-faint: rgba(200,155,60,0.12);
93-
--retro-blue: #0C223F;
94-
--retro-blue-dark: #0A1929;
95-
--retro-bg: rgba(10,14,26,0.92);
96-
--retro-card: rgba(15,24,35,0.92);
97-
--retro-teal: #0596AA;
98-
--retro-font: Verdana, Geneva, Tahoma, sans-serif;
99-
}
99+
@layer components {
100100

101101
/* ── Padrões de fundo Retro ── */
102102
.retro-scanline {

app/controllers/cup_controller.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ def draft
2727
set_meta_tags(title: "Picks & Bans — Kings Lendas Cup")
2828
@champion_stats = db_champions.sort_by { |c| -(c["Picks"].to_i + c["Bans"].to_i) }
2929
@teams = TEAMS_DATA.keys.first(6)
30+
@champ_teams = db_players
31+
.group_by { |p| p["Champion"] }
32+
.transform_values { |records| records.map { |r| r["Team"] }.uniq.join(",") }
3033
end
3134

3235
def champions

app/views/cup/draft.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
<% total_games = @champion_stats.map { |c| c["Games"].to_i }.max.to_f %>
7979
<% presence = total_games > 0 ? ((picks + bans).to_f / (total_games + 1) * 100).clamp(0, 100).round : 0 %>
8080
<% win_pct = picks > 0 ? (wins.to_f / picks * 100).round : 0 %>
81-
<tr class="retro-table-row" style="border-bottom:1px solid rgba(200,155,60,0.08)" data-champion-row="<%= champ['Champion'] %>">
81+
<tr class="retro-table-row" style="border-bottom:1px solid rgba(200,155,60,0.08)" data-champion-row="<%= champ['Champion'] %>" data-teams="<%= @champ_teams[champ['Champion']] || '' %>">
8282
<td style="padding:10px 12px 10px 0">
8383
<div style="display:flex;align-items:center;gap:10px">
8484
<%= champion_icon(champ["Champion"], size: 36) %>

0 commit comments

Comments
 (0)