Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into leader-mode
Browse files Browse the repository at this point in the history
# Conflicts:
#	src/components/Board.js
  • Loading branch information
cmavelis committed Mar 8, 2019
2 parents 3aa90c7 + 825c147 commit e6f8f9e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/Game.css
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ p {
border: 6px solid var(--card-border);
border-radius: 10px;
/*float: left;*/
font-size: 2vw;
font-size: 2.2vw;
font-weight: bold;
line-height: 34px;
/*height: 10%;*/
Expand All @@ -90,6 +90,10 @@ p {
overflow-y: visible;
}

.card-smaller-font {
font-size: 1.9vw;
}

.card-color-w {
background: gray;
color: white;
Expand Down
3 changes: 2 additions & 1 deletion src/components/Board.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ function Card(props) {
} = props;
const cls = `card${status ? ` card-color-${color}` : ''}
${leaderMark ? ' card-leader-mark' : ''}`;
const smallerFontClass = value.length > 8 ? 'card-smaller-font' : '';
return (
<button type="button" className={cls} onClick={onClick}>
<button type="button" className={cls + smallerFontClass} onClick={onClick}>
{value}
</button>
);
Expand Down

0 comments on commit e6f8f9e

Please sign in to comment.