Skip to content

Commit 954f83d

Browse files
committed
stylize player hand cards
1 parent 6ea060b commit 954f83d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

kaggle_environments/envs/open_spiel_env/games/repeated_poker/visualizer/default/src/repeated_poker_renderer.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ export function renderer(options) {
100100
.player-container-1 { bottom: 0; flex-direction: column-reverse; }
101101
.player-card-area {
102102
color: white; text-align: center;
103-
display: flex; flex-direction: column; justify-content: center; align-items: center;
103+
display: flex; justify-content: left; align-items: left;
104104
pointer-events: auto;
105105
flex: 1;
106106
}
@@ -163,7 +163,7 @@ export function renderer(options) {
163163
.player-name.winner { color: #FFEB70; }
164164
.player-name.current-turn { color: #20BEFF; }
165165
.player-stack { font-size: 20px; font-weight: 600; color: #ffffff; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
166-
.player-cards-container { min-height: 70px; display: flex; justify-content: center; align-items:center; gap: 8px; }
166+
.player-cards-container { min-height: 80px; display: flex; justify-content: center; align-items:center;}
167167
.card {
168168
display: flex; flex-direction: column; justify-content: space-between; align-items: center;
169169
width: 44px; height: 70px; border: 2px solid #202124; border-radius: 8px;
@@ -173,6 +173,10 @@ export function renderer(options) {
173173
}
174174
.card-rank { font-family: 'Inter' sans-serif; font-size: 32px; line-height: 1; display: block; align-self: flex-start; }
175175
.card-suit { width: 36px; height: 36px; display: block; margin-bottom: 2px; }
176+
.player-cards-container .card { width: 38px; height: 60px; border-radius: 6px; }
177+
.player-cards-container .card:nth-child(2) { transform: rotate(20deg); margin-top: 14px; margin-left: -6px; }
178+
.player-cards-container .card-rank { font-size: 26px; }
179+
.player-cards-container .card-suit { width: 28px; height: 28px; }
176180
.card-suit svg { width: 100%; height: 100%; }
177181
.card-red .card-rank { color: #B3261E; }
178182
.card-red .card-suit svg { fill: #B3261E; }

0 commit comments

Comments
 (0)